diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-01 00:13:22 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-05-01 00:13:22 +0200 |
commit | b8fa08c9bb502b08e643c84c656f31cf0ad23f4d (patch) | |
tree | 036f3672ba4fc22634bc432d9c3a9ea2e6cda9e3 /src/jrummikub | |
parent | d262d91b076cbaa322d49818476b251c06cee42e (diff) | |
download | JRummikub-b8fa08c9bb502b08e643c84c656f31cf0ad23f4d.tar JRummikub-b8fa08c9bb502b08e643c84c656f31cf0ad23f4d.zip |
StoneSetTest fertig
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@42 72836036-5685-4462-b002-a69064685172
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; |