Revision 42772cff
Added by Leszek Koltunski over 4 years ago
src/main/java/org/distorted/effect/SizeChangeEffect.java | ||
---|---|---|
94 | 94 |
mCube = new RubikCube[NUM_PHASES]; |
95 | 95 |
} |
96 | 96 |
|
97 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
98 |
|
|
99 |
public static Type getType(int index) |
|
100 |
{ |
|
101 |
return types[index]; |
|
102 |
} |
|
103 |
|
|
104 | 97 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
105 | 98 |
|
106 | 99 |
public static String[] getNames() |
... | ... | |
117 | 110 |
|
118 | 111 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
119 | 112 |
|
120 |
public static SizeChangeEffect create(Type type) throws InstantiationException, IllegalAccessException
|
|
113 |
public static SizeChangeEffect create(int ordinal) throws InstantiationException, IllegalAccessException
|
|
121 | 114 |
{ |
122 |
return type.effect.newInstance(); |
|
115 |
return types[ordinal].effect.newInstance();
|
|
123 | 116 |
} |
124 | 117 |
|
125 | 118 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
RubikCube: major progress with a separate RubikSettingsEnum enum - has been introduced into RubikActivity & RubikRenderer.