diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-10 05:53:30 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2011-05-10 05:53:30 +0200 |
commit | 32d07341a5399f83968c698bb0fac3d8349caf57 (patch) | |
tree | b6f93f54f27c88093cc145b9085192f87e34d20b /src/jrummikub/control/TurnControl.java | |
parent | 8f47c06e3175e7b2a6b0c27c96c0ed4d950b8ead (diff) | |
download | JRummikub-32d07341a5399f83968c698bb0fac3d8349caf57.tar JRummikub-32d07341a5399f83968c698bb0fac3d8349caf57.zip |
Define hand size constants in model
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@225 72836036-5685-4462-b002-a69064685172
Diffstat (limited to 'src/jrummikub/control/TurnControl.java')
-rw-r--r-- | src/jrummikub/control/TurnControl.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jrummikub/control/TurnControl.java b/src/jrummikub/control/TurnControl.java index afe1f9a..3a357cc 100644 --- a/src/jrummikub/control/TurnControl.java +++ b/src/jrummikub/control/TurnControl.java @@ -6,6 +6,7 @@ import java.util.Comparator; import java.util.LinkedList; import java.util.List; +import jrummikub.model.Hand; import jrummikub.model.IHand; import jrummikub.model.ITable; import jrummikub.model.Position; @@ -242,11 +243,11 @@ public class TurnControl { for (Stone stone : stones) { hand.drop(stone, new Position(x, y)); x++; - if (x >= GameControl.HAND_WIDTH) { + if (x >= Hand.WIDTH) { x = 0; y++; - if (y >= GameControl.HAND_HEIGHT) { + if (y >= Hand.HEIGHT) { // TODO We can't handle this yet... throw new ArrayIndexOutOfBoundsException(); } |