summaryrefslogtreecommitdiffstats
path: root/src/jrummikub
diff options
context:
space:
mode:
authorIda Massow <massow@informatik.uni-luebeck.de>2011-05-01 00:13:22 +0200
committerIda Massow <massow@informatik.uni-luebeck.de>2011-05-01 00:13:22 +0200
commitb8fa08c9bb502b08e643c84c656f31cf0ad23f4d (patch)
tree036f3672ba4fc22634bc432d9c3a9ea2e6cda9e3 /src/jrummikub
parentd262d91b076cbaa322d49818476b251c06cee42e (diff)
downloadJRummikub-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.java12
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;