diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-31 03:04:22 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-31 03:04:22 +0200 |
commit | acc7d3f11fa8fcda721215f8d3a21c5652d29526 (patch) | |
tree | b9e8270e9e86d755fce64c5bd2ac84b0374f175a | |
parent | 25c6383c73de20ce7e6bc45af6faa255e8d94dc6 (diff) | |
download | JRummikub-acc7d3f11fa8fcda721215f8d3a21c5652d29526.tar JRummikub-acc7d3f11fa8fcda721215f8d3a21c5652d29526.zip |
HumanTurnControl: Fix method length
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@339 72836036-5685-4462-b002-a69064685172
-rw-r--r-- | src/jrummikub/control/turn/HumanTurnControl.java | 16 |
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() { |