summaryrefslogtreecommitdiff
path: root/player/PlayerActionHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'player/PlayerActionHandler.java')
-rw-r--r--player/PlayerActionHandler.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/player/PlayerActionHandler.java b/player/PlayerActionHandler.java
new file mode 100644
index 0000000..05a042c
--- /dev/null
+++ b/player/PlayerActionHandler.java
@@ -0,0 +1,29 @@
+package mahjong.player;
+
+import mahjong.aux.set.Hand;
+import mahjong.engine.Action;
+
+/**
+ * Created by joe on 12/4/14.
+ */
+public abstract class PlayerActionHandler {
+ public Hand hand=new Hand();
+ int score;
+
+ protected String name;
+
+ public String getName() {
+ return name;
+ }
+
+ public abstract Action stateAlert(Action action);
+ public abstract void stateUpdate(Action action);
+
+ public void setScore(int score) {
+ this.score = score;
+ }
+
+ public int getScore() {
+ return score;
+ }
+}