Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 5, 2006, 1:23:45 PM (19 years ago)
Author:
rennerc
Message:

replaced Spectator with new implementation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/spectator.h

    r8147 r8152  
    99#include "playable.h"
    1010
     11#if 0
    1112class Spectator : public Playable
    1213{
     
    4041    float                 angleY;
    4142};
     43#endif
     44
     45class Vector;
     46class Event;
     47class ParticleEmitter;
     48class ParticleSystem;
     49
     50class Spectator : public Playable
     51{
     52
     53  public:
     54    Spectator(const std::string& fileName);
     55    Spectator(const TiXmlElement* root = NULL);
     56    virtual ~Spectator();
     57
     58    virtual void loadParams(const TiXmlElement* root);
     59
     60    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
     61
     62    virtual void enter();
     63    virtual void leave();
     64
     65    virtual void reset();
     66
     67    virtual void collidesWith(WorldEntity* entity, const Vector& location);
     68    virtual void tick(float time);
     69
     70    virtual void process(const Event &event);
     71
     72  private:
     73    void init();
     74
     75    bool                  bLeft;
     76    bool                  bRight;
     77    bool                  bForward;
     78    bool                  bBackward;
     79   
     80    float                 xMouse;             //!< mouse moved in x-Direction
     81    float                 yMouse;             //!< mouse moved in y-Direction
     82    Quaternion            mouseDir;           //!< the direction where the player wants to fly
     83
     84    //Quaternion            rotY;
     85    //Quaternion            rotAxis;
     86    float                 angleX;
     87    float                 angleY;
     88
     89};
    4290
    4391#endif
Note: See TracChangeset for help on using the changeset viewer.