Revision 8ab435b9
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/main/RubikObjectStateActioner.java | ||
---|---|---|
81 | 81 |
|
82 | 82 |
private void reportRecord(TwistyActivity act, String debug, int scrambleNum) |
83 | 83 |
{ |
84 |
RubikActivity ract = (RubikActivity)act; |
|
85 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
|
86 |
RubikScores scores = RubikScores.getInstance(); |
|
87 |
|
|
88 |
int object = play.getObject(); |
|
89 |
int level = play.getLevel(); |
|
90 |
ObjectType list = ObjectType.getObject(object); |
|
91 |
String name = scores.getName(); |
|
92 |
|
|
93 |
String record = list.name()+" level "+level+" time "+mNewRecord+" isNew: "+mIsNewRecord+" scrambleNum: "+scrambleNum; |
|
84 |
RubikActivity ract = (RubikActivity)act; |
|
85 |
RubikScreenPlay play= (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
|
86 |
RubikScores scores = RubikScores.getInstance(); |
|
87 |
ObjectType object = play.getObject(); |
|
88 |
int level = play.getLevel(); |
|
89 |
String name = scores.getName(); |
|
90 |
|
|
91 |
String record = object.name()+" level "+level+" time "+mNewRecord+" isNew: "+mIsNewRecord+" scrambleNum: "+scrambleNum; |
|
94 | 92 |
|
95 | 93 |
if( BuildConfig.DEBUG ) |
96 | 94 |
{ |
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.