Project

General

Profile

« Previous | Next » 

Revision 1c90c64a

Added by Leszek Koltunski about 4 years ago

Incorporate myRecords into the Scores dialog.

View differences:

src/main/java/org/distorted/scores/RubikScoresDownloader.java
34 34
  {
35 35
  public interface Receiver
36 36
    {
37
    void receive(String[][][] country, String[][][] name, String[][][] time);
37
    void receive(String[][][] country, String[][][] name, float[][][] time);
38 38
    void exception(String exception);
39 39
    }
40 40

  
......
91 91
  private static String mScores = "";
92 92
  private static String[][][] mCountry = new String[mTotal][MAX_SCRAMBLE][MAX_PLACES];
93 93
  private static String[][][] mName    = new String[mTotal][MAX_SCRAMBLE][MAX_PLACES];
94
  private static String[][][] mTime    = new String[mTotal][MAX_SCRAMBLE][MAX_PLACES];
94
  private static  float[][][] mTime    = new  float[mTotal][MAX_SCRAMBLE][MAX_PLACES];
95 95

  
96 96
  private static int[][] mPlaces = new int[mTotal][MAX_SCRAMBLE];
97 97

  
......
138 138
        String name    = row.substring(s3+1, s4);
139 139
        int time       = Integer.parseInt( row.substring(s4+1,s5) );
140 140
        String country = row.substring(s5+1, s6);
141
        String realTime= String.valueOf(time/10.0f);
142 141

  
143 142
        if(level>=0 && level<MAX_SCRAMBLE && place>=0 && place<MAX_PLACES)
144 143
          {
......
149 148

  
150 149
          mCountry[size][level][place] = country;
151 150
          mName   [size][level][place] = name;
152
          mTime   [size][level][place] = realTime;
151
          mTime   [size][level][place] = ((float)time)/10.0f;
153 152
          }
154 153
        }
155 154
      }

Also available in: Unified diff