]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIGroundVehicle.hxx
NavDisplay: fix update lag when switching range or centre.
[flightgear.git] / src / AIModel / AIGroundVehicle.hxx
index 05b1d505b7fbf9c1cd35f8ffa9ef3efa2d7606aa..08491bad6825a4901fbe1939d956b33791e5746f 100644 (file)
@@ -37,17 +37,17 @@ public:
     virtual ~FGAIGroundVehicle();
 
     virtual void readFromScenario(SGPropertyNode* scFileNode);
+
+    bool init(bool search_in_AI_path=false);
     virtual void bind();
     virtual void unbind();
-    virtual const char* getTypeString(void) const { return "groundvehicle"; }
+    virtual void reinit();
+    virtual void update (double dt);
 
-    bool init(bool search_in_AI_path=false);
+    virtual const char* getTypeString(void) const { return "groundvehicle"; }
 
 private:
 
-    virtual void reinit() { init(); }
-    virtual void update (double dt);
-
     void setNoRoll(bool nr);
     void setContactX1offset(double x1);
     void setContactX2offset(double x2);
@@ -75,7 +75,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;