package mahjong.player; import mahjong.aux.set.Hand; import mahjong.engine.Action; import mahjong.tools.Alert; /** * Created by joe on 12/4/14. */ // 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; } @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() { return score; } }