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

            mainWindow.Update();
        }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
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();
        }