]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/AIEntity.hxx
Add David Culp's AI model manager code which is derived from David Luff's AI/ATC...
[flightgear.git] / src / ATC / AIEntity.hxx
index 1c8afdc9e9e3fa877c09ed5ad644fb544aada722..436eb186d7233a087d225ceb0f9dc51b04f507f8 100644 (file)
 #ifndef _FG_AIEntity_HXX
 #define _FG_AIEntity_HXX
 
-#include <Model/model.hxx>
 #include <plib/sg.h>
 #include <plib/ssg.h>
+
 #include <simgear/math/point3d.hxx>
+#include <simgear/scene/model/model.hxx>
+#include <simgear/scene/model/placement.hxx>
 
 
 /*****************************************************************
@@ -44,9 +46,11 @@ public:
     // Run the internal calculations
     virtual void Update(double dt);
        
-       // Send a transmission *TO* the AIEntity.
-       // FIXME int code is a hack - eventually this will receive Alexander's coded messages.
-       virtual void RegisterTransmission(int code);
+    // Send a transmission *TO* the AIEntity.
+    // FIXME int code is a hack - eventually this will receive Alexander's coded messages.
+    virtual void RegisterTransmission(int code);
+       
+       inline Point3D GetPos() { return(pos); }
 
 protected:
 
@@ -56,7 +60,7 @@ protected:
     double pitch;      //degrees
 
     char* model_path;  //Path to the 3D model
-    FGModelPlacement aip;
+    SGModelPlacement aip;
 
     void Transform();
 };