]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBallistic.hxx
Clean-up: move autosave.xml loading code to proper method
[flightgear.git] / src / AIModel / AIBallistic.hxx
index 739f766714b699254eab76f2cfb3a03f5ae1ad82..70ea502cfb4ced9ba40283fe0c9efeab6e567bec 100644 (file)
@@ -44,13 +44,12 @@ public:
     void readFromScenario(SGPropertyNode* scFileNode);
 
     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);
 
@@ -97,9 +96,9 @@ public:
     void setParentPos();
     void setOffsetPos(SGGeod pos, double heading, double pitch, double roll);
     void setOffsetVelocity(double dt, SGGeod pos);
+    void setTime(double sec);
 
-
-    double _getTime() const;
+    double _getTime()const;
     double getRelBrgHitchToUser() const;
     double getElevHitchToUser() const;
     double getLoadOffset() const;
@@ -115,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
 
@@ -171,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