Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyBandagedAbstract.java | ||
---|---|---|
260 | 260 |
|
261 | 261 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
262 | 262 |
|
263 |
protected ObjectSticker retSticker(int face)
|
|
263 |
public ObjectSticker retSticker(int sticker)
|
|
264 | 264 |
{ |
265 | 265 |
if( mStickers==null ) |
266 | 266 |
{ |
... | ... | |
296 | 296 |
} |
297 | 297 |
} |
298 | 298 |
|
299 |
return mStickers[face/NUM_FACE_COLORS]; |
|
299 |
return mStickers[sticker]; |
|
300 |
} |
|
301 |
|
|
302 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
303 |
|
|
304 |
protected int getStickerIndex(int face) |
|
305 |
{ |
|
306 |
return face/NUM_FACE_COLORS; |
|
300 | 307 |
} |
301 | 308 |
|
302 | 309 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
316 | 323 |
|
317 | 324 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
318 | 325 |
|
319 |
protected Static4D[] getQuats()
|
|
326 |
public Static4D[] getQuats()
|
|
320 | 327 |
{ |
321 | 328 |
if( mQuats==null ) initializeQuats(); |
322 | 329 |
return mQuats; |
... | ... | |
402 | 409 |
|
403 | 410 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
404 | 411 |
|
405 |
protected int getNumStickerTypes(int[] numLayers)
|
|
412 |
public int getNumStickerTypes(int[] numLayers)
|
|
406 | 413 |
{ |
407 | 414 |
return NUM_STICKERS; |
408 | 415 |
} |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.