diff options
author | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-02 23:33:45 +0200 |
---|---|---|
committer | Jannis Harder <harder@informatik.uni-luebeck.de> | 2011-05-02 23:33:45 +0200 |
commit | 78049911ca8021b3198122d18c47257ada4cf037 (patch) | |
tree | e670139d47d22320019deebb596afc28f1a35eb5 | |
parent | d2c5268aa337d11ab55e8d2d6b2c13944a9548f9 (diff) | |
download | JRummikub-78049911ca8021b3198122d18c47257ada4cf037.tar JRummikub-78049911ca8021b3198122d18c47257ada4cf037.zip |
Horizontal/Vertical border constant in model
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@69 72836036-5685-4462-b002-a69064685172
-rw-r--r-- | src/jrummikub/model/StoneSet.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jrummikub/model/StoneSet.java b/src/jrummikub/model/StoneSet.java index d0615fc..47e6786 100644 --- a/src/jrummikub/model/StoneSet.java +++ b/src/jrummikub/model/StoneSet.java @@ -13,7 +13,8 @@ import jrummikub.util.Pair; /** Class managing {@link Stone}s joined together to form sets */ public class StoneSet implements Iterable<Stone>, Sizeable { - float border = 0.125f; + static final float VERTICAL_BORDER = 0.5f; + static final float HORIZONTAL_BORDER = 0.125f; private List<Stone> stones; public StoneSet(Stone stone) { @@ -186,12 +187,12 @@ public class StoneSet implements Iterable<Stone>, Sizeable { @Override public float getWidth() { - return stones.size() + 2 * border; + return stones.size() + 2 * VERTICAL_BORDER; } @Override public float getHeight() { - return 1; + return 1 + 2 * HORIZONTAL_BORDER; } } |