summaryrefslogtreecommitdiff
path: root/player/PlayerActionServer.java
diff options
context:
space:
mode:
Diffstat (limited to 'player/PlayerActionServer.java')
-rw-r--r--player/PlayerActionServer.java23
1 files changed, 17 insertions, 6 deletions
diff --git a/player/PlayerActionServer.java b/player/PlayerActionServer.java
index 49fcef4..09d2417 100644
--- a/player/PlayerActionServer.java
+++ b/player/PlayerActionServer.java
@@ -6,21 +6,32 @@ import mahjong.engine.Action;
/**
* Created by joe on 12/4/14.
*/
-public abstract class PlayerActionServer {
- public Hand hand=new Hand();
+
+// TODO Hard to manage relations
+public class PlayerActionServer implements PlayerActionHandler {
+ Hand hand=new Hand();
int score;
protected String name;
+ PlayerActionHandler player;
+
+ PlayerActionServer(PlayerActionHandler player)
+ {
+ this.player=player;
+ }
+
public String getName() {
return name;
}
- public abstract Action stateAlert(Action action);
- public abstract void stateUpdate(Action action);
+ public Action stateAlert(Action action)
+ {
+ return null;
+ }
- public void setScore(int score) {
- this.score = score;
+ public void stateUpdate(Action action)
+ {
}
public int getScore() {