Panda3D

config_ai.cxx

00001 // Filename: config_ai.cxx
00002 // Created by:  Pandai (13Sep09)
00003 //
00004 ////////////////////////////////////////////////////////////////////
00005 //
00006 // PANDA 3D SOFTWARE
00007 // Copyright (c) Carnegie Mellon University.  All rights reserved.
00008 //
00009 // All use of this software is subject to the terms of the revised BSD
00010 // license.  You should have received a copy of this license along
00011 // with this source code in a file named "LICENSE."
00012 //
00013 ////////////////////////////////////////////////////////////////////
00014 
00015 #include "config_ai.h"
00016 #include "aiWorld.h"
00017 #include "aiCharacter.h"
00018 #include "aiBehaviors.h"
00019 #include "seek.h"
00020 #include "flee.h"
00021 #include "pursue.h"
00022 #include "evade.h"
00023 #include "arrival.h"
00024 #include "flock.h"
00025 #include "wander.h"
00026 #include "pathFollow.h"
00027 #include "obstacleAvoidance.h"
00028 #include "pathFind.h"
00029 #include "aiNode.h"
00030 #include "aiPathFinder.h"
00031 #include "dconfig.h"
00032 
00033 Configure(config_ai);
00034 NotifyCategoryDef(ai, "");
00035 
00036 ConfigureFn(config_ai) {
00037   init_libai();
00038 }
00039 
00040 ////////////////////////////////////////////////////////////////////
00041 //     Function: init_libai
00042 //  Description: Initializes the library.  This must be called at
00043 //               least once before any of the functions or classes in
00044 //               this library can be used.  Normally it will be
00045 //               called by the static initializers and need not be
00046 //               called explicitly, but special cases exist.
00047 ////////////////////////////////////////////////////////////////////
00048 void
00049 init_libai() {
00050   static bool initialized = false;
00051   if (initialized) {
00052     return;
00053   }
00054   initialized = true;
00055 }
 All Classes Functions Variables Enumerations