]> git.mxchange.org Git - flightgear.git/blobdiff - src/AIModel/AIManager.hxx
Roy Vegard Ovesen:
[flightgear.git] / src / AIModel / AIManager.hxx
index 9b668f4ccbfb70a69685733e1d171fd3cbff9f37..537d5145eeee77db767ca5b4d00ee76bb704b05e 100644 (file)
@@ -27,9 +27,9 @@
 #include <Main/fg_props.hxx>
 #include <list>
 #include "AIBase.hxx"
-#include "AIAircraft.hxx"
 
 SG_USING_STD(list);
+class FGAIThermal;
 
 
 class FGAIManager : public SGSubsystem
@@ -54,8 +54,6 @@ private:
 
 public:
 
-    enum object_type { otAircraft, otShip, otBallistic, otRocket };
-
     FGAIManager();
     ~FGAIManager();
 
@@ -94,6 +92,18 @@ public:
                          double elevation,  // in degrees (same as pitch)
                          double speed );    // in feet per second
 
+    int createStorm( string path,        // path to exterior model
+                     double latitude,    // in degrees -90 to 90
+                     double longitude,   // in degrees -180 to 180
+                     double altitude,    // in feet
+                     double heading,     // true heading in degrees
+                     double speed );     // in knots true airspeed (KTAS)    
+
+    int createThermal( double latitude,    // in degrees -90 to 90
+                       double longitude,   // in degrees -180 to 180
+                       double strength,    // in feet per second
+                       double diameter );  // in feet
+                 
     void destroyObject( int ID );
 
     inline double get_user_latitude() { return user_latitude; }
@@ -109,6 +119,7 @@ private:
     bool initDone;
     int numObjects;
     SGPropertyNode* root;
+    SGPropertyNode* wind_from_down;
 
     double user_latitude;
     double user_longitude;
@@ -117,9 +128,15 @@ private:
     double user_pitch;
     double user_yaw;
     double user_speed;
+    double _dt;
     int dt_count;
     void fetchUserState( void );
 
+    // used by thermals
+    double range_nearest;
+    double strength;
+    void processThermal( FGAIThermal* thermal ); 
+
 };
 
 #endif  // _FG_AIMANAGER_HXX