Revision 7dab2aea
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyCube.java | ||
---|---|---|
128 | 128 |
} |
129 | 129 |
|
130 | 130 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
131 |
// TODO |
|
132 | 131 |
|
133 | 132 |
protected int getResource(int[] numLayers) |
134 | 133 |
{ |
135 |
switch(numLayers[0]) |
|
134 |
int x = numLayers[0]; |
|
135 |
int y = numLayers[1]; |
|
136 |
int z = numLayers[2]; |
|
137 |
|
|
138 |
if( x==y && x==z ) |
|
136 | 139 |
{ |
137 |
case 2: return R.raw.cube2; |
|
138 |
case 3: return R.raw.cube3; |
|
139 |
case 4: return R.raw.cube4; |
|
140 |
case 5: return R.raw.cube5; |
|
140 |
switch(x) |
|
141 |
{ |
|
142 |
case 2: return R.raw.cube2; |
|
143 |
case 3: return R.raw.cube3; |
|
144 |
case 4: return R.raw.cube4; |
|
145 |
case 5: return R.raw.cube5; |
|
146 |
} |
|
141 | 147 |
} |
142 | 148 |
|
143 | 149 |
return 0; |
Also available in: Unified diff
Progress with cuboids.