From 134770f0cd68eaf0525e03bb6e6cfbd03153fdb7 Mon Sep 17 00:00:00 2001 From: Joe Zhao Date: Tue, 2 Dec 2014 21:40:36 +0800 Subject: Various UI Tested Read Card --- aux/set/Aside.java | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 aux/set/Aside.java (limited to 'aux/set/Aside.java') diff --git a/aux/set/Aside.java b/aux/set/Aside.java new file mode 100644 index 0000000..1503799 --- /dev/null +++ b/aux/set/Aside.java @@ -0,0 +1,41 @@ +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; + } +} -- cgit v1.2.3-70-g09d2