summaryrefslogtreecommitdiff
path: root/aux/set/Aside.java
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-12-02 21:40:36 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-12-02 21:40:36 +0800
commit134770f0cd68eaf0525e03bb6e6cfbd03153fdb7 (patch)
treeeb07c5399b1b9fef21ee82efe12415b86c9237b0 /aux/set/Aside.java
parent83122b34976d012fc5524152b170adcfef7eef60 (diff)
downloadMahjong-134770f0cd68eaf0525e03bb6e6cfbd03153fdb7.tar.gz
Mahjong-134770f0cd68eaf0525e03bb6e6cfbd03153fdb7.tar.bz2
Mahjong-134770f0cd68eaf0525e03bb6e6cfbd03153fdb7.zip
Various UI
Tested Read Card
Diffstat (limited to 'aux/set/Aside.java')
-rw-r--r--aux/set/Aside.java41
1 files changed, 41 insertions, 0 deletions
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;
+ }
+}