From acc7d3f11fa8fcda721215f8d3a21c5652d29526 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Tue, 31 May 2011 03:04:22 +0200 Subject: HumanTurnControl: Fix method length git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@339 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/turn/HumanTurnControl.java | 16 ++++++++++------ 1 file 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() { -- cgit v1.2.3