aircraft_s Struct Reference

An aircraft with all it's data. More...

#include <cp_aircraft.h>

Collaboration diagram for aircraft_s:
Collaboration graph
[legend]

Data Fields

int idx
struct aircraft_stpl
char * id
char name [MAX_VAR]
char * defaultName
char * image
char * model
aircraftType_t type
ufoType_t ufotype
aircraftStatus_t status
int price
int fuel
int damage
int size
vec3_t pos
vec3_t direction
vec3_t projectedPos
vec3_t oldDrawPos
qboolean hasMoved
int numInterpolationPoints
int point
int time
int hangar
int maxTeamSize
linkedList_tacTeam
struct employee_spilot
aircraftSlot_t weapons [MAX_AIRCRAFTSLOT]
int maxWeapons
aircraftSlot_t shield
aircraftSlot_t electronics [MAX_AIRCRAFTSLOT]
int maxElectronics
mapline_t route
struct base_shomebase
itemsTmp_t itemcargo [MAX_CARGO]
int itemTypes
char * building
struct mission_smission
char * missionID
struct aircraft_saircraftTarget
struct radar_s radar
int stats [AIR_STATS_MAX]
technology_ttech
qboolean notifySent [MAX_AIR_NOTIFICATIONS]
qboolean detected
qboolean landed
qboolean notOnGeoscape
int ufoInterestOnGeoscape
int detectionIdx
date_t lastSpotted
aliensTmp_t alienCargo [MAX_CARGO]
int alienCargoTypes

Detailed Description

An aircraft with all it's data.

Definition at line 163 of file cp_aircraft.h.


Field Documentation

Cargo of aliens.

Definition at line 234 of file cp_aircraft.h.

How many types of aliens we collected.

Definition at line 235 of file cp_aircraft.h.

id of the building needed as hangar

Definition at line 211 of file cp_aircraft.h.

Translatable default name for aircraft.

Definition at line 173 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), AIR_NewAircraft(), and AIR_ScriptSanityCheck().

detected UFO number (for descriptions "UFO #4")

Definition at line 232 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), AIR_SaveAircraftXML(), UFO_AircraftToIDOnGeoscape(), and UFO_DetectNewUFO().

Direction in which the aircraft is going on 3D geoscape (used for smoothed rotation).

Definition at line 185 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), AIR_NewAircraft(), AIR_SaveAircraftXML(), MAP_DrawMapMarkers(), and MAP_DrawMapOnePhalanxAircraft().

This is the baseCapacities_t enum value which says in which hangar this aircraft is being parked in (CAP_AIRCRAFT_SMALL/CAP_AIRCRAFT_BIG).

Definition at line 192 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), AIR_NewAircraft(), and AIR_SaveAircraftXML().

Has the aircraft been moved.

Definition at line 188 of file cp_aircraft.h.

Referenced by AIR_AircraftMakeMove().

Global index of this aircraft. See also ccs.numAircraft and AIRCRAFT_INVALID this index is also updated when AIR_DeleteAircraft was called for all the other aircraft. For aircraftTemplates[] aircraft this is the index in that array. this should be references only with the variable name aircraftIdx to let us find references all over the code easier

See also:
AIR_DeleteAircraft

Definition at line 164 of file cp_aircraft.h.

Referenced by AIR_AircraftGetFromIDX(), AIR_AircraftReturnToBase(), AIR_LoadAircraftXML(), AIR_Move(), AIR_NewAircraft(), AIR_RemoveEmployee(), AIR_RemoveFromAircraftTeam(), AIR_SaveAircraftXML(), AIRFIGHT_SaveXML(), BS_SellAircraft_f(), CL_CleanupAircraftCrew(), CP_MissionEnd(), CP_SaveMissionsXML(), MAP_GetUFOAngle(), MAP_MapClick(), TR_NotifyAircraftRemoved(), and UFO_AddToGeoscape().

Image on geoscape.

Definition at line 174 of file cp_aircraft.h.

How many types of items we collected.

Definition at line 209 of file cp_aircraft.h.

Referenced by AII_CollectingItems(), AII_CollectItem(), AIR_LoadAircraftXML(), AIR_SaveAircraftXML(), and B_SellOrAddItems().

date the UFO was detected last time

Definition at line 233 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), AIR_SaveAircraftXML(), and UFO_DetectNewUFO().

