UFO: Alien Invasion
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
aircraft_s Struct Reference

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

#include <cp_aircraft.h>

Public Member Functions

ufoType_t getUfoType () const
 
void setUfoType (ufoType_t ufoT)
 

Data Fields

int idx
 
struct aircraft_stpl
 
char * id
 
char name [MAX_VAR]
 
char * defaultName
 
char * image
 
char * model
 
ufoType_t ufotype
 
aircraftStatus_t status
 
int price
 
int productionCost
 
int fuel
 
int damage
 
vec3_t pos
 
vec3_t direction
 
vec3_t projectedPos
 
mapline_t route
 
int point
 
int time
 
int maxTeamSize
 
linkedList_tacTeam
 
class Employeepilot
 
aircraftSlot_t weapons [MAX_AIRCRAFTSLOT]
 
int maxWeapons
 
aircraftSlot_t shield
 
aircraftSlot_t electronics [MAX_AIRCRAFTSLOT]
 
int maxElectronics
 
struct base_shomebase
 
const char * building
 
struct mission_smission
 
char * missionID
 
struct aircraft_saircraftTarget
 
bool leader
 
struct radar_s radar
 
int stats [AIR_STATS_MAX]
 
struct technology_stech
 
bool notifySent [MAX_AIR_NOTIFICATIONS]
 
bool detected
 
bool landed
 
bool notOnGeoscape
 
int ufoInterestOnGeoscape
 
linkedList_tmissionTypes
 
int detectionIdx
 
date_t lastSpotted
 
class AlienCargoalienCargo
 
class ItemCargoitemCargo
 

Detailed Description

An aircraft with all it's data.

Definition at line 114 of file cp_aircraft.h.

Member Function Documentation

void aircraft_s::setUfoType ( ufoType_t  ufoT)
inline

Definition at line 182 of file cp_aircraft.h.

Referenced by AIR_ParseAircraft().

Field Documentation

class AlienCargo* aircraft_s::alienCargo
const char* aircraft_s::building

id of the building needed as hangar

Definition at line 150 of file cp_aircraft.h.

Referenced by AIR_CanIntercept(), AIR_GetHangarCapacityType(), AIR_NewAircraft(), and AIR_ParseAircraft().

char* aircraft_s::defaultName

Translatable default name for aircraft.

Definition at line 121 of file cp_aircraft.h.

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

bool aircraft_s::detected

Is the ufo detected by a radar? (note that a detected landed ufo has detected set to true and visible set to false: we can't see it on geoscape)

Definition at line 166 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), AIR_SaveAircraftXML(), AIRFIGHT_ExecuteActions(), CP_CheckMissionVisibleOnGeoscape(), CP_MissionAddToGeoscape(), CP_SupplySetStayAtBase(), CP_UFORemoveFromGeoscape(), MIS_GetName(), RADAR_SetRadarAfterLoading(), UFO_AddToGeoscape(), UFO_CampaignCheckEvents(), UFO_DetectNewUFO(), and UFO_IsUFOSeenOnGeoscape().

int aircraft_s::detectionIdx

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

Definition at line 173 of file cp_aircraft.h.

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

vec3_t aircraft_s::direction

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

Definition at line 132 of file cp_aircraft.h.

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

int aircraft_s::idx

Global index of this aircraft. See also ccs.numAircraft For aircraftTemplates[] aircraft this is the index in that array.

Definition at line 115 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), AIR_NewAircraft(), AIR_PostLoadInitMissions(), AIR_RemoveEmployee(), AIR_SaveAircraftXML(), AIRFIGHT_SaveXML(), AL_AddAliens(), GEO_GetUFOAngle(), MIS_SaveXML(), TEST_F(), TR_TransferStart(), and UFO_CreateFromTemplate().

char* aircraft_s::image

Image on geoscape.

Definition at line 122 of file cp_aircraft.h.

class ItemCargo* aircraft_s::itemCargo
date_t aircraft_s::lastSpotted

date the UFO was detected last time

Definition at line 174 of file cp_aircraft.h.

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

bool aircraft_s::leader

try to follow this aircraft

Definition at line 157 of file cp_aircraft.h.

Referenced by UFO_SearchAircraftTarget().

char* aircraft_s::missionID

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

Definition at line 154 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), and AIR_PostLoadInitMissions().

linkedList_t* aircraft_s::missionTypes

missiontype strings this aircraft is useable for

Definition at line 172 of file cp_aircraft.h.

Referenced by UFO_CanDoMission().

char* aircraft_s::model
bool aircraft_s::notifySent[MAX_AIR_NOTIFICATIONS]

Definition at line 164 of file cp_aircraft.h.

Referenced by AIR_Refuel().

bool aircraft_s::notOnGeoscape

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

Definition at line 170 of file cp_aircraft.h.

Referenced by UFO_GetTemplateForGeoscape(), and UFO_IsUFOSeenOnGeoscape().

class Employee* aircraft_s::pilot
vec3_t aircraft_s::pos
int aircraft_s::price

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

Definition at line 127 of file cp_aircraft.h.

Referenced by AIR_ParseAircraft(), B_SetUpFirstBase(), BS_AircraftIsOnMarket(), BS_InitMarket(), and UR_DialogInitSell_f().

int aircraft_s::productionCost

Production costs of this aircraft type.

Definition at line 128 of file cp_aircraft.h.

Referenced by AIR_ParseAircraft(), PR_AircraftInfo(), PR_CheckFrame(), and PR_FinishProduction().

vec3_t aircraft_s::projectedPos

Projected position of the aircraft (latitude and longitude).

Definition at line 133 of file cp_aircraft.h.

Referenced by AIR_AircraftMakeMove().

struct aircraft_s* aircraft_s::tpl

Self-link in aircraft_sample list (i.e. templates).

Definition at line 118 of file cp_aircraft.h.

Referenced by AII_UpdateAircraftStats(), AIR_NewAircraft(), AIR_ParseAircraft(), BS_GetAircraftSellingPrice(), BS_MarketAircraftDescription(), BS_ShowInfo_f(), PR_GetName(), and TEST_F().

int aircraft_s::ufoInterestOnGeoscape

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

Definition at line 171 of file cp_aircraft.h.

Referenced by TEST_F(), and UFO_ShouldAppearOnGeoscape().

ufoType_t aircraft_s::ufotype

Type of UFO, see ufoType_t (UFO_NONE if craft is not a UFO).

Definition at line 124 of file cp_aircraft.h.

Referenced by getUfoType(), and TEST_F().


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