Panda3D
 All Classes Functions Variables Enumerations
arrival.h
1 ////////////////////////////////////////////////////////////////////////
2 // Filename : arrival.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 _ARRIVAL_H
17 #define _ARRIVAL_H
18 
19 #include "aiGlobals.h"
20 #include "aiCharacter.h"
21 
22 class AICharacter;
23 
24 class EXPCL_PANDAAI Arrival {
25 
26 public:
27  AICharacter *_ai_char;
28 
29  NodePath _arrival_target;
30  LVecBase3 _arrival_target_pos;
31  double _arrival_distance;
32  LVecBase3 _arrival_direction;
33  bool _arrival_done;
34 
35  // This flag specifies if the arrival behavior is being used with seek or pursue behavior.
36  // True = used with pursue.
37  // False = used with seek.
38  bool _arrival_type;
39 
40  Arrival(AICharacter *ai_ch, double distance = 10.0);
41  ~Arrival();
42  LVecBase3 do_arrival();
43  void arrival_activate();
44 };
45 
46 #endif
This is the base class for all three-component vectors and points.
Definition: lvecBase3.h:105
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
Definition: nodePath.h:165