Revision d433b50e
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/screens/RubikScreenSolving.java | ||
---|---|---|
34 | 34 |
import org.distorted.main.R; |
35 | 35 |
import org.distorted.main.RubikActivity; |
36 | 36 |
import org.distorted.network.RubikScores; |
37 |
import org.distorted.objectlib.main.ObjectType; |
|
38 | 37 |
|
39 | 38 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
40 | 39 |
|
... | ... | |
186 | 185 |
mElapsed = System.currentTimeMillis()-mStartTime; |
187 | 186 |
|
188 | 187 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
189 |
ObjectType object = play.getObject();
|
|
188 |
int object = play.getObject();
|
|
190 | 189 |
int level = play.getLevel(); |
191 |
boolean isNew = mScores.setRecord(object.ordinal(), level, mElapsed);
|
|
190 |
boolean isNew = mScores.setRecord(object, level, mElapsed); |
|
192 | 191 |
|
193 | 192 |
return isNew ? mElapsed : -mElapsed; |
194 | 193 |
} |
Also available in: Unified diff
In the 'magic' app, ObjectType is now only used in RubikObject and RubikObjectList classes and nowhere else.
This is a major step towards being able to download objects from an online repository.