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

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

    currentState = MENUSTATE;
    loadState(currentState);
  }