X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIManager.hxx;h=5c951912e645e824a4395428c45bec5512cb6cc5;hb=f89ad9baf0f72d613c755f4fb3704f57ff7ef973;hp=891d3a5069f2a33560abe37e958f8599937091b7;hpb=1dc3ecf016f633e145540e614443ea15a409589a;p=flightgear.git diff --git a/src/AIModel/AIManager.hxx b/src/AIModel/AIManager.hxx index 891d3a506..5c951912e 100644 --- a/src/AIModel/AIManager.hxx +++ b/src/AIModel/AIManager.hxx @@ -27,6 +27,7 @@ #include #include +#include #include
@@ -66,6 +67,7 @@ public: void bind(); void unbind(); void update(double dt); + void updateLOD(SGPropertyNode* node); void attach(FGAIBase *model); void destroyObject( int ID ); @@ -81,16 +83,16 @@ public: inline double get_wind_from_east() const {return wind_from_east; } inline double get_wind_from_north() const {return wind_from_north; } inline double get_user_roll() const { return user_roll; } - inline double get_user_agl() const { return user_agl; } + inline double get_user_agl() const { return user_altitude_agl; } int getNumAiObjects(void) const; void processScenario( const string &filename ); - static SGPropertyNode_ptr loadScenarioFile(const std::string& filename); + static SGPropertyNode_ptr loadScenarioFile(const std::string& filename); - static bool getStartPosition(const string& id, const string& pid, - SGGeod& geodPos, double& hdng, SGVec3d& uvw); + static bool getStartPosition(const string& id, const string& pid, + SGGeod& geodPos, double& hdng, SGVec3d& uvw); private: @@ -135,6 +137,8 @@ private: double strength; void processThermal( FGAIThermal* thermal ); + SGPropertyChangeCallback cb_ai_bare; + SGPropertyChangeCallback cb_ai_detailed; }; #endif // _FG_AIMANAGER_HXX