blob: 97216028bc56ff7b94c3ab3088b22287a118a433 (
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
41
42
43
44
45
46
47
48
49
50
51
|
package jrummikub.model;
/** Basic Rummikub Stone */
public class Stone implements Sizeable {
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;
}
@Override
public float getWidth() {
return 1;
}
@Override
public float getHeight() {
return 1;
}
}
|