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

    trick = m.getDeck();
    trickPlayers = m.info.split("\n");
  }
예제 #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();
  }
예제 #3
0
  // Receives hand.
  public static void handleSendHand(Message m) {

    hand = m.getDeck();
  }