Exemple #1
0
  // Receives trick update.
  public static void handleTrickUpdate(Message m) {

    trick = m.getDeck();
    trickPlayers = m.info.split("\n");
  }
Exemple #2
0
  // Receives passed cards.
  public static void handleSendPassed(Message m) {

    Deck d = m.getDeck();
    for (int i = 0; i < d.length(); i++) hand.add(d.cardAt(i));
    hand.sort();
  }
Exemple #3
0
  // Receives hand.
  public static void handleSendHand(Message m) {

    hand = m.getDeck();
  }