Revision cc3d81dd
Added by Leszek Koltunski about 4 years ago
| src/main/java/org/distorted/objects/TwistyObject.java | ||
|---|---|---|
| 129 | 129 |
|
| 130 | 130 |
//////////////////// SOLVED1 //////////////////////// |
| 131 | 131 |
|
| 132 |
private static final int[] mFaceMap = { 4, 2, 2, 4, 0, 2, 1, 4, 0, 0, 1, 1 };
|
|
| 133 |
private static int[][] mScramble;
|
|
| 132 |
private int[] mFaceMap;
|
|
| 133 |
private int[][] mScramble; |
|
| 134 | 134 |
private int[] mColors; |
| 135 | 135 |
|
| 136 | 136 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
| ... | ... | |
| 539 | 539 |
for(int c=0; c<NUM_CUBITS; c++) mScramble[q][c] = computeScramble(q,c); |
| 540 | 540 |
} |
| 541 | 541 |
|
| 542 |
if( mFaceMap==null ) |
|
| 543 |
{
|
|
| 544 |
mFaceMap = new int[] { 4, 2, 2, 4, 0, 2, 1, 4, 0, 0, 1, 1 };
|
|
| 545 |
} |
|
| 546 |
|
|
| 542 | 547 |
for(int c=0; c<NUM_CUBITS; c++) |
| 543 | 548 |
{
|
| 544 | 549 |
int index = mScramble[CUBITS[c].mQuatIndex][c]; |
Also available in: Unified diff
Remove statics from the TwistyObject class.