Add hand row controls to view
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@241 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
be4b1b4120
commit
9ad7f0822e
6 changed files with 129 additions and 62 deletions
|
@ -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
|
||||
|
|
|
@ -99,6 +99,7 @@ public class TurnControl {
|
|||
}));
|
||||
|
||||
view.getPlayerPanel().getHandPanel().setStones(hand.clone());
|
||||
view.getPlayerPanel().getHandPanel().resetCurrentRow();
|
||||
view.enableStartTurnPanel(false);
|
||||
|
||||
timer.startTimer();
|
||||
|
|
Reference in a new issue