#include <Main/fg_props.hxx>
#include <list>
#include "AIBase.hxx"
-#include "AIAircraft.hxx"
SG_USING_STD(list);
+class FGAIThermal;
class FGAIManager : public SGSubsystem
public:
- enum object_type { otAircraft, otShip, otBallistic, otRocket };
-
FGAIManager();
~FGAIManager();
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; }
bool initDone;
int numObjects;
SGPropertyNode* root;
+ SGPropertyNode* wind_from_down;
double user_latitude;
double user_longitude;
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