home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 04 Pathfinding and Movement / 05 Hancock / Goal_GotoNode.h < prev    next >
Encoding:
C/C++ Source or Header  |  2001-08-20  |  514 b   |  28 lines

  1.  
  2.  
  3. class PathNode;
  4. class TAI;
  5.  
  6. class Goal_GotoNode : public Goal, public GoalQueue
  7. {
  8. public:
  9.     Goal_GotoNode( AI* pAI, const PathNode *destination, 
  10.                       bool bForceDirectPath = false );
  11.     virtual ~Goal_GotoNode();
  12.  
  13.     // Update the goal
  14.     virtual void Update( float secs_elapsed );
  15.  
  16.     virtual bool Success();
  17.  
  18.     virtual bool ReplanSubgoals(); 
  19.  
  20.     const PathNode* GetDestinationNode() { return node; }
  21.  
  22. protected:
  23.     bool active;
  24.     float stuckTimer;
  25.     const PathNode *node;
  26.     bool directPath;
  27. };
  28.