コード例 #1
0
        //Constructor
        public BattlePage(CharactersViewModel Data)
        {
            charactersViewModel = Data;
            InitializeComponent();
            monsterViewModel = MonstersViewModel.Instance;

            // _viewModel = GameEngineViewModel.Instance;
            _viewModel          = new GameEngineViewModel();
            _viewModel.gameOver = false;
            _viewModel.gameEngine.ClearDialogCache();

            _viewModel.magicRevive             = true;
            _viewModel.BattleScore.AutoBattle  = false;
            _viewModel.gameEngine.currentRound = 1;
            _viewModel.GenerateNewMonsters();
            _viewModel.MoveFirstCreature(charactersViewModel);
            _viewModel.gameEngine.ConsoleDialog1 = "";
            BindingContext = _viewModel;
        }
コード例 #2
0
 public OpeningScreen()
 {
     InitializeComponent();
     _viewModel = new GameEngineViewModel();
 }