Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyRex.java | ||
---|---|---|
125 | 125 |
|
126 | 126 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
127 | 127 |
|
128 |
protected Static4D[] getQuats()
|
|
128 |
public Static4D[] getQuats()
|
|
129 | 129 |
{ |
130 | 130 |
if( mQuats==null ) initializeQuats(); |
131 | 131 |
return mQuats; |
... | ... | |
140 | 140 |
|
141 | 141 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
142 | 142 |
|
143 |
protected int getNumStickerTypes(int[] numLayers)
|
|
143 |
public int getNumStickerTypes(int[] numLayers)
|
|
144 | 144 |
{ |
145 | 145 |
return 3; |
146 | 146 |
} |
... | ... | |
450 | 450 |
|
451 | 451 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
452 | 452 |
|
453 |
protected ObjectSticker retSticker(int face)
|
|
453 |
public ObjectSticker retSticker(int sticker)
|
|
454 | 454 |
{ |
455 | 455 |
if( mStickers==null ) |
456 | 456 |
{ |
... | ... | |
485 | 485 |
} |
486 | 486 |
} |
487 | 487 |
|
488 |
return mStickers[face/NUM_FACE_COLORS]; |
|
488 |
return mStickers[sticker]; |
|
489 |
} |
|
490 |
|
|
491 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
492 |
|
|
493 |
protected int getStickerIndex(int face) |
|
494 |
{ |
|
495 |
return face/NUM_FACE_COLORS; |
|
489 | 496 |
} |
490 | 497 |
|
491 | 498 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.