Last change
on this file since 8135 was
8068,
checked in by patrick, 18 years ago
|
trunk: merged the network branche back to trunk
|
File size:
1.0 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file cpectator.h |
---|
3 | * Implements a playable for lazy people |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _SPECTATOR_H |
---|
7 | #define _SPECTATOR_H |
---|
8 | |
---|
9 | #include "playable.h" |
---|
10 | |
---|
11 | class Spectator : public Playable |
---|
12 | { |
---|
13 | public: |
---|
14 | Spectator( const TiXmlElement* root = NULL ); |
---|
15 | virtual ~Spectator(); |
---|
16 | |
---|
17 | virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f); |
---|
18 | |
---|
19 | virtual void enter(); |
---|
20 | virtual void leave(); |
---|
21 | |
---|
22 | virtual void collidesWith(WorldEntity* entity, const Vector& location); |
---|
23 | virtual void tick(float time); |
---|
24 | |
---|
25 | virtual void process(const Event &event); |
---|
26 | |
---|
27 | private: |
---|
28 | bool bLeft; |
---|
29 | bool bRight; |
---|
30 | bool bForward; |
---|
31 | bool bBackward; |
---|
32 | |
---|
33 | float xMouse; //!< mouse moved in x-Direction |
---|
34 | float yMouse; //!< mouse moved in y-Direction |
---|
35 | Quaternion mouseDir; //!< the direction where the player wants to fly |
---|
36 | |
---|
37 | Quaternion rotY; |
---|
38 | Quaternion rotAxis; |
---|
39 | }; |
---|
40 | |
---|
41 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.