Exemple #1
0
        /**
         * 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;
        }
Exemple #2
0
        public void DrowHighScoreWindow(IGame game)
        {
            var highScore = new HighScoreForm(game);

            highScore.ShowDialog();
        }
Exemple #3
0
 public void SetHighScoreView(HighScoreForm highScore)
 {
     this.highScore = highScore;
 }