diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/jrummikub/model/Stone.java | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/jrummikub/model/Stone.java b/src/jrummikub/model/Stone.java new file mode 100644 index 0000000..675c3c0 --- /dev/null +++ b/src/jrummikub/model/Stone.java @@ -0,0 +1,26 @@ +package jrummikub.model; + +public class Stone { + private int value; + private StoneColor color; + private final boolean joker; + + Stone(int value, StoneColor color, boolean joker) { + this.value = value; + this.color = color; + this.joker = joker; + } + + public StoneColor getColor() { + return color; + } + + public boolean isJoker() { + return joker; + } + + public int getValue() { + return value; + } + +} |