Revision a64e07d0
Added by Leszek Koltunski over 3 years ago
src/main/java/org/distorted/objects/TwistyPyraminx.java | ||
---|---|---|
149 | 149 |
|
150 | 150 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
151 | 151 |
|
152 |
int getNumStickerTypes() |
|
152 |
int getNumStickerTypes(int numLayers)
|
|
153 | 153 |
{ |
154 | 154 |
return 1; |
155 | 155 |
} |
... | ... | |
220 | 220 |
|
221 | 221 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
222 | 222 |
|
223 |
MeshBase createCubitMesh(int cubit) |
|
223 |
MeshBase createCubitMesh(int cubit, int numLayers)
|
|
224 | 224 |
{ |
225 |
int numLayers = getNumLayers(); |
|
226 |
|
|
227 | 225 |
if( cubit< (numLayers-1)*numLayers*(numLayers+1)/6 ) |
228 | 226 |
{ |
229 | 227 |
if( mOctaMesh==null ) mOctaMesh = FactoryCubit.getInstance().createOctaMesh(); |
... | ... | |
260 | 258 |
|
261 | 259 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
262 | 260 |
|
263 |
float[] getRowChances() |
|
261 |
float[] getRowChances(int numLayers)
|
|
264 | 262 |
{ |
265 |
int numLayers = getNumLayers(); |
|
266 | 263 |
int total = numLayers*(numLayers+1)/2; |
267 | 264 |
float running=0.0f; |
268 | 265 |
float[] chances = new float[numLayers]; |
Also available in: Unified diff
Beginnings of Megaminx & Gigaminx