Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/test/src/world_entities/spectator.h @ 10764

Last change on this file since 10764 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

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  ObjectListDeclaration(Spectator);
14
15  public:
16    Spectator(const TiXmlElement* root = NULL);
17    virtual ~Spectator();
18
19    virtual void loadParams(const TiXmlElement* root);
20
21    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
22
23    virtual void enter();
24    virtual void leave();
25
26    virtual void reset();
27
28    virtual void collidesWith(WorldEntity* entity, const Vector& location);
29    virtual void tick(float time);
30
31    virtual void process(const Event &event);
32
33  private:
34    void init();
35
36    bool                  bLeft;
37    bool                  bRight;
38    bool                  bForward;
39    bool                  bBackward;
40
41    float                 xMouse;             //!< mouse moved in x-Direction
42    float                 yMouse;             //!< mouse moved in y-Direction
43    Quaternion            mouseDir;           //!< the direction where the player wants to fly
44
45    float                 angleX;
46    float                 angleY;
47
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.