Revision 8ab435b9
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/screens/RubikScreenSolving.java | ||
---|---|---|
35 | 35 |
import org.distorted.main.R; |
36 | 36 |
import org.distorted.main.RubikActivity; |
37 | 37 |
import org.distorted.network.RubikScores; |
38 |
import org.distorted.objectlib.main.ObjectType; |
|
38 | 39 |
|
39 | 40 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
40 | 41 |
|
... | ... | |
185 | 186 |
mElapsed = System.currentTimeMillis()-mStartTime; |
186 | 187 |
|
187 | 188 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
188 |
int object = play.getObject();
|
|
189 |
ObjectType object = play.getObject();
|
|
189 | 190 |
int level = play.getLevel(); |
190 |
boolean isNew = mScores.setRecord(object, level, mElapsed); |
|
191 |
boolean isNew = mScores.setRecord(object.ordinal(), level, mElapsed);
|
|
191 | 192 |
|
192 | 193 |
return isNew ? mElapsed : -mElapsed; |
193 | 194 |
} |
Also available in: Unified diff
1. Remove 'db level' from objectlib (this belongs to the app!)
2. change ScreenPlay's 'mObject' to be an ObjectType.