예제 #1
0
  public void setState(int state) {
    unloadState(currentState);
    currentState = state;
    loadState(currentState);

    // gameStates[currentState].init();
  }
예제 #2
0
  public GameStateManager() {
    gameStates = new GameState[NUMGAMESTATES];

    currentState = MENUSTATE;
    loadState(currentState);
  }