2 Copyright (c) 2007 Paolo Capriotti <p.capriotti@gmail.com>
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
10 #ifndef PLAYERENTITY_H
11 #define PLAYERENTITY_H
21 class PlayerEntity
: public UIEntity
, private Delegate
27 Ship
* canAddShip(const Coord
& c
);
31 PlayerEntity(Sea::Player player
, Sea
* sea
, SeaView
* view
, ChatWidget
* chat
);
34 virtual void start(bool);
35 virtual void hit(Shot
* shot
);
36 virtual void notify(Sea::Player player
, const Coord
& c
, const HitInfo
& info
);
37 virtual void notifyChat(const Entity
* entity
, const QString
& text
);
38 virtual void notifyNick(Sea::Player player
, const QString
& text
);
41 virtual void action(Sea::Player player
, const Coord
& c
);
42 virtual void changeDirection(Sea::Player player
);
43 virtual Ship
* canAddShip(Sea::Player player
, const Coord
& c
);
45 virtual void setNick(const QString
& nick
);
48 virtual void registerHit(Sea::Player player
, const Coord
& c
);
49 virtual void registerMiss(Sea::Player player
, const Coord
& c
);
51 virtual void notifyAbort();
54 #endif // PLAYERENTITY_H