Esempio n. 1
0
 public static void ItWasAHit(Player player, Player inactivePlayer, int xCoord, int yCoord)
 {
     if (comPlayer)
     {
         ComputerPlayer.justHitCoords = String.Format("{0} {1}", xCoord, yCoord);
     }
     InfoMessages.InfoMessage += ("You got a hit!\n");
     Board.Change(player, inactivePlayer, xCoord, yCoord, "hit");
     DidAShipSink(inactivePlayer);
 }
Esempio n. 2
0
 public static void AttackMissed(Player player, Player inactivePlayer, int xCoord, int yCoord)
 {
     InfoMessages.InfoMessage += "That attack has missed.\n";
     Board.Change(player, inactivePlayer, xCoord, yCoord, "miss");
 }