Revision 318c0a7d
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/network/RubikScores.java | ||
---|---|---|
27 | 27 |
|
28 | 28 |
import com.google.firebase.crashlytics.FirebaseCrashlytics; |
29 | 29 |
|
30 |
import static org.distorted.objectlib.main.ObjectList.NUM_OBJECTS;
|
|
31 |
import static org.distorted.objectlib.main.ObjectList.MAX_LEVEL;
|
|
30 |
import static org.distorted.objectlib.main.ObjectType.NUM_OBJECTS;
|
|
31 |
import static org.distorted.objectlib.main.ObjectType.MAX_LEVEL;
|
|
32 | 32 |
|
33 |
import org.distorted.objectlib.main.ObjectList;
|
|
33 |
import org.distorted.objectlib.main.ObjectType;
|
|
34 | 34 |
|
35 | 35 |
import org.distorted.main.BuildConfig; |
36 | 36 |
|
... | ... | |
143 | 143 |
|
144 | 144 |
for(int object=0; object<NUM_OBJECTS; object++) |
145 | 145 |
{ |
146 |
String name = ObjectList.getObject(object).name();
|
|
146 |
String name = ObjectType.getObject(object).name();
|
|
147 | 147 |
|
148 | 148 |
for(int level=0; level<MAX_LEVEL; level++) |
149 | 149 |
{ |
... | ... | |
314 | 314 |
|
315 | 315 |
for(int object=0; object<NUM_OBJECTS; object++) |
316 | 316 |
{ |
317 |
name = ObjectList.getObject(object).name();
|
|
317 |
name = ObjectType.getObject(object).name();
|
|
318 | 318 |
builder.append(name); |
319 | 319 |
builder.append("="); |
320 | 320 |
builder.append(mRecords[object][level]); |
... | ... | |
368 | 368 |
timeStr = subStr.substring(equals+1,comma); |
369 | 369 |
submStr = subStr.substring(comma+1); |
370 | 370 |
|
371 |
object = ObjectList.getOrdinal(nameStr);
|
|
371 |
object = ObjectType.getOrdinal(nameStr);
|
|
372 | 372 |
|
373 | 373 |
if( object>=0 && object< NUM_OBJECTS ) |
374 | 374 |
{ |
Also available in: Unified diff
Reename ObjectList to a more logical ObjectType.