예제 #1
0
 // '' <summary>
 // '' Completes the deployment phase of the game and
 // '' switches to the battle mode (Discovering state)
 // '' </summary>
 // '' <remarks>
 // '' This adds the players to the game before switching
 // '' state.
 // '' </remarks>
 public static void EndDeployment()
 {
     // deploy the players
     _theGame.AddDeployedPlayer(_human);
     _theGame.AddDeployedPlayer(_ai);
     GameController.SwitchState(GameState.Discovering);
 }
예제 #2
0
        /// <summary>
        /// Completes the deployment phase of the game and
        /// switches to the battle mode (Discovering state).
        /// <remarks>
        /// This adds the players to the game before switching state.
        /// </remarks>
        /// </summary>
        public static void EndDeployment()
        {
            // Deploy the players.
            _theGame.AddDeployedPlayer(_human);
            _theGame.AddDeployedPlayer(_ai);

            SwitchState(GameState.Discovering);
        }
예제 #3
0
        /// <summary>
        /// Completes the deployment phase of the game and
        /// switches to the battle mode (Discovering state)
        /// </summary>
        /// <remarks>
        /// This adds the players to the game before switching
        /// state.
        /// </remarks>
        public static void EndDeployment()
        {
            //deploy the players
            _theGame.AddDeployedPlayer(_human);
            _theGame.AddDeployedPlayer(_ai);

            Audio.PlaySoundEffect(GameResources.GameSound("Siren"));

            SwitchState(GameState.Discovering);
        }
        public void AddPlayerTest()
        {
            BattleShipsGame testGame = new BattleShipsGame();
            Player          p1       = new Player(testGame);

            testGame.AddDeployedPlayer(p1);
            Assert.AreEqual(p1, testGame.Player);
        }