Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/spectator.h @ 8176

Last change on this file since 8176 was 8147, checked in by bensch, 19 years ago

orxonox/trunk: merged the network branche back here
merged with command:
svn merge -r8070:HEAD https://svn.orxonox.net/orxonox/branches/network .
no conflicts

File size: 1.1 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
11class 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    float                 angleX;
40    float                 angleY;
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.