Esempio n. 1
0
 public void playCard(Card cardPlayed, Player cardLayer, Player other)
 {
     cardPlayed.Play(cardLayer, other);
 }
Esempio n. 2
0
 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);
 }