source:
orxonox.OLD/orxonox/trunk/src/player.h
@
3345
Last change on this file since 3345 was 3236, checked in by patrick, 20 years ago | |
---|---|
File size: 930 bytes |
Rev | Line | |
---|---|---|
[2190] | 1 | /*! |
2 | \file player.h | |
3 | \brief Implements a basic controllable WorldEntity | |
4 | */ | |
[1853] | 5 | |
[3224] | 6 | #ifndef _PLAYER_H |
7 | #define _PLAYER_H | |
[1853] | 8 | |
[2036] | 9 | #include "world_entity.h" |
[3196] | 10 | #include "importer/object.h" |
[1853] | 11 | |
[2190] | 12 | //! Basic controllable WorldEntity |
[2036] | 13 | class Player : public WorldEntity |
14 | { | |
[2551] | 15 | friend class World; |
16 | ||
[1853] | 17 | public: |
[3226] | 18 | Player(bool isFree = false); |
19 | ~Player(); | |
[2551] | 20 | |
[3236] | 21 | virtual void postSpawn(); |
[3226] | 22 | virtual void tick(float time); |
23 | virtual void hit(WorldEntity* weapon, Vector loc); | |
24 | virtual void destroy(); | |
25 | virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); | |
26 | virtual void command(Command* cmd); | |
[1900] | 27 | |
[3226] | 28 | virtual void draw(); |
29 | virtual void getLookat(Location* locbuf); | |
[2551] | 30 | |
[3226] | 31 | virtual void leftWorld(); |
[2551] | 32 | |
[1856] | 33 | private: |
[2551] | 34 | bool bUp, bDown, bLeft, bRight, bAscend, bDescend; |
35 | bool bFire; | |
36 | Vector velocity; | |
[3227] | 37 | float travelSpeed; |
[2551] | 38 | float acceleration; |
[2730] | 39 | GLuint objectList; |
[2811] | 40 | Object* obj; |
[2551] | 41 | |
[3226] | 42 | void move(float time); |
[2551] | 43 | |
[1853] | 44 | }; |
45 | ||
[3224] | 46 | #endif /* _PLAYER_H */ |
Note: See TracBrowser
for help on using the repository browser.