// '' <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); }
/// <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); }
/// <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); }