]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIWingman.hxx
Replace the NOAA METAR URL with the new, updated one
[flightgear.git] / src / AIModel / AIWingman.hxx
index 038df5d0827c9292a834f2d06acbc45c69f290ed..0b02b7491226b9de72c627845b3ff48be84de3e6 100644 (file)
@@ -26,7 +26,6 @@
 #include "AIBase.hxx"
 
 #include <simgear/sg_inlines.h>
-#include <simgear/math/SGMath.hxx>
 
 
 class FGAIWingman : public FGAIBallistic {
@@ -35,17 +34,15 @@ public:
     virtual ~FGAIWingman();
 
     virtual void readFromScenario(SGPropertyNode* scFileNode);
-    virtual void bind();
-    virtual void unbind();
-    virtual const char* getTypeString(void) const { return "wingman"; }
 
     bool init(bool search_in_AI_path=false);
-
-private:
-
-    virtual void reinit() { init(); }
+    virtual void bind();
+    virtual void reinit();
     virtual void update (double dt);
 
+    virtual const char* getTypeString(void) const { return "wingman"; }
+
+private:
     void formateToAC(double dt);
     void Break(double dt);
     void Join(double dt);
@@ -67,7 +64,7 @@ private:
     double _coeff_bnk; //dimensionless coefficient
     double _coeff_spd; //dimensionless coefficient
 
-
+    SGPropertyNode_ptr user_WoW_node;
 
     inline void setFormate(bool f);
     inline void setTgtHdg(double hdg);