Horizontal/Vertical border constant in model
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@69 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
d2c5268aa3
commit
78049911ca
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Reference in a new issue