summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r--src/jrummikub/control/turn/HumanTurnControl.java16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/jrummikub/control/turn/HumanTurnControl.java b/src/jrummikub/control/turn/HumanTurnControl.java
index 9215bae..c49d7ce 100644
--- a/src/jrummikub/control/turn/HumanTurnControl.java
+++ b/src/jrummikub/control/turn/HumanTurnControl.java
@@ -83,6 +83,16 @@ public class HumanTurnControl extends AbstractTurnControl {
if (!inspectOnly)
addTablePanelHandlers();
+ addListeners();
+
+ view.getHandPanel().setStones(hand.clone());
+ view.getHandPanel().resetCurrentRow();
+ view.enableStartTurnPanel(false);
+
+ timer.startTimer();
+ }
+
+ private void addListeners() {
connections.add(view.getPlayerPanel().getSortByGroupsEvent()
.add(new IListener() {
@Override
@@ -98,12 +108,6 @@ public class HumanTurnControl extends AbstractTurnControl {
sortByRuns();
}
}));
-
- view.getHandPanel().setStones(hand.clone());
- view.getHandPanel().resetCurrentRow();
- view.enableStartTurnPanel(false);
-
- timer.startTimer();
}
private void addHandPanelHandlers() {