The AirUnitClass

Superclasses

VuEntity

FalconEntity

Other Subclasses: CampManagerClass , SimBaseClass,TeamClass

CampBaseClass

Subclasses: ObjectiveClass

UnitClass

Subclasses: AirUnitClass, GroundUnitClass, TaskForceClass


AirUnitClass

SubClasses: PackageClass, FlightClass

public:
                // constructors and serial functions
                AirUnitClass(int type);
                AirUnitClass(VU_BYTE **stream);
                virtual ~AirUnitClass();
                virtual int SaveSize (void);
                virtual int Save (VU_BYTE **stream);

                // event Handlers
                virtual VU_ERRCODE Handle(VuFullUpdateEvent *event);

                // Required pure virtuals handled by AirUnitClass
                virtual MoveType GetMovementType (void);
                virtual int GetUnitSpeed (void);
                virtual CampaignTime UpdateTime (void)                                 { return AIR_UPDATE_CHECK_INTERVAL*CampaignSeconds; }
                virtual float Vt (void)                                                                { return GetUnitSpeed() * KPH_TO_FPS; }
                virtual float Kias (void)                                                              { return Vt() * FTPSEC_TO_KNOTS; }

                // core functions
                virtual int IsHelicopter (void);
                virtual int OnGround (void);