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