Last change
on this file since 3146 was
2811,
checked in by bensch, 20 years ago
|
orxonox/trunk: merged the ObjectImporter to trunk: merged with
svn merge branches/importer/src/ trunk/src/ -r 2794:HEAD
|
File size:
920 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \file player.h |
---|
3 | \brief Implements a basic controllable WorldEntity |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef PLAYER_H |
---|
7 | #define PLAYER_H |
---|
8 | |
---|
9 | #include "world_entity.h" |
---|
10 | #include "object.h" |
---|
11 | |
---|
12 | //! Basic controllable WorldEntity |
---|
13 | class Player : public WorldEntity |
---|
14 | { |
---|
15 | friend class World; |
---|
16 | |
---|
17 | public: |
---|
18 | Player (bool isFree = false); |
---|
19 | ~Player (); |
---|
20 | |
---|
21 | virtual void post_spawn (); |
---|
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); |
---|
27 | |
---|
28 | virtual void draw (); |
---|
29 | virtual void get_lookat (Location* locbuf); |
---|
30 | |
---|
31 | virtual void left_world (); |
---|
32 | |
---|
33 | private: |
---|
34 | bool bUp, bDown, bLeft, bRight, bAscend, bDescend; |
---|
35 | bool bFire; |
---|
36 | Vector velocity; |
---|
37 | float travel_speed; |
---|
38 | float acceleration; |
---|
39 | GLuint objectList; |
---|
40 | Object* obj; |
---|
41 | |
---|
42 | void move (float time); |
---|
43 | |
---|
44 | }; |
---|
45 | |
---|
46 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.