Changeset 8894 in orxonox.OLD for trunk/src/world_entities/npcs/generic_npc.h
- Timestamp:
- Jun 29, 2006, 12:19:48 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/npcs/generic_npc.h
r8802 r8894 28 28 { 29 29 public: 30 GenericNPC(); 30 31 GenericNPC(const TiXmlElement* root); 31 32 virtual ~GenericNPC (); … … 38 39 inline void setVolume(float vol) { this->soundVolume = vol; } 39 40 40 void playAnimation(int animationIndex, int animPlaybackMode);41 41 42 void playSound(std::string filename); 43 void playSound(int i); 42 /* npc controlling functions */ 44 43 45 float lookAt(WorldEntity* worldEntity); 46 44 /* walking functions */ 47 45 float walkTo(const Vector& coordinate, const Quaternion& dir); 46 float walkTo(float x, float y, float z); 48 47 float walkTo(float x, float y, float z, float qu, float qx, float qy, float qz); 49 48 float walkTo(float x, float y, float qu, float qx, float qy, float qz); 50 49 50 /* running functions */ 51 51 float runTo(const Vector& coordinate, const Quaternion& dir); 52 52 float runTo(float x, float y, float z, float qu, float qx, float qy, float qz); 53 53 float runTo(float x, float y, float qu, float qx, float qy, float qz); 54 54 55 /* couching functinos */ 55 56 float crouchTo(const Vector& coordinate, const Quaternion& dir); 56 57 float crouchTo(float x, float y, float z, float qu, float qx, float qy, float qz); 57 58 float crouchTo(float x, float y, float qu, float qx, float qy, float qz); 58 59 60 /* stopping the movement */ 61 void stop(); 62 63 /* some oriantation functions */ 64 float lookAt(WorldEntity* worldEntity); 65 bool turnTo(float qu, float qx, float qy, float qz); 66 67 /* talking funcitons*/ 59 68 float talkTo(WorldEntity* worldEntity, int dialogNr); 69 70 /* shooting functions */ 71 void shootAt(WorldEntity* entity); 72 73 74 /* some generic control funtions */ 75 void playAnimation(int animationIndex, int animPlaybackMode); 76 void playSound(std::string filename); 77 void playSound(int i); 78 79 void setTime(float newTime){ this->time = newTime; }; 80 81 virtual void tick (float time); 60 82 61 83 62 84 void destroy(); 63 64 virtual void tick (float time);65 85 66 86 … … 74 94 75 95 Animation3D* currentAnim; 96 float time; //!< Duration of the action 76 97 }; 77 98
Note: See TracChangeset
for help on using the changeset viewer.