aircraft loaded before missions, we need this temporary as reference AIR_PostLoadInitMissions resolves the pointers after game loaded and frees this

Definition at line 215 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), and AIR_PostLoadInitMissions().

Model used on geoscape

Definition at line 175 of file cp_aircraft.h.

Referenced by MAP_DrawMapMarkers(), MAP_DrawMapOnePhalanxAircraft(), MAP_UpdateGeoscapeDock(), and RS_InitTree().

char aircraft_s::name[MAX_VAR]
qboolean aircraft_s::notifySent[MAX_AIR_NOTIFICATIONS]

Definition at line 224 of file cp_aircraft.h.

Referenced by AIR_Refuel().

don't let this aircraft appear ever on geoscape (e.g. ufo_carrier)

Definition at line 230 of file cp_aircraft.h.

Referenced by UFO_AddToGeoscape(), and UFO_IsUFOSeenOnGeoscape().

Number of points drawn so far during interpolation.

Definition at line 189 of file cp_aircraft.h.

Referenced by AIR_AircraftMakeMove().

The old draw position of the aircraft ( (latitude and longitude).

Definition at line 187 of file cp_aircraft.h.

Referenced by MAP_DrawMapMarkers(), and MAP_DrawMapOnePhalanxAircraft().

Current position on the geoscape.

Definition at line 184 of file cp_aircraft.h.

Referenced by AB_UpdateStealthForOneBase(), AIR_AircraftHasEnoughFuel(), AIR_AircraftHasEnoughFuelOneWay(), AIR_AircraftMakeMove(), AIR_AircraftReturnToBase(), AIR_GetDestinationWhilePursuing(), AIR_LoadAircraftXML(), AIR_Move(), AIR_MoveAircraftIntoNewHomebase(), AIR_NewAircraft(), AIR_SaveAircraftXML(), AIR_SendAircraftPursuingUFO(), AIR_SendAircraftToMission(), AIRFIGHT_ActionsAfterAirfight(), AIRFIGHT_AddProjectile(), AIRFIGHT_BaseShoot(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_ExecuteActions(), AIRFIGHT_InstallationShoot(), AIRFIGHT_MissTarget(), AIRFIGHT_ProjectileReachedTarget(), BDEF_AutoTarget(), CL_CampaignRunAircraft(), CL_DisplayPopupInterceptMission(), CL_DisplayPopupInterceptUFO(), CP_BaseAttackStartMission(), CP_InterceptNextStage(), CP_MissionAddToGeoscape(), CP_SpawnCrashSiteMission(), CP_SpawnRescueMission(), CP_UFOProceedMission(), CP_UFORemoveFromGeoscape(), MAP_DrawAircraftHealthBar(), MAP_DrawMapMarkers(), MAP_DrawMapOnePhalanxAircraft(), MAP_GetAircraftText(), MAP_GetGeoscapeAngle(), MAP_GetUFOAngle(), MAP_MapClick(), RADAR_AddDetectedUFOToEveryRadar(), RADAR_CheckUFOSensored(), RADAR_DrawInMap(), RADAR_UpdateWholeRadarOverlay(), TR_TransferAlienAfterMissionStart(), UFO_CampaignCheckEvents(), UFO_CampaignRunUFOs(), UFO_SearchAircraftTarget(), UFO_SendPursuingAircraft(), UFO_SendToDestination(), UFO_SetRandomPos(), UFO_UpdateAlienInterestForOneBase(), and UFO_UpdateAlienInterestForOneInstallation().

Price of this aircraft type at game start, it's evolving on the market.

Definition at line 180 of file cp_aircraft.h.

Referenced by B_SetUpFirstBase(), BS_AircraftIsOnMarket(), BS_InitMarket(), CL_StatsUpdate_f(), CP_NationHandleBudget(), PR_AircraftInfo(), PR_ProductionFrame(), and UR_DialogInitSell_f().

Projected position of the aircraft (latitude and longitude).

Definition at line 186 of file cp_aircraft.h.

Referenced by AIR_AircraftMakeMove().

int aircraft_s::stats[AIR_STATS_MAX]

interest level at which this ufo should be available on geoscape first

Definition at line 231 of file cp_aircraft.h.

Referenced by UFO_ShouldAppearOnGeoscape().


The documentation for this struct was generated from the following file:

Generated by  doxygen 1.6.2