Panda3D
Loading...
Searching...
No Matches
arrival.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 arrival.h
10 * @author Deepak, John, Navin
11 * @date 2009-10-24
12 */
13
14#ifndef _ARRIVAL_H
15#define _ARRIVAL_H
16
17#include "aiGlobals.h"
18#include "aiCharacter.h"
19
20class AICharacter;
21
22class EXPCL_PANDAAI Arrival {
23
24public:
25 AICharacter *_ai_char;
26
27 NodePath _arrival_target;
28 LVecBase3 _arrival_target_pos;
29 double _arrival_distance;
30 LVecBase3 _arrival_direction;
31 bool _arrival_done;
32
33 // This flag specifies if the arrival behavior is being used with seek or
34 // pursue behavior. True = used with pursue. False = used with seek.
35 bool _arrival_type;
36
37 Arrival(AICharacter *ai_ch, double distance = 10.0);
38 ~Arrival();
39 LVecBase3 do_arrival();
40 void arrival_activate();
41};
42
43#endif
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
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:159