- Timestamp:
- Jun 26, 2006, 6:07:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/single_player_map/src/world_entities/npcs/generic_npc.h
r8811 r8813 39 39 inline void setVolume(float vol) { this->soundVolume = vol; } 40 40 41 void playAnimation(int animationIndex, int animPlaybackMode);42 41 43 void playSound(std::string filename); 44 void playSound(int i); 42 /* npc controlling functions */ 45 43 46 float lookAt(WorldEntity* worldEntity); 47 44 /* walking functions */ 48 45 float walkTo(const Vector& coordinate, const Quaternion& dir); 49 46 float walkTo(float x, float y, float z); … … 51 48 float walkTo(float x, float y, float qu, float qx, float qy, float qz); 52 49 50 /* running functions */ 53 51 float runTo(const Vector& coordinate, const Quaternion& dir); 54 52 float runTo(float x, float y, float z, float qu, float qx, float qy, float qz); 55 53 float runTo(float x, float y, float qu, float qx, float qy, float qz); 56 54 55 /* couching functinos */ 57 56 float crouchTo(const Vector& coordinate, const Quaternion& dir); 58 57 float crouchTo(float x, float y, float z, float qu, float qx, float qy, float qz); 59 58 float crouchTo(float x, float y, float qu, float qx, float qy, float qz); 60 59 60 /* some oriantation functions */ 61 float lookAt(WorldEntity* worldEntity); 62 63 /* talking funcitons*/ 61 64 float talkTo(WorldEntity* worldEntity, int dialogNr); 65 66 /* shooting functions */ 67 void shootAt(WorldEntity* entity); 68 69 70 /* some generic control funtions */ 71 void playAnimation(int animationIndex, int animPlaybackMode); 72 void playSound(std::string filename); 73 void playSound(int i); 74 75 76 virtual void tick (float time); 62 77 63 78 64 79 void destroy(); 65 66 virtual void tick (float time);67 68 80 69 81 private:
Note: See TracChangeset
for help on using the changeset viewer.