Panda3D
|
00001 //////////////////////////////////////////////////////////////////////// 00002 // Filename : pursue.h 00003 // Created by : Deepak, John, Navin 00004 // Date : 24 Oct 09 00005 //////////////////////////////////////////////////////////////////// 00006 // 00007 // PANDA 3D SOFTWARE 00008 // Copyright (c) Carnegie Mellon University. All rights reserved. 00009 // 00010 // All use of this software is subject to the terms of the revised BSD 00011 // license. You should have received a copy of this license along 00012 // with this source code in a file named "LICENSE." 00013 // 00014 //////////////////////////////////////////////////////////////////// 00015 00016 #ifndef _PURSUE_H 00017 #define _PURSUE_H 00018 00019 #include "aiGlobals.h" 00020 #include "aiCharacter.h" 00021 00022 class AICharacter; 00023 00024 class EXPCL_PANDAAI Pursue { 00025 00026 public: 00027 AICharacter *_ai_char; 00028 00029 NodePath _pursue_target; 00030 float _pursue_weight; 00031 LVecBase3f _pursue_direction; 00032 bool _pursue_done; 00033 00034 Pursue(AICharacter *ai_ch, NodePath target_object, float pursue_wt); 00035 ~Pursue(); 00036 LVecBase3f do_pursue(); 00037 }; 00038 00039 #endif