Revision 61aa85e4
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyPyraminx.java | ||
---|---|---|
68 | 68 |
public TwistyPyraminx(int size, Static4D quat, DistortedTexture texture, MeshSquare mesh, |
69 | 69 |
DistortedEffects effects, int[][] moves, Resources res, int scrWidth) |
70 | 70 |
{ |
71 |
super(size, size, quat, texture, mesh, effects, moves, ObjectList.PYRA, res, scrWidth);
|
|
71 |
super(size, size, quat, texture, mesh, effects, moves, res, scrWidth); |
|
72 | 72 |
} |
73 | 73 |
|
74 | 74 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
420 | 420 |
return mBasicAngle; |
421 | 421 |
} |
422 | 422 |
|
423 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
424 |
|
|
425 |
public ObjectList intGetObjectList(int numLayers) |
|
426 |
{ |
|
427 |
switch(numLayers) |
|
428 |
{ |
|
429 |
case 3: return ObjectList.PYRA_3; |
|
430 |
case 4: return ObjectList.PYRA_4; |
|
431 |
case 5: return ObjectList.PYRA_5; |
|
432 |
} |
|
433 |
|
|
434 |
return ObjectList.PYRA_3; |
|
435 |
} |
|
436 |
|
|
423 | 437 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
424 | 438 |
|
425 | 439 |
public int getObjectName(int numLayers) |
Also available in: Unified diff
Simplify ObjectList: now there's just one object per size.