]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.hxx
Move some code from the header file to the source file.
[flightgear.git] / src / AIModel / AIBase.hxx
index fb845bd4158bb811bb87a7032742f4c6c7702f6f..f09a96e00fee8cbe8cf68afec0a40cee8cbc1fad 100644 (file)
@@ -26,6 +26,7 @@
 #include <simgear/constants.h>
 #include <simgear/math/SGMath.hxx>
 #include <simgear/scene/model/placement.hxx>
+#include <simgear/scene/model/modellib.hxx>
 #include <simgear/misc/sg_path.hxx>
 #include <simgear/structure/SGSharedPtr.hxx>
 #include <simgear/structure/SGReferenced.hxx>
@@ -33,7 +34,6 @@
 
 #include <simgear/math/sg_geodesy.hxx>
 
-
 #include <Main/fg_props.hxx>
 
 
@@ -43,6 +43,10 @@ using std::list;
 class SGMaterial;
 class FGAIManager;
 class FGAIFlightPlan;
+class FGFX;
+class FGNasalModelData;
+class FGAIModelData;   // defined below
+
 
 class FGAIBase : public SGReferenced {
 
@@ -226,6 +230,11 @@ private:
     bool _initialized;
     osg::ref_ptr<osg::LOD> _model; //The 3D model LOD object
 
+    FGAIModelData* _aimodel;
+
+    string _fxpath;
+    SGSharedPtr<FGFX>  _fx;
+
 public:
     object_type getType();
 
@@ -439,4 +448,17 @@ inline void FGAIBase::setMaxSpeed(double m) {
     _max_speed = m;
 }
 
+
+class FGAIModelData : public simgear::SGModelData {
+public:
+    FGAIModelData(SGPropertyNode *root = 0);
+    ~FGAIModelData();
+    void modelLoaded(const string& path, SGPropertyNode *prop, osg::Node *n);
+    inline string& get_sound_path() { return _path; };
+
+private:
+    FGNasalModelData *_nasal;
+    string _path;
+};
+
 #endif // _FG_AIBASE_HXX