Ejemplo n.º 1
0
    //Handle the input for the gamestate
    public void handleInput(InputHelper inputHelper)
    {
        switch (State)
        {
        case state.Playing:
            playingState.handleInput(inputHelper);
            break;

        case state.Menu:
            menuState.handleInput(inputHelper);
            break;

        case state.Pause:
            pauseState.handleInput(inputHelper);
            break;

        case state.Settings:
            settingsState.handleInput(inputHelper);
            break;

        case state.PauseSettings:
            pausesettingsState.handleInput(inputHelper);
            break;

        case state.Victory:
            victoryState.handleInput(inputHelper);
            break;

        case state.Defeat:
            defeatState.handleInput(inputHelper);
            break;
        }
    }