diff options
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r-- | src/jrummikub/control/RoundControl.java | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/jrummikub/control/RoundControl.java b/src/jrummikub/control/RoundControl.java index 1411337..6e02ef2 100644 --- a/src/jrummikub/control/RoundControl.java +++ b/src/jrummikub/control/RoundControl.java @@ -33,9 +33,21 @@ public class RoundControl { startTurn(); } }); - view.enableStartTurnPanel(true); + + prepareTurn(); + } + + private void prepareTurn() { clonedTable = (ITable) gameState.getTable().clone(); + view.enableStartTurnPanel(true); view.getTablePanel().setStoneSets(clonedTable); + view.setCurrentPlayerName(gameState.getActivePlayer().getName()); + view.getTablePanel().setRightPlayerName( + gameState.getNthNextPlayer(1).getName()); + view.getTablePanel().setTopPlayerName( + gameState.getNthNextPlayer(2).getName()); + view.getTablePanel().setLeftPlayerName( + gameState.getNthNextPlayer(3).getName()); } private void startTurn() { @@ -78,7 +90,7 @@ public class RoundControl { ret.remove(stone); } } - + return ret; } |