summaryrefslogtreecommitdiffstats
path: root/src/jrummikub/model/Stone.java
blob: 569d099f8d65f1f30f6a2938ca503f8274b5f1da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package jrummikub.model;

/** Basic Rummikub Stone */

public class Stone {
	private int value;
	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;
		this.joker = joker;
	}

	public StoneColor getColor() {
		return color;
	}

	public boolean isJoker() {
		return joker;
	}

	public int getValue() {
		return value;
	}

}