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); } }