public void doAction(GameController controller, IMainWindow mainWindow) { mainWindow.ClearButtomsArea(); mainWindow.AddExitButton(GameController.FetchGameController.State); mainWindow.SwitchToSaveScreen(); mainWindow.Update(); }
public void doAction(GameController controller, IMainWindow mainWindow) { mainWindow.SwitchToGameAreaVisual(); mainWindow.ClearButtomsArea(); mainWindow.AddUseToroidToggle(); mainWindow.AddAutoGenerateAliveCellsButton(); mainWindow.AddStartButton(); mainWindow.AddDrawAliveCellsButton(); mainWindow.Update(); }
public void doAction(GameController controller, IMainWindow mainWindow) { mainWindow.SwitchToGameAreaVisual(); mainWindow.ClearButtomsArea(); mainWindow.AddPauseButton(); controller.WriteLogStartOfGame(); controller.Timer.Start(); mainWindow.Update(); }
public void doAction(GameController controller, IMainWindow mainWindow) { mainWindow.SwitchToGameAreaVisual(); mainWindow.ClearButtomsArea(); mainWindow.AddNewButton(); mainWindow.AddLoadSaveButton(); mainWindow.AddLoadRandSaveButton(); controller.ResetModelFilledWithDeadCells(); mainWindow.Update(); }
public void doAction(GameController controller, IMainWindow mainWindow) { mainWindow.SwitchToGameAreaVisual(); mainWindow.ClearButtomsArea(); mainWindow.AddApplyDrawButton(); mainWindow.AddCancelDrawButton(); controller.GameModel.ResetModelFilledWithDeadCells(); mainWindow.SwitchOnDrawAliveCellsState(); mainWindow.Update(); }
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(); }
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(); }