Panda3D
config_ai.cxx
1 // Filename: config_ai.cxx
2 // Created by: Pandai (13Sep09)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #include "config_ai.h"
16 #include "aiWorld.h"
17 #include "aiCharacter.h"
18 #include "aiBehaviors.h"
19 #include "seek.h"
20 #include "flee.h"
21 #include "pursue.h"
22 #include "evade.h"
23 #include "arrival.h"
24 #include "flock.h"
25 #include "wander.h"
26 #include "pathFollow.h"
27 #include "obstacleAvoidance.h"
28 #include "pathFind.h"
29 #include "aiNode.h"
30 #include "aiPathFinder.h"
31 #include "dconfig.h"
32 
33 Configure(config_ai);
34 NotifyCategoryDef(ai, "");
35 
36 ConfigureFn(config_ai) {
37  init_libai();
38 }
39 
40 ////////////////////////////////////////////////////////////////////
41 // Function: init_libai
42 // Description: Initializes the library. This must be called at
43 // least once before any of the functions or classes in
44 // this library can be used. Normally it will be
45 // called by the static initializers and need not be
46 // called explicitly, but special cases exist.
47 ////////////////////////////////////////////////////////////////////
48 void
49 init_libai() {
50  static bool initialized = false;
51  if (initialized) {
52  return;
53  }
54  initialized = true;
55 }