Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyRedi.java | ||
---|---|---|
130 | 130 |
|
131 | 131 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
132 | 132 |
|
133 |
protected Static4D[] getQuats()
|
|
133 |
public Static4D[] getQuats()
|
|
134 | 134 |
{ |
135 | 135 |
if( mQuats==null ) initializeQuats(); |
136 | 136 |
return mQuats; |
... | ... | |
145 | 145 |
|
146 | 146 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
147 | 147 |
|
148 |
protected int getNumStickerTypes(int[] numLayers)
|
|
148 |
public int getNumStickerTypes(int[] numLayers)
|
|
149 | 149 |
{ |
150 | 150 |
return 2; |
151 | 151 |
} |
... | ... | |
421 | 421 |
|
422 | 422 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
423 | 423 |
|
424 |
protected ObjectSticker retSticker(int face)
|
|
424 |
public ObjectSticker retSticker(int sticker)
|
|
425 | 425 |
{ |
426 | 426 |
if( mStickers==null ) |
427 | 427 |
{ |
... | ... | |
451 | 451 |
} |
452 | 452 |
} |
453 | 453 |
|
454 |
return mStickers[face/NUM_FACE_COLORS]; |
|
454 |
return mStickers[sticker]; |
|
455 |
} |
|
456 |
|
|
457 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
458 |
|
|
459 |
protected int getStickerIndex(int face) |
|
460 |
{ |
|
461 |
return face/NUM_FACE_COLORS; |
|
455 | 462 |
} |
456 | 463 |
|
457 | 464 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.