/** * Displays the game itself */ public void startGame() { data = new GameData(); credit = new CreditSystem(); logic = new GameLogic(this); logic.SetCreditSystem(credit); logic.SetGameData(data); /*game.SetGameLogic(logic); * game.SetGameData(data); * game.SetCreditSystem(credit); * logic.SetGameView(game);*/ highScoreForm = new HighScoreForm(logic); game = new GameView(this, logic, data, credit); game.Location = new Point(80, 90); this.Controls.Add(game); initalsForm = new InitalsForm(logic); initalsForm.Location = new Point(80, 90); this.Controls.Add(initalsForm); initalsForm.Visible = false; highScoreForm.Location = new Point(80, 90); this.Controls.Add(highScoreForm); highScoreForm.Visible = false; }
public void DrowHighScoreWindow(IGame game) { var highScore = new HighScoreForm(game); highScore.ShowDialog(); }
public void SetHighScoreView(HighScoreForm highScore) { this.highScore = highScore; }