-// FGAIBase - abstract base class for AI objects
+// FGAIBase.hxx - abstract base class for AI objects
// Written by David Culp, started Nov 2003, based on
// David Luff's FGAIEntity class.
// - davidculp2@comcast.net
string callsign;
// can be aircraft, ship, storm, thermal or ballistic
- const char* m_type;
- const char* m_class;
- const char* path;
- const char* flightplan;
+ string m_type;
+ string m_class;
+ string path;
+ string flightplan;
FGAIFlightPlan *fp;
double buoyancy; // acceleration in ft per sec2
double wind_from_east; // in feet per second
double wind_from_north; // in feet per second
- bool wind;
+ double cd; // coefficient of drag
+ bool wind; // if true, model reacts to parent wind
+ double mass; // in slugs
} FGAIModelEntity;
double _getY_shift() const;
double _getRotation() const;
+ double rho;
+ double T; // temperature, degs farenheit
+ double p; // pressure lbs/sq ft
+ double a; // speed of sound at altitude (ft/s)
+ double Mach; // Mach number
+
+ static const double e;
+ static const double lbs_to_slugs;
+
int _getID() const;
inline double _getRange() { return range; };