diff options
Diffstat (limited to 'player/PlayerActionServer.java')
-rw-r--r-- | player/PlayerActionServer.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/player/PlayerActionServer.java b/player/PlayerActionServer.java index 09d2417..9e126d4 100644 --- a/player/PlayerActionServer.java +++ b/player/PlayerActionServer.java @@ -2,6 +2,7 @@ package mahjong.player; import mahjong.aux.set.Hand; import mahjong.engine.Action; +import mahjong.tools.Alert; /** * Created by joe on 12/4/14. @@ -25,13 +26,18 @@ public class PlayerActionServer implements PlayerActionHandler { return name; } + @Override public Action stateAlert(Action action) { + Alert.Error(action==null,"Action can't be null in alert"); return null; } + @Override public void stateUpdate(Action action) { + if (action == null) + return; } public int getScore() { |