Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 26, 2006, 6:07:19 PM (18 years ago)
Author:
patrick
Message:

more npc functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/single_player_map/src/world_entities/npcs/generic_npc.h

    r8811 r8813  
    3939  inline void setVolume(float vol) { this->soundVolume = vol; }
    4040
    41   void playAnimation(int animationIndex, int animPlaybackMode);
    4241
    43   void playSound(std::string filename);
    44   void playSound(int i);
     42  /* npc controlling functions */
    4543
    46   float lookAt(WorldEntity* worldEntity);
    47 
     44  /* walking functions */
    4845  float walkTo(const Vector& coordinate, const Quaternion& dir);
    4946  float walkTo(float x, float y, float z);
     
    5148  float walkTo(float x, float y, float qu, float qx, float qy, float qz);
    5249
     50  /* running functions */
    5351  float runTo(const Vector& coordinate, const Quaternion& dir);
    5452  float runTo(float x, float y, float z, float qu, float qx, float qy, float qz);
    5553  float runTo(float x, float y, float qu, float qx, float qy, float qz);
    5654
     55  /* couching functinos */
    5756  float crouchTo(const Vector& coordinate, const Quaternion& dir);
    5857  float crouchTo(float x, float y, float z, float qu, float qx, float qy, float qz);
    5958  float crouchTo(float x, float y, float qu, float qx, float qy, float qz);
    6059
     60  /* some oriantation functions */
     61  float lookAt(WorldEntity* worldEntity);
     62
     63  /* talking funcitons*/
    6164  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);
    6277
    6378
    6479  void destroy();
    65 
    66   virtual void tick (float time);
    67 
    6880
    6981 private:
Note: See TracChangeset for help on using the changeset viewer.