]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBallistic.hxx
NavDisplay: fix update lag when switching range or centre.
[flightgear.git] / src / AIModel / AIBallistic.hxx
index fb1b4f28d4b411ebbd161b3f5ce17ace1fab78dd..70ea502cfb4ced9ba40283fe0c9efeab6e567bec 100644 (file)
@@ -46,10 +46,10 @@ public:
     bool init(bool search_in_AI_path=false);
     virtual void bind();
     virtual void unbind();
+    virtual void reinit();
+    virtual void update(double dt);
 
-    void update(double dt);
-
-    FGAIBallistic *ballistic;
+    virtual const char* getTypeString(void) const { return "ballistic"; }
 
     void Run(double dt);
 
@@ -114,7 +114,8 @@ public:
 //    bool getFormate() const;
     bool getSlavedLoad() const;
 
-    virtual const char* getTypeString(void) const { return "ballistic"; }
+    FGAIBallistic *ballistic;
+
     static const double slugs_to_kgs; //conversion factor
     static const double slugs_to_lbs; //conversion factor
 
@@ -170,12 +171,9 @@ public:
 
 private:
 
-    virtual void reinit() { init(); }
-
     bool   _aero_stabilised; // if true, object will align with trajectory
     double _drag_area;       // equivalent drag area in ft2
     double _life_timer;      // seconds
-    double _gravity;         // fps^2
     double _buoyancy;        // fps^2
     bool   _wind;            // if true, local wind will be applied to object
     double _Cd;              // drag coefficient