Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyUltimate.java | ||
---|---|---|
321 | 321 |
|
322 | 322 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
323 | 323 |
|
324 |
protected ObjectSticker retSticker(int face)
|
|
324 |
public ObjectSticker retSticker(int sticker)
|
|
325 | 325 |
{ |
326 | 326 |
if( mStickers==null ) |
327 | 327 |
{ |
... | ... | |
354 | 354 |
} |
355 | 355 |
} |
356 | 356 |
|
357 |
return mStickers[face/NUM_FACE_COLORS];
|
|
357 |
return mStickers[sticker];
|
|
358 | 358 |
} |
359 | 359 |
|
360 | 360 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
361 | 361 |
|
362 |
protected Static4D[] getQuats() |
|
362 |
protected int getStickerIndex(int face) |
|
363 |
{ |
|
364 |
return face/NUM_FACE_COLORS; |
|
365 |
} |
|
366 |
|
|
367 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
368 |
|
|
369 |
public Static4D[] getQuats() |
|
363 | 370 |
{ |
364 | 371 |
if( mQuats==null ) initializeQuats(); |
365 | 372 |
return mQuats; |
... | ... | |
434 | 441 |
|
435 | 442 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
436 | 443 |
|
437 |
protected int getNumStickerTypes(int[] numLayers)
|
|
444 |
public int getNumStickerTypes(int[] numLayers)
|
|
438 | 445 |
{ |
439 | 446 |
return 3; |
440 | 447 |
} |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.