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) { if (controller.State is GameState) { controller.WriteLogEndOfGame(); } mainWindow.SwitchToGameAreaVisual(); mainWindow.ClearButtomsArea(); mainWindow.AddContinueButton(); mainWindow.AddSaveGameButton(); mainWindow.AddLoadSaveButton(); mainWindow.AddExitButton(); controller.Timer.Stop(); mainWindow.Update(); }