Project

General

Profile

« Previous | Next » 

Revision ad9e8bb3

Added by Leszek Koltunski over 4 years ago

Beginnings of the 'Solving' state.

View differences:

src/main/java/org/distorted/uistate/RubikState.java
26 26

  
27 27
public enum RubikState
28 28
  {
29
  MAIN ( null , new RubikStateMain() ),
30
  PLAY ( MAIN , new RubikStatePlay() ),
29
  MAIN ( null , new RubikStateMain()    ),
30
  PLAY ( MAIN , new RubikStatePlay()    ),
31
  SOLV ( PLAY , new RubikStateSolving() ),
31 32
  ;
32 33

  
33 34
  public static final int LENGTH = values().length;
......
56 57
    return sizes[ordinal];
57 58
    }
58 59

  
60
///////////////////////////////////////////////////////////////////////////////////////////////////
61

  
62
  public static RubikState getCurrentState()
63
    {
64
    return mCurrentState;
65
    }
66

  
59 67
///////////////////////////////////////////////////////////////////////////////////////////////////
60 68

  
61 69
  public static void savePreferences(SharedPreferences.Editor editor)
......
75 83

  
76 84
  public static void goBack(RubikActivity act)
77 85
    {
78
    switchState(act, mCurrentState.getBack() );
86
    switchState(act, mCurrentState.mBack );
79 87
    }
80 88

  
81 89
///////////////////////////////////////////////////////////////////////////////////////////////////
......
109 117
    mClass = clazz;
110 118
    }
111 119

  
112
///////////////////////////////////////////////////////////////////////////////////////////////////
113

  
114
  public RubikState getBack()
115
    {
116
    return mBack;
117
    }
118

  
119 120
///////////////////////////////////////////////////////////////////////////////////////////////////
120 121

  
121 122
  public RubikStateAbstract getStateClass()

Also available in: Unified diff