Exemple #1
0
        public void doAction(GameController controller, IMainWindow mainWindow)
        {
            mainWindow.ClearButtomsArea();
            mainWindow.AddExitButton(GameController.FetchGameController.State);
            mainWindow.SwitchToSaveScreen();

            mainWindow.Update();
        }
Exemple #2
0
 public void doAction(GameController controller, IMainWindow mainWindow)
 {
     mainWindow.SwitchToGameAreaVisual();
     mainWindow.ClearButtomsArea();
     mainWindow.AddUseToroidToggle();
     mainWindow.AddAutoGenerateAliveCellsButton();
     mainWindow.AddStartButton();
     mainWindow.AddDrawAliveCellsButton();
     mainWindow.Update();
 }
Exemple #3
0
        public void doAction(GameController controller, IMainWindow mainWindow)
        {
            mainWindow.SwitchToGameAreaVisual();
            mainWindow.ClearButtomsArea();
            mainWindow.AddPauseButton();

            controller.WriteLogStartOfGame();
            controller.Timer.Start();
            mainWindow.Update();
        }
Exemple #4
0
 public void doAction(GameController controller, IMainWindow mainWindow)
 {
     mainWindow.SwitchToGameAreaVisual();
     mainWindow.ClearButtomsArea();
     mainWindow.AddNewButton();
     mainWindow.AddLoadSaveButton();
     mainWindow.AddLoadRandSaveButton();
     controller.ResetModelFilledWithDeadCells();
     mainWindow.Update();
 }
Exemple #5
0
        public void doAction(GameController controller, IMainWindow mainWindow)
        {
            mainWindow.SwitchToGameAreaVisual();
            mainWindow.ClearButtomsArea();
            mainWindow.AddApplyDrawButton();
            mainWindow.AddCancelDrawButton();

            controller.GameModel.ResetModelFilledWithDeadCells();
            mainWindow.SwitchOnDrawAliveCellsState();
            mainWindow.Update();
        }
Exemple #6
0
        public void doAction(GameController controller, IMainWindow mainWindow)
        {
            if (controller.State is GameState)
            {
                controller.WriteLogEndOfGame();
            }

            mainWindow.SwitchToGameAreaVisual();
            mainWindow.ClearButtomsArea();
            mainWindow.AddExitButton();


            controller.Timer.Stop();
            MessageBox.Show("Game is over");
            mainWindow.Update();
        }
Exemple #7
0
        public void doAction(GameController controller, IMainWindow mainWindow)
        {
            if (controller.State is GameState)
            {
                controller.WriteLogEndOfGame();
            }

            mainWindow.SwitchToGameAreaVisual();
            mainWindow.ClearButtomsArea();
            mainWindow.AddContinueButton();
            mainWindow.AddSaveGameButton();
            mainWindow.AddLoadSaveButton();
            mainWindow.AddExitButton();


            controller.Timer.Stop();
            mainWindow.Update();
        }