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