blob: c58932c058e61743771518762812b2a7789b461b (
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
|
package mahjong.aux.set;
import mahjong.aux.Card;
import mahjong.player.GenericPlayer;
/**
* Created by joe on 12/2/14.
*/
public class Aside {
public enum Type {Chi,Peng,aGang,mGang,jGang};
private Type type;
private Card rep;
private int from;
public Aside(Card rep,Type type,int from)
{
this.rep=rep;
this.type=type;
this.from=from;
}
public Aside(Card rep,Type type)
{
this.rep=rep;
this.type=type;
this.from= 0;
}
public Card getRep() {
return rep;
}
public int getFrom() {
return from;
}
public Type getType() {
return type;
}
public void setFrom(int from) {
this.from = from;
}
}
|