示例#1
0
    public void Run()
    {
        //Application.NewGame();
        Application.ChangeGameState(GameStates.MENU);
        view.Execute();

        while (running)
        {
            if (controller != null)
            {
                controller.Execute();
            }

            if (Application.GetState().state != GameStates.FINISH)
            {
                if (ConsolePlayerController.done && EnemyController.done)
                {
                    EndTurn();
                }
                else if (Application.auto == true && data.player.actions <= 0)
                {
                    data.player.path.Clear();
                    Application.GetEnemyController().Execute();
                    EndTurn();
                }
            }

            view.Execute();
        }
    }