diff options
Diffstat (limited to 'src/jrummikub/control/TurnControl.java')
-rw-r--r-- | src/jrummikub/control/TurnControl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jrummikub/control/TurnControl.java b/src/jrummikub/control/TurnControl.java index 632c3ee..32e6379 100644 --- a/src/jrummikub/control/TurnControl.java +++ b/src/jrummikub/control/TurnControl.java @@ -30,7 +30,7 @@ public class TurnControl { private List<Stone> selectedStones = new ArrayList<Stone>(); private Event endOfTurnEvent = new Event(); - List<Connection> connections = new ArrayList<Connection>(); + private List<Connection> connections = new ArrayList<Connection>(); public TurnControl(IHand hand, ITable table, IView view) { this.hand = hand; @@ -203,11 +203,11 @@ public class TurnControl { for (Stone stone : stones) { hand.drop(stone, new Position(x, y)); x++; - if (x >= RoundControl.HAND_WIDTH) { + if (x >= GameControl.HAND_WIDTH) { x = 0; y++; - if (y >= RoundControl.HAND_HEIGHT) { + if (y >= GameControl.HAND_HEIGHT) { throw new ArrayIndexOutOfBoundsException(); // TODO We can't // handle // this yet... |