Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyDiamond.java | ||
---|---|---|
142 | 142 |
|
143 | 143 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
144 | 144 |
|
145 |
protected Static4D[] getQuats()
|
|
145 |
public Static4D[] getQuats()
|
|
146 | 146 |
{ |
147 | 147 |
if( mQuats==null ) initializeQuats(); |
148 | 148 |
return mQuats; |
... | ... | |
157 | 157 |
|
158 | 158 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
159 | 159 |
|
160 |
protected int getNumStickerTypes(int[] numLayers)
|
|
160 |
public int getNumStickerTypes(int[] numLayers)
|
|
161 | 161 |
{ |
162 | 162 |
return 1; |
163 | 163 |
} |
... | ... | |
525 | 525 |
|
526 | 526 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
527 | 527 |
|
528 |
protected ObjectSticker retSticker(int face)
|
|
528 |
public ObjectSticker retSticker(int sticker)
|
|
529 | 529 |
{ |
530 | 530 |
if( mStickers==null ) |
531 | 531 |
{ |
... | ... | |
551 | 551 |
mStickers[0] = new ObjectSticker(STICKERS[0],null,radii,stroke); |
552 | 552 |
} |
553 | 553 |
|
554 |
return mStickers[face/NUM_FACE_COLORS]; |
|
554 |
return mStickers[sticker]; |
|
555 |
} |
|
556 |
|
|
557 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
558 |
|
|
559 |
protected int getStickerIndex(int face) |
|
560 |
{ |
|
561 |
return face/NUM_FACE_COLORS; |
|
555 | 562 |
} |
556 | 563 |
|
557 | 564 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.