public void playCard(Card cardPlayed, Player cardLayer, Player other) { cardPlayed.Play(cardLayer, other); }
public void discard(Card discarded) { discardPile.Add(discarded); }
public static void SendCard(Socket sender, Card played) { string cardInfo = played.getType() + "#" + played.getValue() + "<EOF>"; byte[] message = Encoding.ASCII.GetBytes(cardInfo); int bytesSent = sender.Send(message); }
public void CardPlayed(Card cardPlayed) { Enemy.playCard(cardPlayed, Enemy, Player1); }