From 78049911ca8021b3198122d18c47257ada4cf037 Mon Sep 17 00:00:00 2001 From: Jannis Harder Date: Mon, 2 May 2011 23:33:45 +0200 Subject: Horizontal/Vertical border constant in model git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@69 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/StoneSet.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/jrummikub/model') 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, Sizeable { - float border = 0.125f; + static final float VERTICAL_BORDER = 0.5f; + static final float HORIZONTAL_BORDER = 0.125f; private List stones; public StoneSet(Stone stone) { @@ -186,12 +187,12 @@ public class StoneSet implements Iterable, 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; } } -- cgit v1.2.3