#include <simgear/structure/subsystem_mgr.hxx>
#include <simgear/structure/SGSharedPtr.hxx>
+#include <simgear/props/props_io.hxx>
#include <Main/fg_props.hxx>
void bind();
void unbind();
void update(double dt);
+ void updateLOD(SGPropertyNode* node);
void attach(FGAIBase *model);
void destroyObject( int ID );
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:
double strength;
void processThermal( FGAIThermal* thermal );
+ SGPropertyChangeCallback<FGAIManager> cb_ai_bare;
+ SGPropertyChangeCallback<FGAIManager> cb_ai_detailed;
};
#endif // _FG_AIMANAGER_HXX