summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/control
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2011-05-16 20:49:11 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2011-05-16 20:49:11 +0200
commit9ad7f0822eb66972f740fb3da58c85d7a555d549 (patch)
tree884c67b386014e8bf7f9a0d20c75bd3203493053 /src/jrummikub/control
parentbe4b1b41200f5383850db3b20fb9aabf38374010 (diff)
downloadJRummikub-9ad7f0822eb66972f740fb3da58c85d7a555d549.tar
JRummikub-9ad7f0822eb66972f740fb3da58c85d7a555d549.zip
Add hand row controls to view
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@241 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control')
-rw-r--r--src/jrummikub/control/GameControl.java3
-rw-r--r--src/jrummikub/control/TurnControl.java1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/jrummikub/control/GameControl.java b/src/jrummikub/control/GameControl.java
index b62232f..ae50b3c 100644
--- a/src/jrummikub/control/GameControl.java
+++ b/src/jrummikub/control/GameControl.java
@@ -1,7 +1,6 @@
package jrummikub.control;
import jrummikub.model.GameState;
-import jrummikub.model.Hand;
import jrummikub.util.IListener;
import jrummikub.view.IView;
@@ -20,8 +19,6 @@ public class GameControl {
*/
public GameControl(IView view) {
this.view = view;
- view.getPlayerPanel().getHandPanel().setHandHeight(Hand.HEIGHT);
- view.getPlayerPanel().getHandPanel().setHandWidth(Hand.WIDTH);
view.getNewGameEvent().add(new IListener() {
@Override
diff --git a/src/jrummikub/control/TurnControl.java b/src/jrummikub/control/TurnControl.java
index 3a357cc..06e1d76 100644
--- a/src/jrummikub/control/TurnControl.java
+++ b/src/jrummikub/control/TurnControl.java
@@ -99,6 +99,7 @@ public class TurnControl {
}));
view.getPlayerPanel().getHandPanel().setStones(hand.clone());
+ view.getPlayerPanel().getHandPanel().resetCurrentRow();
view.enableStartTurnPanel(false);
timer.startTimer();