summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-12-05 20:07:14 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-12-05 20:07:14 +0800
commitc0825e62c58cd76d3f2b9c34637ee37a21de222a (patch)
tree08b83388fcce650eada0bc1a627c88df4aa999c1 /engine
parent0d3a0f0ca6c038ba931edbde87bd21db9397327b (diff)
downloadMahjong-c0825e62c58cd76d3f2b9c34637ee37a21de222a.tar.gz
Mahjong-c0825e62c58cd76d3f2b9c34637ee37a21de222a.tar.bz2
Mahjong-c0825e62c58cd76d3f2b9c34637ee37a21de222a.zip
Restructuring
Diffstat (limited to 'engine')
-rw-r--r--engine/Action.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/engine/Action.java b/engine/Action.java
index f544909..3009fa0 100644
--- a/engine/Action.java
+++ b/engine/Action.java
@@ -8,14 +8,27 @@ public class Action {
// Requirement: printable,parseable,coverage
// Coverage: System,player
public enum Type {System,Player};
+ // System info merely reflect system state
+ // Player info pertaining to players;
+ public enum Place {Info,East,South,West,North};
public enum Act {Info,CardDraw,CardPut,Aside};
Type type;
+ Act act;
+ Place place;
+ String message;
public Type getType() {
return type;
}
+ public Action(Type type,Place place,Act act,String message)
+ {
+ this.type = type;
+ this.place = place;
+ this.act = act;
+ this.message = message;
+ }
public Action(String str)
{
}