diff options
Diffstat (limited to 'aux/set/Meld.java')
| -rw-r--r-- | aux/set/Meld.java | 45 | 
1 files changed, 45 insertions, 0 deletions
| diff --git a/aux/set/Meld.java b/aux/set/Meld.java new file mode 100644 index 0000000..8da091b --- /dev/null +++ b/aux/set/Meld.java @@ -0,0 +1,45 @@ +package mahjong.aux.set; + +import mahjong.aux.Card; +import mahjong.player.GenericPlayer; + +/** + * Created by joe on 12/2/14. + */ +public class Meld { +    public enum Type {Chi,Peng,aGang,mGang,jGang}; + +    private Type type; +    private Card[] rep; +    private int from; + +    public Meld(Card[] rep,Type type,int from) +    { +        this.rep=rep; +        this.type=type; +        this.from=from; +    } + +    public Meld(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; +    } +} | 
