class SGMaterial;
class FGAIManager;
class FGAIFlightPlan;
+class FGFX;
class FGAIBase : public SGReferenced {
virtual void unbind();
virtual void reinit() {}
+ void updateLOD();
void setManager(FGAIManager* mgr, SGPropertyNode* p);
void setPath( const char* model );
void setSMPath( const string& p );
string _path;
string _callsign;
string _submodel;
- string _name;
+ std::string _name;
string _parent;
SGGeod userpos;
double ht_diff; // value used by radar display instrument
string model_path; //Path to the 3D model
- osg::ref_ptr<osg::Node> model; //The 3D model object
SGModelPlacement aip;
bool delete_me;
void CalculateMach();
double UpdateRadar(FGAIManager* manager);
+ void removeModel();
+
static int _newAIModelID();
private:
int _refID;
object_type _otype;
bool _initialized;
+ osg::ref_ptr<osg::LOD> _model; //The 3D model LOD object
+ SGSharedPtr<FGFX> _fx;
public:
object_type getType();