X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FAIModel%2FAIGroundVehicle.hxx;h=2e4a2349fc37db24ebbed6cef7b34970c8d56544;hb=588eba658a6f348e517a23d22ffa2d9b44f11cc7;hp=4ea7eea9861e0f44e8326b99e869af486dcc950f;hpb=fdbfd6fd0b789eecf2c532d048a75d15f8d35ad8;p=flightgear.git diff --git a/src/AIModel/AIGroundVehicle.hxx b/src/AIModel/AIGroundVehicle.hxx index 4ea7eea98..2e4a2349f 100644 --- a/src/AIModel/AIGroundVehicle.hxx +++ b/src/AIModel/AIGroundVehicle.hxx @@ -37,16 +37,15 @@ public: virtual ~FGAIGroundVehicle(); virtual void readFromScenario(SGPropertyNode* scFileNode); - virtual void bind(); - virtual void unbind(); - virtual const char* getTypeString(void) const { return "groundvehicle"; } bool init(bool search_in_AI_path=false); + virtual void bind(); + virtual void reinit(); + virtual void update (double dt); -private: + virtual const char* getTypeString(void) const { return "groundvehicle"; } - virtual void reinit() { init(); } - virtual void update (double dt); +private: void setNoRoll(bool nr); void setContactX1offset(double x1); @@ -62,10 +61,8 @@ private: void setElevation(double _elevation, double dt, double _elevation_coeff); void setPitch(double _pitch, double dt, double _pitch_coeff); void setTowAngle(double _relbrg, double dt, double _towangle_coeff); - void setParentName(const string& p); void setTrainSpeed(double s, double dt, double coeff); void setParent(); - void setParentNode(); void AdvanceFP(); void setTowSpeed(); void RunGroundVehicle(double dt); @@ -77,7 +74,6 @@ private: void calcRangeBearing(double lat, double lon, double lat2, double lon2, double &range, double &bearing) const; - double calcRelBearingDeg(double bearing, double heading); SGGeod _selectedpos; @@ -98,9 +94,6 @@ private: double _dt_count, _next_run, _break_count; const SGMaterial* _material; - SGPropertyNode_ptr _selected_ac; - - string _parent; };