source:
orxonox.OLD/branches/powerups/src/world_entities/player.h
@
6124
Last change on this file since 6124 was 5985, checked in by manuel, 19 years ago | |
---|---|
File size: 955 bytes |
Rev | Line | |
---|---|---|
[4780] | 1 | /*! |
[4885] | 2 | * @file player.h |
3 | * Implements a basic controllable WorldEntity | |
[4818] | 4 | */ |
[3471] | 5 | |
6 | #ifndef _PLAYER_H | |
7 | #define _PLAYER_H | |
8 | ||
[4404] | 9 | #include "event_listener.h" |
[5985] | 10 | #include "extendable.h" |
[3471] | 11 | |
[5955] | 12 | /* Forward Declaration */ |
13 | class Playable; | |
[3471] | 14 | |
15 | //! Basic controllable WorldEntity | |
[4885] | 16 | /** |
17 | * this is the debug player - actualy we would have to make a new | |
18 | class derivated from Player for each player. for now, we just use | |
19 | the player.cc for debug also | |
20 | */ | |
[5985] | 21 | |
[5955] | 22 | class Player : public EventListener |
[3471] | 23 | { |
[4780] | 24 | |
[4818] | 25 | public: |
26 | Player(); | |
27 | virtual ~Player(); | |
[3583] | 28 | |
[5955] | 29 | bool setControllable(Playable* controllalble); |
30 | inline Playable* getControllable() { return this->controllable; }; | |
[4780] | 31 | |
[5955] | 32 | bool disconnectControllable(); |
[4780] | 33 | |
[5955] | 34 | // eventListener extension. |
35 | virtual void process(const Event &event); | |
[3583] | 36 | |
[4818] | 37 | private: |
[5955] | 38 | void init(); |
[3755] | 39 | |
[3583] | 40 | |
[4818] | 41 | private: |
[5955] | 42 | Playable* controllable; //!< The one we controll or NULL if none |
[3471] | 43 | }; |
44 | ||
45 | #endif /* _PLAYER_H */ |
Note: See TracBrowser
for help on using the repository browser.