Revision 1bb09f88
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyDino.java | ||
---|---|---|
95 | 95 |
|
96 | 96 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
97 | 97 |
|
98 |
protected Static4D[] getQuats()
|
|
98 |
public Static4D[] getQuats()
|
|
99 | 99 |
{ |
100 | 100 |
if( mQuats==null ) initializeQuats(); |
101 | 101 |
return mQuats; |
... | ... | |
164 | 164 |
|
165 | 165 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
166 | 166 |
|
167 |
protected int getNumStickerTypes(int[] numLayers)
|
|
167 |
public int getNumStickerTypes(int[] numLayers)
|
|
168 | 168 |
{ |
169 | 169 |
return 1; |
170 | 170 |
} |
... | ... | |
241 | 241 |
|
242 | 242 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
243 | 243 |
|
244 |
protected ObjectSticker retSticker(int face)
|
|
244 |
public ObjectSticker retSticker(int sticker)
|
|
245 | 245 |
{ |
246 | 246 |
if( mStickers==null ) |
247 | 247 |
{ |
... | ... | |
259 | 259 |
mStickers[0] = new ObjectSticker(STICKERS[0],null,radii,stroke); |
260 | 260 |
} |
261 | 261 |
|
262 |
return mStickers[face/NUM_FACE_COLORS]; |
|
262 |
return mStickers[sticker]; |
|
263 |
} |
|
264 |
|
|
265 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
266 |
|
|
267 |
protected int getStickerIndex(int face) |
|
268 |
{ |
|
269 |
return face/NUM_FACE_COLORS; |
|
263 | 270 |
} |
264 | 271 |
|
265 | 272 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Progress with serializing object to JSON: stickers, quats.