Last change
on this file since 2161 was
2141,
checked in by chris, 21 years ago
|
orxonox/branches/chris: added lots and lots of doxygen tags
|
File size:
853 bytes
|
Rev | Line | |
---|
[2141] | 1 | /*! |
---|
| 2 | \file player.h |
---|
| 3 | \brief Implements a basic controllable WorldEntity |
---|
| 4 | */ |
---|
[1853] | 5 | |
---|
| 6 | #ifndef PLAYER_H |
---|
| 7 | #define PLAYER_H |
---|
| 8 | |
---|
[2058] | 9 | #include "world_entity.h" |
---|
[1853] | 10 | |
---|
[2141] | 11 | //! Basic controllable WorldEntity |
---|
[2058] | 12 | class Player : public WorldEntity |
---|
| 13 | { |
---|
[2096] | 14 | friend class World; |
---|
[2058] | 15 | |
---|
[1853] | 16 | public: |
---|
[2101] | 17 | Player (bool isFree = false); |
---|
[1853] | 18 | ~Player (); |
---|
| 19 | |
---|
[2096] | 20 | virtual void post_spawn (); |
---|
| 21 | virtual void tick (float time); |
---|
| 22 | virtual void hit (WorldEntity* weapon, Vector loc); |
---|
| 23 | virtual void destroy (); |
---|
| 24 | virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); |
---|
| 25 | virtual void command (Command* cmd); |
---|
[1900] | 26 | |
---|
[2096] | 27 | virtual void draw (); |
---|
| 28 | virtual void get_lookat (Location* locbuf); |
---|
[1899] | 29 | |
---|
[2096] | 30 | virtual void left_world (); |
---|
[2058] | 31 | |
---|
[1856] | 32 | private: |
---|
[2096] | 33 | bool bUp, bDown, bLeft, bRight, bAscend, bDescend; |
---|
| 34 | bool bFire; |
---|
| 35 | Vector velocity; |
---|
| 36 | float travel_speed; |
---|
| 37 | float acceleration; |
---|
| 38 | |
---|
| 39 | void move (float time); |
---|
| 40 | |
---|
[1853] | 41 | }; |
---|
| 42 | |
---|
| 43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.