Changeset 8152 in orxonox.OLD for branches/network/src/world_entities/spectator.h
- Timestamp:
- Jun 5, 2006, 1:23:45 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/world_entities/spectator.h
r8147 r8152 9 9 #include "playable.h" 10 10 11 #if 0 11 12 class Spectator : public Playable 12 13 { … … 40 41 float angleY; 41 42 }; 43 #endif 44 45 class Vector; 46 class Event; 47 class ParticleEmitter; 48 class ParticleSystem; 49 50 class 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 }; 42 90 43 91 #endif
Note: See TracChangeset
for help on using the changeset viewer.