Project

General

Profile

« Previous | Next » 

Revision 65bc1da3

Added by Leszek Koltunski 12 months ago

Improve the way we display time in the Scores dialog

View differences:

src/main/java/org/distorted/external/RubikNetwork.java
39 39
  {
40 40
  public interface ScoresReceiver
41 41
    {
42
    void receive(String[][][] country, String[][][] name, float[][][] time);
42
    void receive(String[][][] country, String[][][] name, int[][][] time);
43 43
    void message(String mess);
44 44
    void error(String error);
45 45
    }
......
110 110

  
111 111
  private static String[][][] mCountry;
112 112
  private static String[][][] mName;
113
  private static float[][][] mTime;
113
  private static int[][][] mTime;
114 114
  private static int[][] mPlaces;
115 115

  
116 116
  private static RubikNetwork mThis;
......
130 130

  
131 131
    if( mCountry==null || newNum!=mNumObjects ) mCountry = new String[newNum][LEVELS_SHOWN+1][MAX_PLACES];
132 132
    if( mName==null    || newNum!=mNumObjects ) mName    = new String[newNum][LEVELS_SHOWN+1][MAX_PLACES];
133
    if( mTime==null    || newNum!=mNumObjects ) mTime    = new  float[newNum][LEVELS_SHOWN+1][MAX_PLACES];
133
    if( mTime==null    || newNum!=mNumObjects ) mTime    = new    int[newNum][LEVELS_SHOWN+1][MAX_PLACES];
134 134
    if( mPlaces==null  || newNum!=mNumObjects ) mPlaces  = new    int[newNum][LEVELS_SHOWN+1];
135 135

  
136 136
    if( mUpdates==null ) mUpdates = new RubikUpdates();
......
243 243

  
244 244
          mCountry[object][level][p] = country;
245 245
          mName   [object][level][p] = name;
246
          mTime   [object][level][p] = ((float)(time/10))/100.0f;
246
          mTime   [object][level][p] = time;
247 247
          }
248 248
        }
249 249
      }

Also available in: Unified diff