예제 #1
0
        private void NewGameButton_Click(object sender, EventArgs e)
        {
            //Gameplay game = new Gameplay(2, 1);
            //Opponent player1 = new HumanOpponent("Player 1", TankModel.GetTank(1), Gameplay.GetTankColour(1));
            //Opponent player2 = new HumanOpponent("Player 2", TankModel.GetTank(1), Gameplay.GetTankColour(2));

            //Opponent player3 = new HumanOpponent("Player 2", TankModel.GetTank(1), Gameplay.GetTankColour(2));
            //Opponent player4 = new HumanOpponent("Player 1", TankModel.GetTank(1), Gameplay.GetTankColour(1));
            //Opponent player5 = new HumanOpponent("Player 2", TankModel.GetTank(1), Gameplay.GetTankColour(2));
            //Opponent player6 = new HumanOpponent("Player 2", TankModel.GetTank(1), Gameplay.GetTankColour(2));
            //Opponent player7 = new HumanOpponent("Player 2", TankModel.GetTank(1), Gameplay.GetTankColour(2));
            //Opponent player8 = new HumanOpponent("Player 2", TankModel.GetTank(1), Gameplay.GetTankColour(2));

            //game.SetPlayer(1, player1);
            //game.SetPlayer(2, player2);

            //game.SetPlayer(3, player2);
            //game.SetPlayer(4, player1);
            //game.SetPlayer(5, player2);
            //game.SetPlayer(6, player2);
            //game.SetPlayer(7, player1);
            //game.SetPlayer(8, player2);

            //game.NewGame();

            SetupGameForm setupGame = new SetupGameForm();

            setupGame.Show();
        }
예제 #2
0
        private void newGameButton_Click(object sender, EventArgs e)
        {
            // hide this screen
            //this.Dispose();
            // move to setup screen
            SetupGameForm beginSetup = (new SetupGameForm());

            beginSetup.Owner = this.Owner;
            beginSetup.Show();

            ////part 1 of setting up game (whos and how long)
            //Battle game = new Battle(2, 1);

            ////part 2 of setting up game ( whats each player)
            //GenericPlayer player1 = new PlayerController("Overlord 1", TankModel.GetTank(1), Battle.TankColour(1));
            //GenericPlayer player2 = new PlayerController("Lessor Lord 1", TankModel.GetTank(1), Battle.TankColour(2));

            ////part 3 of setting up game ( give game players )
            //game.SetPlayer(1, player1);
            //game.SetPlayer(2, player2);

            //// create new game ( call game )
            //game.NewGame();
        }