Panda3D
 All Classes Functions Variables Enumerations
evade.h
1 ////////////////////////////////////////////////////////////////////////
2 // Filename : evade.h
3 // Created by : Deepak, John, Navin
4 // Date : 24 Oct 09
5 ////////////////////////////////////////////////////////////////////
6 //
7 // PANDA 3D SOFTWARE
8 // Copyright (c) Carnegie Mellon University. All rights reserved.
9 //
10 // All use of this software is subject to the terms of the revised BSD
11 // license. You should have received a copy of this license along
12 // with this source code in a file named "LICENSE."
13 //
14 ////////////////////////////////////////////////////////////////////
15 
16 #ifndef _EVADE_H
17 #define _EVADE_H
18 
19 #include "aiGlobals.h"
20 #include "aiCharacter.h"
21 
22 class AICharacter;
23 
24 class EXPCL_PANDAAI Evade {
25 
26 public:
27  AICharacter *_ai_char;
28 
29  NodePath _evade_target;
30  float _evade_weight;
31  LVecBase3 _evade_direction;
32  double _evade_distance;
33  double _evade_relax_distance;
34  bool _evade_done;
35  bool _evade_activate_done;
36 
37  Evade(AICharacter *ai_ch, NodePath target_object, double panic_distance,
38  double relax_distance, float evade_wt);
39 
40  ~Evade();
41  LVecBase3 do_evade();
42  void evade_activate();
43 };
44 
45 #endif
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
Definition: evade.h:24
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165