Project

General

Profile

« Previous | Next » 

Revision f5da732a

Added by Leszek Koltunski almost 3 years ago

Cube Control: step 2.

View differences:

src/main/java/org/distorted/screens/RubikScreenSolver.java
62 62

  
63 63
///////////////////////////////////////////////////////////////////////////////////////////////////
64 64

  
65
  void leaveState(RubikActivity act)
65
  void leaveScreen(RubikActivity act)
66 66
    {
67 67

  
68 68
    }
69 69

  
70 70
///////////////////////////////////////////////////////////////////////////////////////////////////
71 71

  
72
  void enterState(final RubikActivity act)
72
  void enterScreen(final RubikActivity act)
73 73
    {
74 74
    float width = act.getScreenWidthInPixels();
75 75
    float heigh = act.getScreenHeightInPixels();
......
87 87
    mCurrentObjectSize = ImplementedSolversList.getObjectSize(0);
88 88

  
89 89
    act.setupObject(mCurrentObject, mCurrentObjectSize, null);
90
    RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getStateClass();
90
    RubikScreenPlay play = (RubikScreenPlay) ScreenList.PLAY.getScreenClass();
91 91
    play.setObjectAndSize(act, mCurrentObject, mCurrentObjectSize);
92 92

  
93 93
    mFaceColors = ObjectList.retFaceColors(mCurrentObject);
......
292 292
        @Override
293 293
        public void run()
294 294
          {
295
          ScreenList.switchState(act, ScreenList.SOLU);
296
          RubikScreenSolution solution = (RubikScreenSolution) ScreenList.SOLU.getStateClass();
295
          ScreenList.switchScreen(act, ScreenList.SOLU);
296
          RubikScreenSolution solution = (RubikScreenSolution) ScreenList.SOLU.getScreenClass();
297 297
          solution.setupMoves(act, moves);
298 298
          }
299 299
        });

Also available in: Unified diff