Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyPyraminx.java | ||
---|---|---|
213 | 213 |
|
214 | 214 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
215 | 215 |
|
216 |
protected Static4D[] getQuats()
|
|
216 |
public Static4D[] getQuats()
|
|
217 | 217 |
{ |
218 | 218 |
if( mQuats==null ) initializeQuats(); |
219 | 219 |
return mQuats; |
... | ... | |
228 | 228 |
|
229 | 229 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
230 | 230 |
|
231 |
protected int getNumStickerTypes(int[] numLayers)
|
|
231 |
public int getNumStickerTypes(int[] numLayers)
|
|
232 | 232 |
{ |
233 | 233 |
return 1; |
234 | 234 |
} |
... | ... | |
404 | 404 |
|
405 | 405 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
406 | 406 |
|
407 |
protected ObjectSticker retSticker(int face)
|
|
407 |
public ObjectSticker retSticker(int sticker)
|
|
408 | 408 |
{ |
409 | 409 |
if( mStickers==null ) |
410 | 410 |
{ |
... | ... | |
431 | 431 |
mStickers[0] = new ObjectSticker(STICKERS[0],null,radii,stroke); |
432 | 432 |
} |
433 | 433 |
|
434 |
return mStickers[face/NUM_FACE_COLORS]; |
|
434 |
return mStickers[sticker]; |
|
435 |
} |
|
436 |
|
|
437 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
438 |
|
|
439 |
protected int getStickerIndex(int face) |
|
440 |
{ |
|
441 |
return face/NUM_FACE_COLORS; |
|
435 | 442 |
} |
436 | 443 |
|
437 | 444 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.