Project

General

Profile

« Previous | Next » 

Revision 7bb30586

Added by Leszek Koltunski 7 months ago

Remove all old UI 1.0 classes

View differences:

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;
25 24

  
26 25
import static org.distorted.objectlib.main.ObjectType.MAX_SCRAMBLES;
27
import static org.distorted.screens.RubikScreenPlay.LEVELS_SHOWN;
28 26

  
29 27
///////////////////////////////////////////////////////////////////////////////////////////////////
30 28
// hold my own scores, and some other statistics.
31 29

  
32 30
public class RubikScores
33 31
  {
32
  public static final int LEVELS_SHOWN   = 8;
34 33
  public static final int RECORD_FIRST   = 0;
35 34
  public static final int RECORD_NEW     = 1;
36 35
  public static final int RECORD_NOT_NEW = 2;
......
259 258

  
260 259
    for(int obj=0; obj<numObjects; obj++)
261 260
      {
262
      for(int level=0; level<=RubikScreenPlay.LEVELS_SHOWN; level++)
261
      for(int level=0; level<=LEVELS_SHOWN; level++)
263 262
        {
264 263
        if( isSolved(obj,level) )
265 264
          {
......
504 503
  public int numberOfSolvedMAXes()
505 504
    {
506 505
    int numObjects = RubikObjectList.getNumObjects();
507
    int ret=0, level = RubikScreenPlay.LEVELS_SHOWN;
506
    int ret=0;
508 507

  
509 508
    for(int obj=0; obj<numObjects; obj++)
510 509
      {
511
      if( isSolved(obj,level) ) ret++;
510
      if( isSolved(obj,LEVELS_SHOWN) ) ret++;
512 511
      }
513 512

  
514 513
    return ret;

Also available in: Unified diff