public abstract class OnlinePlayer extends Player implements AsyncSocketListener{
    protected AsyncSocket socket;
    protected int wantedBoardSize;

    protected boolean hasReceivedCoinPackage;

    public OnlinePlayer(Integer size, AsyncSocket socket) {
        this.socket = socket;
        this.wantedBoardSize = size;
        socket.setHandler(this);
        //TODO Auto-generated constructor stub
    }

    public abstract void sendIAM();

    public abstract void receive(String message);

    @Override
    public abstract void receiveShoot(Point point);

    @Override
    public abstract void receiveHit(HitResponse hitResponse);

    @Override
    public abstract void receiveCoin(boolean coin);

}
