Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10101 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
RevLine 
[8067]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{
[9869]13  ObjectListDeclaration(Spectator);
[8228]14
[8067]15  public:
[8228]16    Spectator(const TiXmlElement* root = NULL);
[8067]17    virtual ~Spectator();
[8228]18
19    virtual void loadParams(const TiXmlElement* root);
20
[8067]21    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
22
23    virtual void enter();
24    virtual void leave();
[8228]25
26    virtual void reset();
27
[8067]28    virtual void collidesWith(WorldEntity* entity, const Vector& location);
29    virtual void tick(float time);
30
31    virtual void process(const Event &event);
[8228]32
[8067]33  private:
[8228]34    void init();
35
[8067]36    bool                  bLeft;
37    bool                  bRight;
38    bool                  bForward;
39    bool                  bBackward;
[9869]40
[8067]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
[8147]45    float                 angleX;
46    float                 angleY;
[8228]47
[8067]48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.