Exemplo n.º 1
0
        public bool NextStep()
        {
            try
            {
                _hud.Update(_hero);
                _hud.ShowScenarios(_config);

                var input    = _input.Read();
                var scenario = _selector.GetByInput(input);
                _hud.Show(scenario);

                scenario.Execute(_hero);
            }
            catch (GameException ex)
            {
                _hud.Update(ex);
            }

            if (_hero.Health <= 0)
            {
                _hud.Update(_hero);
                return(false);
            }

            return(true);
        }