Revision f5da732a
Added by Leszek Koltunski almost 3 years ago
src/main/java/org/distorted/main/RubikPreRender.java | ||
---|---|---|
172 | 172 |
|
173 | 173 |
if( solved && !mIsSolved ) |
174 | 174 |
{ |
175 |
if( ScreenList.getCurrentState()== ScreenList.SOLV )
|
|
175 |
if( ScreenList.getCurrentScreen()== ScreenList.SOLV )
|
|
176 | 176 |
{ |
177 |
RubikScreenSolving solving = (RubikScreenSolving) ScreenList.SOLV.getStateClass();
|
|
177 |
RubikScreenSolving solving = (RubikScreenSolving) ScreenList.SOLV.getScreenClass();
|
|
178 | 178 |
mNewRecord = solving.getRecord(); |
179 | 179 |
|
180 | 180 |
if( mNewRecord< 0 ) |
... | ... | |
349 | 349 |
|
350 | 350 |
private void reportRecord() |
351 | 351 |
{ |
352 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getStateClass();
|
|
352 |
RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
|
|
353 | 353 |
RubikScores scores = RubikScores.getInstance(); |
354 | 354 |
|
355 | 355 |
int object = play.getObject(); |
... | ... | |
556 | 556 |
return mCanPlay; |
557 | 557 |
} |
558 | 558 |
|
559 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
560 |
|
|
561 |
public void blockEverything() |
|
562 |
{ |
|
563 |
mCanRotate = false; |
|
564 |
mCanPlay = false; |
|
565 |
} |
|
566 |
|
|
567 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
|
568 |
|
|
569 |
public void unblockEverything() |
|
570 |
{ |
|
571 |
mCanRotate = true; |
|
572 |
mCanPlay = true; |
|
573 |
} |
|
574 |
|
|
559 | 575 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
560 | 576 |
|
561 | 577 |
void setQuatOnNextRender() |
... | ... | |
693 | 709 |
@Override |
694 | 710 |
public void run() |
695 | 711 |
{ |
696 |
ScreenList.switchState( act, ScreenList.READ);
|
|
712 |
ScreenList.switchScreen( act, ScreenList.READ);
|
|
697 | 713 |
} |
698 | 714 |
}); |
699 | 715 |
} |
700 | 716 |
|
701 | 717 |
if( i==BaseEffect.Type.WIN.ordinal() ) |
702 | 718 |
{ |
703 |
if( ScreenList.getCurrentState()== ScreenList.SOLV )
|
|
719 |
if( ScreenList.getCurrentScreen()== ScreenList.SOLV )
|
|
704 | 720 |
{ |
705 | 721 |
final RubikActivity act = (RubikActivity)mView.getContext(); |
706 | 722 |
Bundle bundle = new Bundle(); |
... | ... | |
727 | 743 |
@Override |
728 | 744 |
public void run() |
729 | 745 |
{ |
730 |
ScreenList.switchState( act, ScreenList.DONE);
|
|
746 |
ScreenList.switchScreen( act, ScreenList.DONE);
|
|
731 | 747 |
} |
732 | 748 |
}); |
733 | 749 |
} |
Also available in: Unified diff
Cube Control: step 2.