Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyHelicopter.java | ||
---|---|---|
151 | 151 |
|
152 | 152 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
153 | 153 |
|
154 |
protected Static4D[] getQuats()
|
|
154 |
public Static4D[] getQuats()
|
|
155 | 155 |
{ |
156 | 156 |
if( mQuats==null ) initializeQuats(); |
157 | 157 |
return mQuats; |
... | ... | |
166 | 166 |
|
167 | 167 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
168 | 168 |
|
169 |
protected int getNumStickerTypes(int[] numLayers)
|
|
169 |
public int getNumStickerTypes(int[] numLayers)
|
|
170 | 170 |
{ |
171 | 171 |
return 1; |
172 | 172 |
} |
... | ... | |
435 | 435 |
|
436 | 436 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
437 | 437 |
|
438 |
protected ObjectSticker retSticker(int face)
|
|
438 |
public ObjectSticker retSticker(int sticker)
|
|
439 | 439 |
{ |
440 | 440 |
if( mStickers==null ) |
441 | 441 |
{ |
... | ... | |
453 | 453 |
mStickers[0] = new ObjectSticker(STICKERS[0],null,radii,stroke); |
454 | 454 |
} |
455 | 455 |
|
456 |
return mStickers[face/NUM_FACE_COLORS]; |
|
456 |
return mStickers[sticker]; |
|
457 |
} |
|
458 |
|
|
459 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
460 |
|
|
461 |
protected int getStickerIndex(int face) |
|
462 |
{ |
|
463 |
return face/NUM_FACE_COLORS; |
|
457 | 464 |
} |
458 | 465 |
|
459 | 466 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.