Revision 7d8cc029
Added by Leszek Koltunski about 3 years ago
src/main/java/org/distorted/objects/TwistyHelicopter.java | ||
---|---|---|
234 | 234 |
MeshSquare mesh, DistortedEffects effects, int[][] moves, Resources res, int scrWidth) |
235 | 235 |
{ |
236 | 236 |
super(size, size, quat, texture, mesh, effects, moves, ObjectList.HELI, res, scrWidth); |
237 |
|
|
238 |
createFaceDataStructures(); |
|
239 |
} |
|
240 |
|
|
241 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
242 |
|
|
243 |
double[][] getVertices(int cubitType) |
|
244 |
{ |
|
245 |
if( cubitType==0 ) return VERTICES_CORNER; |
|
246 |
if( cubitType==1 ) return VERTICES_FACE; |
|
247 |
return null; |
|
248 |
} |
|
249 |
|
|
250 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
251 |
|
|
252 |
int[][] getVertIndexes(int cubitType) |
|
253 |
{ |
|
254 |
if( cubitType==0 ) return VERT_INDEXES_CORNER; |
|
255 |
if( cubitType==1 ) return VERT_INDEXES_FACE; |
|
256 |
return null; |
|
257 |
} |
|
258 |
|
|
259 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
260 |
|
|
261 |
int getNumCubitTypes(int numLayers) |
|
262 |
{ |
|
263 |
return 2; |
|
264 | 237 |
} |
265 | 238 |
|
266 | 239 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
Also available in: Unified diff
Simplify.