]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIBallistic.hxx
toggle fullscreen: also adapt GUI plane when resizing
[flightgear.git] / src / AIModel / AIBallistic.hxx
index 739f766714b699254eab76f2cfb3a03f5ae1ad82..9b28efdae9144de7c0940f4473bbe8306eb36ca1 100644 (file)
@@ -44,13 +44,11 @@ public:
     void readFromScenario(SGPropertyNode* scFileNode);
 
     bool init(bool search_in_AI_path=false);
-
     virtual void bind();
-    virtual void unbind();
-
-    void update(double dt);
+    virtual void reinit();
+    virtual void update(double dt);
 
-    FGAIBallistic *ballistic;
+    virtual const char* getTypeString(void) const { return "ballistic"; }
 
     void Run(double dt);
 
@@ -97,9 +95,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 +113,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 +170,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
@@ -223,8 +219,6 @@ private:
     string _force_path;
     string _contents_path;
 
-    const SGMaterial* _material;
-
     void handle_collision();
     void handle_expiry();
     void handle_impact();