示例#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();
  }