1
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
2
|
// Copyright 2023 Leszek Koltunski //
|
3
|
// //
|
4
|
// This file is part of Magic Cube. //
|
5
|
// //
|
6
|
// Magic Cube is proprietary software licensed under an EULA which you should have received //
|
7
|
// along with the code. If not, check https://distorted.org/magic/License-Magic-Cube.html //
|
8
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
9
|
|
10
|
package org.distorted.objectlib.metadata;
|
11
|
|
12
|
import org.distorted.objectlib.R;
|
13
|
import org.distorted.objectlib.main.TwistyObject;
|
14
|
|
15
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
16
|
|
17
|
public class Metadata
|
18
|
{
|
19
|
private final int[] mNumLayers;
|
20
|
private final int mParam;
|
21
|
private final float[][] mPos;
|
22
|
private final Class<? extends TwistyObject> mClass;
|
23
|
|
24
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
25
|
|
26
|
public Metadata(Class<? extends TwistyObject> clazz, int[] layers, int param, float[][] pos)
|
27
|
{
|
28
|
mNumLayers = layers;
|
29
|
mParam = param;
|
30
|
mPos = pos;
|
31
|
mClass = clazz;
|
32
|
}
|
33
|
|
34
|
///////////////////////////////////////////////////////////////////////////////////////////////////
|
35
|
|
36
|
public int numScrambles() { return 1; }
|
37
|
public int icon() { return R.drawable.cube_3; }
|
38
|
public boolean getActive() { return true; }
|
39
|
public int price() { return 0; }
|
40
|
public int objectVersion() { return 1; }
|
41
|
public int extrasVersion() { return 1; }
|
42
|
public int[] getNumLayers() { return mNumLayers; }
|
43
|
public int getParam() { return mParam; }
|
44
|
public float[][] getPos() { return mPos; }
|
45
|
public Class<? extends TwistyObject> getObjectClass() { return mClass; }
|
46
|
}
|