Revision 61aa85e4
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyCube.java | ||
---|---|---|
67 | 67 |
public TwistyCube(int size, Static4D quat, DistortedTexture texture, MeshSquare mesh, |
68 | 68 |
DistortedEffects effects, int[][] moves, Resources res, int scrWidth) |
69 | 69 |
{ |
70 |
super(size, size, quat, texture, mesh, effects, moves, ObjectList.CUBE, res, scrWidth);
|
|
70 |
super(size, size, quat, texture, mesh, effects, moves, res, scrWidth); |
|
71 | 71 |
} |
72 | 72 |
|
73 | 73 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
394 | 394 |
return mBasicAngle; |
395 | 395 |
} |
396 | 396 |
|
397 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
398 |
|
|
399 |
public ObjectList intGetObjectList(int numLayers) |
|
400 |
{ |
|
401 |
switch(numLayers) |
|
402 |
{ |
|
403 |
case 2: return ObjectList.CUBE_2; |
|
404 |
case 3: return ObjectList.CUBE_3; |
|
405 |
case 4: return ObjectList.CUBE_4; |
|
406 |
case 5: return ObjectList.CUBE_5; |
|
407 |
} |
|
408 |
|
|
409 |
return ObjectList.CUBE_3; |
|
410 |
} |
|
411 |
|
|
397 | 412 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
398 | 413 |
|
399 | 414 |
public int getObjectName(int numLayers) |
Also available in: Unified diff
Simplify ObjectList: now there's just one object per size.