From b8fa08c9bb502b08e643c84c656f31cf0ad23f4d Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Sun, 1 May 2011 00:13:22 +0200 Subject: StoneSetTest fertig git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@42 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/Stone.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/jrummikub') 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; -- cgit v1.2.3