diff options
author | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-04-28 15:41:19 +0200 |
---|---|---|
committer | Ida Massow <massow@informatik.uni-luebeck.de> | 2011-04-28 15:41:19 +0200 |
commit | 7f0b5f9b7898aa695981a6ac53520a4b6ce4d1c2 (patch) | |
tree | 02a7ba793e2a38d4ad09876e1cc6503575844ad8 /src | |
parent | 793ec9885fc7f90d5188bc79c09865919c7a5582 (diff) | |
download | JRummikub-7f0b5f9b7898aa695981a6ac53520a4b6ce4d1c2.tar JRummikub-7f0b5f9b7898aa695981a6ac53520a4b6ce4d1c2.zip |
Stone-Klasse
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@6 72836036-5685-4462-b002-a69064685172
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; + } + +} |