X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModel%2Facmodel.hxx;h=edaaad77cbda801aa658aa43ac96a959fbafadb4;hb=2beb0f29afba98c49606a4b929a49bda4f6db91a;hp=b774874d233c39119ee4097d8244a0bda04ba586;hpb=4b74636d044b7e73020d66b19ac1a3dc7daa5a3a;p=flightgear.git diff --git a/src/Model/acmodel.hxx b/src/Model/acmodel.hxx index b774874d2..edaaad77c 100644 --- a/src/Model/acmodel.hxx +++ b/src/Model/acmodel.hxx @@ -10,6 +10,7 @@ #include #include +#include #include // for SGSubsystem @@ -25,26 +26,23 @@ public: virtual ~FGAircraftModel (); virtual void init (); + virtual void shutdown (); virtual void reinit (); virtual void bind (); virtual void unbind (); virtual void update (double dt); - virtual SGModelPlacement * get3DModel() { return _aircraft; } + virtual SGModelPlacement * get3DModel() { return _aircraft.get(); } virtual SGVec3d& getVelocity() { return _velocity; } private: void deinit (); - SGModelPlacement * _aircraft; + std::auto_ptr _aircraft; + std::auto_ptr _interior; + SGVec3d _velocity; SGSharedPtr _fx; - SGPropertyNode_ptr _lon; - SGPropertyNode_ptr _lat; - SGPropertyNode_ptr _alt; - SGPropertyNode_ptr _pitch; - SGPropertyNode_ptr _roll; - SGPropertyNode_ptr _heading; SGPropertyNode_ptr _speed_n; SGPropertyNode_ptr _speed_e; SGPropertyNode_ptr _speed_d;