/*! * @file player.h * Implements a basic controllable WorldEntity */ #ifndef _PLAYER_H #define _PLAYER_H #include "event_listener.h" /* Forward Declaration */ class Playable; //! Basic controllable WorldEntity /** * this is the debug player - actualy we would have to make a new class derivated from Player for each player. for now, we just use the player.cc for debug also */ class Player : public EventListener { public: Player(); virtual ~Player(); bool setControllable(Playable* controllalble); inline Playable* getControllable() { return this->controllable; }; bool disconnectControllable(); // eventListener extension. virtual void process(const Event &event); private: void init(); private: Playable* controllable; //!< The one we controll or NULL if none }; #endif /* _PLAYER_H */