summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/jrummikub/model')
-rw-r--r--src/jrummikub/model/StoneSet.java7
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;
}
}