コード例 #1
0
 public void refreshPlayerPhases() {
   for (PlayerPanel pPanel : players) {
     if (pPanel.getReference().equals(Engine.getCurrentGame().getCurrentPlayer()))
       pPanel.setPhase(Engine.getCurrentGameState().getCurrentPhase());
     else pPanel.setPhase(null);
   }
 }
コード例 #2
0
 public void refreshHandsVisible() {
   for (PlayerPanel pPanel : players) {
     if (Engine.getCurrentGame().getCurrentPlayer().equals(pPanel.getReference())) {
       pPanel.setHandVisible(true);
     } else pPanel.setHandVisible(false);
   }
 }