-// 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
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 weight; // in lbs
} FGAIModelEntity;
void setLongitude( double longitude );
void setBank( double bank );
- void setID( int ID );
- int getID();
+ void* getID();
void setDie( bool die );
bool getDie();
ssgBranch * model; //The 3D model object
SGModelPlacement aip;
bool delete_me;
- int id;
bool invisible;
bool no_roll;
double life;
double _getY_shift() const;
double _getRotation() const;
+ static const double rho;
+ static const double lbs_to_slugs;
+
+ int _getID() const;
+
inline double _getRange() { return range; };
static bool _isNight();
inline void FGAIBase::setDie( bool die ) { delete_me = die; }
inline bool FGAIBase::getDie() { return delete_me; }
-inline void FGAIBase::setID( int ID ) { id = ID; }
-inline int FGAIBase::getID() { return id; }
-
inline FGAIBase::object_type FGAIBase::getType() { return _otype; }
+inline void* FGAIBase::getID() { return this; }
+
#endif // _FG_AIBASE_HXX