]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.hxx
Postpone initialization of the avionics soundgroup until avionics are enabled. This...
[flightgear.git] / src / AIModel / AIBase.hxx
index 298d67cf0f0185709caf4653893dfffb02d03931..726ce303bef95d5d008609686c5d2757b84b7cd5 100644 (file)
@@ -43,6 +43,7 @@ using std::list;
 class SGMaterial;
 class FGAIManager;
 class FGAIFlightPlan;
+class FGFX;
 
 class FGAIBase : public SGReferenced {
 
@@ -134,7 +135,7 @@ public:
     string _path;
     string _callsign;
     string _submodel;
-    string _name;
+    std::string _name;
     string _parent;
 
     SGGeod userpos;
@@ -216,6 +217,8 @@ protected:
     void CalculateMach();
     double UpdateRadar(FGAIManager* manager);
 
+    void removeModel();
+
     static int _newAIModelID();
 
 private:
@@ -223,6 +226,7 @@ private:
     object_type _otype;
     bool _initialized;
     osg::ref_ptr<osg::LOD> _model; //The 3D model LOD object
+    SGSharedPtr<FGFX>  _fx;
 
 public:
     object_type getType();