public void refreshPlayerPhases() {
   for (PlayerPanel pPanel : players) {
     if (pPanel.getReference().equals(Engine.getCurrentGame().getCurrentPlayer()))
       pPanel.setPhase(Engine.getCurrentGameState().getCurrentPhase());
     else pPanel.setPhase(null);
   }
 }
 public void refreshHandsVisible() {
   for (PlayerPanel pPanel : players) {
     if (Engine.getCurrentGame().getCurrentPlayer().equals(pPanel.getReference())) {
       pPanel.setHandVisible(true);
     } else pPanel.setHandVisible(false);
   }
 }
 public List<PlayerSelectionPanel> getPlayerSelectionPanels(List<Player> players) {
   List<PlayerSelectionPanel> playerSelectionPanels = new LinkedList<PlayerSelectionPanel>();
   for (PlayerPanel pPanel : this.players) {
     if (players.contains(pPanel.getReference()))
       playerSelectionPanels.add(pPanel.getPlayerSelectPanel());
   }
   return playerSelectionPanels;
 }
 public void refreshPlayers() {
   List<PlayerPanel> deadPlayerPanels = new LinkedList<PlayerPanel>();
   for (PlayerPanel pPanel : players) {
     if (!pPanel.getReference().isAlive()) deadPlayerPanels.add(pPanel);
   }
   players.remove(deadPlayerPanels);
   for (PlayerPanel pPanel : deadPlayerPanels) {
     playersView.remove(pPanel);
   }
 }
 public void refreshPlayerLifeTotals() {
   for (PlayerPanel pPanel : players) {
     pPanel.setLife(pPanel.getReference().getRemainingLifePoints());
   }
 }