From 7f0b5f9b7898aa695981a6ac53520a4b6ce4d1c2 Mon Sep 17 00:00:00 2001 From: Ida Massow Date: Thu, 28 Apr 2011 15:41:19 +0200 Subject: Stone-Klasse git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@6 72836036-5685-4462-b002-a69064685172 --- src/jrummikub/model/Stone.java | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/jrummikub/model/Stone.java 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; + } + +} -- cgit v1.2.3