home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 04 Christian / wander.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-09-16  |  553 b   |  43 lines

  1.  
  2.  
  3. #ifndef _Wander_H_
  4. #define _Wander_H_
  5.  
  6. #include "ieexec.h"
  7.  
  8. class Character;
  9.  
  10. class Wander : public IEExec
  11. {
  12.  
  13. public:
  14.  
  15.     Wander();
  16.  
  17.     void init   ( IEOwner * owner );
  18.     bool start  ();
  19.     bool update ();
  20.     bool finish ();
  21.  
  22.     IEOwner * getOwner ();
  23.  
  24.     const char * getName();
  25.  
  26.     enum WanderStates
  27.     {
  28.         Go
  29.     };
  30.  
  31.     void newDirection ();
  32.  
  33. private:
  34.     std::string m_name;
  35.     Character * m_owner;
  36.  
  37.     float m_dirClock;
  38.     float m_minWanderTime;
  39.     float m_timeChangeDir;
  40. };
  41.  
  42. #endif
  43.