Stone-Klasse
git-svn-id: svn://sunsvr01.isp.uni-luebeck.de/swproj13/trunk@6 72836036-5685-4462-b002-a69064685172
This commit is contained in:
parent
793ec9885f
commit
7f0b5f9b78
1 changed files with 26 additions and 0 deletions
26
src/jrummikub/model/Stone.java
Normal file
26
src/jrummikub/model/Stone.java
Normal file
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
Reference in a new issue