Revision 6142069a
Added by Leszek Koltunski over 1 year ago
src/main/java/org/distorted/external/RubikScores.java | ||
---|---|---|
21 | 21 |
import org.distorted.main.BuildConfig; |
22 | 22 |
import org.distorted.objects.RubikObject; |
23 | 23 |
import org.distorted.objects.RubikObjectList; |
24 |
import org.distorted.screens.RubikScreenPlay; |
|
24 | 25 |
|
25 | 26 |
import static org.distorted.objectlib.main.ObjectType.MAX_SCRAMBLES; |
26 | 27 |
|
... | ... | |
431 | 432 |
if( thereWasError ) recordDBError(errorStr); |
432 | 433 |
} |
433 | 434 |
|
435 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
436 |
|
|
437 |
public int numberOfSolvedMAXes() |
|
438 |
{ |
|
439 |
int numObjects = RubikObjectList.getNumObjects(); |
|
440 |
int ret=0, level = RubikScreenPlay.LEVELS_SHOWN; |
|
441 |
|
|
442 |
for(int obj=0; obj<numObjects; obj++) |
|
443 |
{ |
|
444 |
if( isSolved(obj,level) ) ret++; |
|
445 |
} |
|
446 |
|
|
447 |
return ret; |
|
448 |
} |
|
449 |
|
|
434 | 450 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
435 | 451 |
|
436 | 452 |
public void recordDBError(String message) |
Also available in: Unified diff
Progress with marking objects as free.