diff options
Diffstat (limited to 'src/jrummikub')
-rw-r--r-- | src/jrummikub/model/Stone.java | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/jrummikub/model/Stone.java b/src/jrummikub/model/Stone.java index b9184da..569d099 100644 --- a/src/jrummikub/model/Stone.java +++ b/src/jrummikub/model/Stone.java @@ -7,6 +7,18 @@ public class Stone { private StoneColor color; private final boolean joker; + public Stone(StoneColor color) { + this.value = 0; + this.color = color; + this.joker = true; + } + + public Stone(int value, StoneColor color) { + this.value = value; + this.color = color; + this.joker = false; + } + public Stone(int value, StoneColor color, boolean joker) { this.value = value; this.color = color; |