]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIMgr.hxx
Add David Culp's AI model manager code which is derived from David Luff's AI/ATC...
[flightgear.git] / src / ATC / AIMgr.hxx
index 01ef4445543531afd50e5afafca768f0ebea6fe9..2c67eb020fb3bd946cfe0d687b9d6fa2e22d37e7 100644 (file)
@@ -22,7 +22,8 @@
 #ifndef _FG_AIMGR_HXX
 #define _FG_AIMGR_HXX
 
-#include <Main/fgfs.hxx>
+#include <simgear/structure/subsystem_mgr.hxx>
+
 #include <Main/fg_props.hxx>
 
 #include <list>
@@ -33,7 +34,7 @@
 SG_USING_STD(list);
 
 
-class FGAIMgr : public FGSubsystem
+class FGAIMgr : public SGSubsystem
 {
 
 private:
@@ -91,6 +92,8 @@ public:
 
 private:
 
+       bool initDone;  // Hack - guard against update getting called before init
+
     // Remove a class from the ai_list and delete it from memory
     //void RemoveFromList(const char* id, atc_type tp);