Ejemplo n.º 1
0
  public void setState(int state) {
    unloadState(currentState);
    currentState = state;
    loadState(currentState);

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

    currentState = MENUSTATE;
    loadState(currentState);
  }