Panda3D
|
00001 //////////////////////////////////////////////////////////////////////// 00002 // Filename : evade.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 _EVADE_H 00017 #define _EVADE_H 00018 00019 #include "aiGlobals.h" 00020 #include "aiCharacter.h" 00021 00022 class AICharacter; 00023 00024 class EXPCL_PANDAAI Evade { 00025 00026 public: 00027 AICharacter *_ai_char; 00028 00029 NodePath _evade_target; 00030 float _evade_weight; 00031 LVecBase3f _evade_direction; 00032 double _evade_distance; 00033 double _evade_relax_distance; 00034 bool _evade_done; 00035 bool _evade_activate_done; 00036 00037 Evade(AICharacter *ai_ch, NodePath target_object, double panic_distance, 00038 double relax_distance, float evade_wt); 00039 00040 ~Evade(); 00041 LVecBase3f do_evade(); 00042 void evade_activate(); 00043 }; 00044 00045 #endif