Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyJing.java | ||
---|---|---|
158 | 158 |
|
159 | 159 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
160 | 160 |
|
161 |
protected Static4D[] getQuats()
|
|
161 |
public Static4D[] getQuats()
|
|
162 | 162 |
{ |
163 | 163 |
if( mQuats==null ) initializeQuats(); |
164 | 164 |
return mQuats; |
... | ... | |
173 | 173 |
|
174 | 174 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
175 | 175 |
|
176 |
protected int getNumStickerTypes(int[] numLayers)
|
|
176 |
public int getNumStickerTypes(int[] numLayers)
|
|
177 | 177 |
{ |
178 | 178 |
return 3; |
179 | 179 |
} |
... | ... | |
412 | 412 |
|
413 | 413 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
414 | 414 |
|
415 |
protected ObjectSticker retSticker(int face)
|
|
415 |
public ObjectSticker retSticker(int sticker)
|
|
416 | 416 |
{ |
417 | 417 |
if( mStickers==null ) |
418 | 418 |
{ |
... | ... | |
443 | 443 |
} |
444 | 444 |
} |
445 | 445 |
|
446 |
return mStickers[face/NUM_FACE_COLORS]; |
|
446 |
return mStickers[sticker]; |
|
447 |
} |
|
448 |
|
|
449 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
450 |
|
|
451 |
protected int getStickerIndex(int face) |
|
452 |
{ |
|
453 |
return face/NUM_FACE_COLORS; |
|
447 | 454 |
} |
448 | 455 |
|
449 | 456 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.