Revision beee90ab
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyWindmill.java | ||
---|---|---|
49 | 49 |
}; |
50 | 50 |
|
51 | 51 |
private ScrambleState[] mStates; |
52 |
private int[] mBasicAngle; |
|
52 |
private int[][] mBasicAngle;
|
|
53 | 53 |
private float[][] mCuts; |
54 | 54 |
private float[][] mPositions; |
55 | 55 |
private int[] mQuatIndex; |
... | ... | |
403 | 403 |
|
404 | 404 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
405 | 405 |
|
406 |
public int[] getBasicAngles() |
|
406 |
public int[][] getBasicAngles()
|
|
407 | 407 |
{ |
408 |
if( mBasicAngle ==null ) mBasicAngle = new int[] { 4,4,4 }; |
|
408 |
if( mBasicAngle ==null ) |
|
409 |
{ |
|
410 |
int num = getNumLayers()[0]; |
|
411 |
int[] tmp = new int[num]; |
|
412 |
for(int i=0; i<num; i++) tmp[i] = 4; |
|
413 |
mBasicAngle = new int[][] { tmp,tmp,tmp }; |
|
414 |
} |
|
409 | 415 |
return mBasicAngle; |
410 | 416 |
} |
411 | 417 |
|
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) ]