From 9ad7f0822eb66972f740fb3da58c85d7a555d549 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 16 May 2011 20:49:11 +0200 Subject: Add hand row controls to view git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@241 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/control/GameControl.java | 3 --- src/jrummikub/control/TurnControl.java | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'src/jrummikub/control') 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(); -- cgit v1.2.3