]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBase.hxx
Interim windows build fix
[flightgear.git] / src / AIModel / AIBase.hxx
index dd88987cde028e97bdb163440e0e48e680b1b6ad..da27569c17de424cfb66bc5cccefd8f62ab692be 100644 (file)
@@ -33,8 +33,6 @@
 
 #include <simgear/math/sg_geodesy.hxx>
 
-#include <Main/fg_props.hxx>
-
 namespace osg { class PagedLOD; }
 
 namespace simgear {
@@ -67,6 +65,7 @@ public:
     virtual void reinit() {}
 
     void updateLOD();
+    void updateInterior();
     void setManager(FGAIManager* mgr, SGPropertyNode* p);
     void setPath( const char* model );
     void setSMPath( const std::string& p );
@@ -109,6 +108,7 @@ public:
     int _getSubID() const;
 
     bool getDie();
+       bool isValid();
 
     SGVec3d getCartPosAt(const SGVec3d& off) const;
     SGVec3d getCartPos() const;
@@ -124,6 +124,7 @@ public:
 protected:
     double _elevation_m;
     
+    double _maxRangeInterior;
 
     double _x_offset;
     double _y_offset;
@@ -235,6 +236,7 @@ private:
     object_type _otype;
     bool _initialized;
     osg::ref_ptr<osg::PagedLOD> _model;
+    osg::ref_ptr<osg::PagedLOD> _interior;
 
     osg::ref_ptr<FGAIModelData> _modeldata;
 
@@ -321,6 +323,8 @@ public:
     std::string & getCallSign();
 };
 
+typedef SGSharedPtr<FGAIBase> FGAIBasePtr;
+
 inline void FGAIBase::setManager(FGAIManager* mgr, SGPropertyNode* p) {
     manager = mgr;
     props = p;