Exemplo n.º 1
0
    private GameState CreateGameState(ScenarioController scenarioController, ModulesController modulesController)
    {
        var input = new GameStateInput(scenarioController);
        var state = new GameState(input, scenarioController, modulesController);

        var reviewTransition = new EventTransition(ReviewState.StateName);

        input.HandleFinalStateEvent += reviewTransition.ChangeState;

        state.AddTransitions(reviewTransition);

        return(state);
    }
Exemplo n.º 2
0
 public GameState(GameStateInput input, ScenarioController scenarioController, ModulesController modulesController) : base(input)
 {
     _scenarioController = scenarioController;
     _modulesController  = modulesController;
 }