diff options
Diffstat (limited to 'src/jrummikub')
-rw-r--r-- | src/jrummikub/model/Position.java | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/jrummikub/model/Position.java b/src/jrummikub/model/Position.java index 5e0198b..595015f 100644 --- a/src/jrummikub/model/Position.java +++ b/src/jrummikub/model/Position.java @@ -9,20 +9,17 @@ public class Position { private float x; private float y; - public void setY(float y) { + public Position(float x, float y) { + this.x = x; this.y = y; } + public float getX() { + return x; + } + public float getY() { return y; } - public void setX(float x) { - this.x = x; - } - - public float getX() { - return x; - } - } |