Revision 8ab435b9
Added by Leszek Koltunski over 2 years ago
src/main/java/org/distorted/tutorials/TutorialScreen.java | ||
---|---|---|
74 | 74 |
public void onClick(View v) |
75 | 75 |
{ |
76 | 76 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass(); |
77 |
int numScrambles = ObjectType.getNumScramble(play.getObject()); |
|
77 |
int ordinal = play.getObject().ordinal(); |
|
78 |
int numScrambles = ObjectType.getNumScramble(ordinal); |
|
78 | 79 |
act.getPreRender().scrambleObject(numScrambles); |
79 | 80 |
} |
80 | 81 |
}); |
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.