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); }
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"); }