Revision b42c8399
Added by Leszek Koltunski 8 months ago
src/main/java/org/distorted/objects/RubikObject.java | ||
---|---|---|
29 | 29 |
import org.distorted.main_old.RubikActivity; |
30 | 30 |
import org.distorted.objectlib.main.ObjectType; |
31 | 31 |
import org.distorted.objectlib.patterns.RubikPatternList; |
32 |
import org.distorted.solvers.ImplementedSolversList; |
|
32 | 33 |
|
33 | 34 |
import static org.distorted.objectlib.main.TwistyObject.MESH_NICE; |
34 | 35 |
import static org.distorted.main_old.RubikActivity.SHOW_DOWNLOADED_DEBUG; |
... | ... | |
50 | 51 |
private int mNumScramble; |
51 | 52 |
private int mMeshState; |
52 | 53 |
private int mExtrasOrdinal; |
54 |
private int mSolverOrdinal; |
|
53 | 55 |
|
54 | 56 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
55 | 57 |
|
... | ... | |
70 | 72 |
int patternOrdinal = RubikPatternList.getOrdinal(ordinal); |
71 | 73 |
mPatterns = RubikPatternList.getPatterns(patternOrdinal); |
72 | 74 |
|
75 |
mSolverOrdinal = ImplementedSolversList.getSolverOrdinal(ordinal); |
|
76 |
|
|
73 | 77 |
mMeshState = MESH_NICE; |
74 | 78 |
mExtrasOrdinal = -1; |
75 | 79 |
|
... | ... | |
94 | 98 |
mPatterns = null; |
95 | 99 |
mMeshState = MESH_NICE; |
96 | 100 |
mExtrasOrdinal = -1; |
101 |
mSolverOrdinal = -1; |
|
97 | 102 |
|
98 | 103 |
mMeshID = 0; |
99 | 104 |
mJsonID = -1; |
... | ... | |
304 | 309 |
return mExtrasID!=0; |
305 | 310 |
} |
306 | 311 |
|
312 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
313 |
|
|
314 |
public boolean hasSolver() |
|
315 |
{ |
|
316 |
return mSolverOrdinal>=0; |
|
317 |
} |
|
318 |
|
|
319 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
320 |
|
|
321 |
public int getSolverOrdinal() |
|
322 |
{ |
|
323 |
return mSolverOrdinal; |
|
324 |
} |
|
325 |
|
|
326 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
327 |
|
|
328 |
public boolean hasPatterns() |
|
329 |
{ |
|
330 |
return mPatterns!=null; |
|
331 |
} |
|
332 |
|
|
307 | 333 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
308 | 334 |
|
309 | 335 |
public String[][] getPatterns() |
Also available in: Unified diff
Major progress with version 2.0.0.