Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistySkewb.java | ||
---|---|---|
153 | 153 |
|
154 | 154 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
155 | 155 |
|
156 |
protected Static4D[] getQuats()
|
|
156 |
public Static4D[] getQuats()
|
|
157 | 157 |
{ |
158 | 158 |
if( mQuats==null ) initializeQuats(); |
159 | 159 |
return mQuats; |
... | ... | |
168 | 168 |
|
169 | 169 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
170 | 170 |
|
171 |
protected int getNumStickerTypes(int[] numLayers)
|
|
171 |
public int getNumStickerTypes(int[] numLayers)
|
|
172 | 172 |
{ |
173 | 173 |
return 3; |
174 | 174 |
} |
... | ... | |
568 | 568 |
|
569 | 569 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
570 | 570 |
|
571 |
protected ObjectSticker retSticker(int face)
|
|
571 |
public ObjectSticker retSticker(int sticker)
|
|
572 | 572 |
{ |
573 | 573 |
if( mStickers==null ) |
574 | 574 |
{ |
... | ... | |
602 | 602 |
} |
603 | 603 |
} |
604 | 604 |
|
605 |
return mStickers[face/NUM_FACE_COLORS]; |
|
605 |
return mStickers[sticker]; |
|
606 |
} |
|
607 |
|
|
608 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
609 |
|
|
610 |
protected int getStickerIndex(int face) |
|
611 |
{ |
|
612 |
return face/NUM_FACE_COLORS; |
|
606 | 613 |
} |
607 | 614 |
|
608 | 615 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.