Revision cf14e8f1
Added by Leszek Koltunski 10 months ago
src/main/java/org/distorted/solvers/SolverDino4.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package org.distorted.solvers; |
11 | 11 |
|
12 |
import static org.distorted.objectlib.main.TwistyObject.*; |
|
13 |
|
|
14 | 12 |
import android.content.res.Resources; |
15 | 13 |
|
16 | 14 |
import org.distorted.main.R; |
17 | 15 |
import org.distorted.objectlib.helpers.OperatingSystemInterface; |
18 | 16 |
import org.distorted.objectlib.metadata.ListObjects; |
19 | 17 |
import org.distorted.objectlib.main.TwistyObject; |
18 |
import org.distorted.objectlib.shape.ShapeColors; |
|
20 | 19 |
import org.distorted.objectlib.shape.ShapeHexahedron; |
21 | 20 |
import org.distorted.objectlib.tablebases.ImplementedTablebasesList; |
22 | 21 |
import org.distorted.objectlib.tablebases.TBDino4; |
... | ... | |
61 | 60 |
{ |
62 | 61 |
int color = hexColors[i]; |
63 | 62 |
|
64 |
if( color==COLOR_WHITE ) indW = i;
|
|
65 |
if( color==COLOR_YELLOW ) indY = i;
|
|
66 |
if( color==COLOR_RED ) indR = i;
|
|
67 |
if( color==COLOR_BLUE ) indB = i;
|
|
63 |
if( color == ShapeColors.COLOR_WHITE ) indW = i;
|
|
64 |
if( color == ShapeColors.COLOR_YELLOW ) indY = i;
|
|
65 |
if( color == ShapeColors.COLOR_RED ) indR = i;
|
|
66 |
if( color == ShapeColors.COLOR_BLUE ) indB = i;
|
|
68 | 67 |
} |
69 | 68 |
|
70 | 69 |
for(int i=0; i<12; i++) |
src/main/java/org/distorted/solverui/ScreenSolver.java | ||
---|---|---|
9 | 9 |
|
10 | 10 |
package org.distorted.solverui; |
11 | 11 |
|
12 |
import static org.distorted.objectlib.main.TwistyObject.COLOR_BLUE; |
|
13 |
import static org.distorted.objectlib.main.TwistyObject.COLOR_RED; |
|
14 |
import static org.distorted.objectlib.main.TwistyObject.COLOR_WHITE; |
|
15 |
import static org.distorted.objectlib.main.TwistyObject.COLOR_YELLOW; |
|
16 |
|
|
17 | 12 |
import android.content.SharedPreferences; |
18 | 13 |
import android.graphics.Bitmap; |
19 | 14 |
import android.graphics.Canvas; |
... | ... | |
58 | 53 |
import org.distorted.objectlib.metadata.MetadataSTAR_3; |
59 | 54 |
import org.distorted.objectlib.metadata.MetadataTRAJ_3; |
60 | 55 |
import org.distorted.objectlib.metadata.MetadataTRAJ_4; |
56 |
import org.distorted.objectlib.shape.ShapeColors; |
|
61 | 57 |
import org.distorted.objectlib.shape.ShapeDiamond; |
62 | 58 |
import org.distorted.objectlib.shape.ShapeDodecahedron; |
63 | 59 |
import org.distorted.objectlib.shape.ShapeHexahedron; |
... | ... | |
213 | 209 |
else if( object==MetadataDIN4_3.INDEX ) |
214 | 210 |
{ |
215 | 211 |
mNumColors = 4; |
216 |
mFaceColors = new int[] { COLOR_YELLOW, COLOR_RED, COLOR_BLUE, COLOR_WHITE };
|
|
212 |
mFaceColors = new int[] { ShapeColors.COLOR_YELLOW, ShapeColors.COLOR_RED, ShapeColors.COLOR_BLUE, ShapeColors.COLOR_WHITE };
|
|
217 | 213 |
mColorMode = MODE_DINO_4; |
218 | 214 |
} |
219 | 215 |
else |
Also available in: Unified diff
Beginnings of color unification