Panda3D

pathFollow.h

00001 
00002 #ifndef _PATHFOLLOW_H
00003 #define _PATHFOLLOW_H
00004 
00005 #include "aiGlobals.h"
00006 #include "aiCharacter.h"
00007 #include "meshNode.h"
00008 
00009 class AICharacter;
00010 
00011 class EXPCL_PANDAAI PathFollow {
00012 
00013 public:
00014   AICharacter *_ai_char;
00015   float _follow_weight;
00016   vector<LVecBase3f> _path;
00017   int _curr_path_waypoint;
00018   bool _start;
00019   NodePath _dummy;
00020   string _type;
00021   ClockObject *_myClock;
00022   float _time;
00023 
00024   PathFollow(AICharacter *ai_ch, float follow_wt);
00025   ~PathFollow();
00026   void add_to_path(LVecBase3f pos);
00027   void start(string type);
00028   void do_follow();
00029   bool check_if_possible();
00030 };
00031 
00032 #endif
 All Classes Functions Variables Enumerations