/* * (non-Javadoc) * * @see * org.ozsoft.texasholdem.Client#playerActed(org.ozsoft.texasholdem.Player) */ public void playerActed(Player player) { String name = player.getName(); PlayerPanel playerPanel = playerPanels.get(name); if (playerPanel != null) { playerPanel.update(player); Action action = player.getAction(); if (action != null) { boardPanel.setMessage(String.format("%s %s.", name, action.getVerb())); // FIXME: Determine whether actor is the human player (not by // name). if (!name.equals(thisPlayer)) { boardPanel.waitForUserInput(); this.pack(); } } } else { throw new IllegalStateException(String.format("No PlayerPanel found for player '%s'", name)); } }