summaryrefslogtreecommitdiff
path: root/player/GenericPlayer.java
diff options
context:
space:
mode:
authorJoe Zhao <ztuowen@gmail.com>2014-12-03 20:12:13 +0800
committerJoe Zhao <ztuowen@gmail.com>2014-12-03 20:12:13 +0800
commit2bd91f30c298f6fbdd1d0f84f26e1f228ec37152 (patch)
tree588d3fe4fa97e990601afc31aafb54f6caa9c3d4 /player/GenericPlayer.java
parent4b018af45ad8a133ae7abe2b164c18e3e345291b (diff)
downloadMahjong-2bd91f30c298f6fbdd1d0f84f26e1f228ec37152.tar.gz
Mahjong-2bd91f30c298f6fbdd1d0f84f26e1f228ec37152.tar.bz2
Mahjong-2bd91f30c298f6fbdd1d0f84f26e1f228ec37152.zip
New framework
Diffstat (limited to 'player/GenericPlayer.java')
-rw-r--r--player/GenericPlayer.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/player/GenericPlayer.java b/player/GenericPlayer.java
index b965310..23cea93 100644
--- a/player/GenericPlayer.java
+++ b/player/GenericPlayer.java
@@ -4,6 +4,7 @@ import mahjong.aux.Card;
import mahjong.aux.set.Aside;
import mahjong.aux.set.Hand;
import mahjong.aux.set.Set;
+import mahjong.engine.Action;
import java.io.IOException;
@@ -20,16 +21,8 @@ public abstract class GenericPlayer {
return name;
}
- public abstract void stateUpdate(GenericPlayer player,Aside aside,Card card);
- public abstract Card putCard();
- public abstract void give(Card card);
-
- public abstract Aside confirmPeng(Card card, int from);
- public abstract Aside confirmChi(Card card, int from);
- public abstract Aside confirmJiaAnGang(Card card, int from);
- public abstract Aside confirmMingGang(Card card, int from);
-
- public abstract boolean confirmHu(Card card,int from);
+ public abstract Action stateAlert(Action action);
+ public abstract void stateUpdate(Action action);
public void setScore(int score) {
this.score = score;