Revision beee90ab
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyRedi.java | ||
---|---|---|
47 | 47 |
}; |
48 | 48 |
|
49 | 49 |
private ScrambleState[] mStates; |
50 |
private int[] mBasicAngle; |
|
50 |
private int[][] mBasicAngle;
|
|
51 | 51 |
private float[][] mCuts; |
52 | 52 |
private float[][] mPosition; |
53 | 53 |
|
... | ... | |
355 | 355 |
|
356 | 356 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
357 | 357 |
|
358 |
public int[] getBasicAngles() |
|
358 |
public int[][] getBasicAngles()
|
|
359 | 359 |
{ |
360 |
if( mBasicAngle ==null ) mBasicAngle = new int[] { 3,3,3,3 }; |
|
360 |
if( mBasicAngle ==null ) |
|
361 |
{ |
|
362 |
int num = getNumLayers()[0]; |
|
363 |
int[] tmp = new int[num]; |
|
364 |
for(int i=0; i<num; i++) tmp[i] = 3; |
|
365 |
mBasicAngle = new int[][] { tmp,tmp,tmp,tmp }; |
|
366 |
} |
|
367 |
|
|
361 | 368 |
return mBasicAngle; |
362 | 369 |
} |
363 | 370 |
|
Also available in: Unified diff
Preparation for Mixup Cube: take advantage of the recent bump in MAJOR_VERSION number and change the format of basicAngles to int[][] 'per-axis-per-layer' [ Mixup Cube has different basicAngle in its middle layers (8) - and different in its edge layers (4) ]