Revision beee90ab
Added by Leszek Koltunski about 2 years ago
src/main/java/org/distorted/objectlib/objects/TwistyContainer.java | ||
---|---|---|
46 | 46 |
}; |
47 | 47 |
|
48 | 48 |
private ScrambleState[] mStates; |
49 |
private int[] mBasicAngle; |
|
49 |
private int[][] mBasicAngle;
|
|
50 | 50 |
private float[][] mCuts; |
51 | 51 |
private int[][] mFaceMap; |
52 | 52 |
|
... | ... | |
322 | 322 |
|
323 | 323 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
324 | 324 |
|
325 |
public int[] getBasicAngles() |
|
325 |
public int[][] getBasicAngles()
|
|
326 | 326 |
{ |
327 |
if( mBasicAngle ==null ) mBasicAngle = new int[] { 3,3,3,3 }; |
|
327 |
if( mBasicAngle ==null ) |
|
328 |
{ |
|
329 |
int num = getNumLayers()[0]; |
|
330 |
int[] tmp = new int[num]; |
|
331 |
for(int i=0; i<num; i++) tmp[i] = 3; |
|
332 |
mBasicAngle = new int[][] { tmp,tmp,tmp,tmp }; |
|
333 |
} |
|
334 |
|
|
328 | 335 |
return mBasicAngle; |
329 | 336 |
} |
330 | 337 |
|
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) ]