UFO: Alien Invasion
Loading...
Searching...
No Matches
aircraft_t Struct Reference

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

#include <cp_aircraft.h>

Collaboration diagram for aircraft_t:
Collaboration graph

Public Member Functions

ufoType_t getUfoType () const
void setUfoType (ufoType_t ufoT)

Data Fields

int idx
struct aircraft_s * tpl
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_s * homebase
const char * building
struct mission_s * mission
char * missionID
struct aircraft_s * aircraftTarget
bool leader
struct radar_s radar
int stats [AIR_STATS_MAX]
struct technology_s * tech
bool notifySent [MAX_AIR_NOTIFICATIONS]
bool detected
bool landed
bool notOnGeoscape
int ufoInterestOnGeoscape
linkedList_tmissionTypes
int detectionIdx
class DateTime lastSpotted
class AlienCargoalienCargo
class ItemCargoitemCargo

Detailed Description

An aircraft with all it's data.

Definition at line 115 of file cp_aircraft.h.

Member Function Documentation

◆ getUfoType()

◆ setUfoType()

void aircraft_t::setUfoType ( ufoType_t ufoT)
inline

Definition at line 183 of file cp_aircraft.h.

References ufotype.

Referenced by AIR_ParseAircraft().

Field Documentation

◆ acTeam

◆ aircraftTarget

◆ alienCargo

class AlienCargo* aircraft_t::alienCargo

◆ building

const char* aircraft_t::building

id of the building needed as hangar

Definition at line 151 of file cp_aircraft.h.

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

◆ damage

◆ defaultName

char* aircraft_t::defaultName

Translatable default name for aircraft.

Definition at line 122 of file cp_aircraft.h.

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

◆ detected

bool aircraft_t::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 167 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().

◆ detectionIdx

int aircraft_t::detectionIdx

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

Definition at line 174 of file cp_aircraft.h.

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

◆ direction

vec3_t aircraft_t::direction

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

Definition at line 133 of file cp_aircraft.h.

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

◆ electronics

◆ fuel

◆ homebase

◆ id

◆ idx

int aircraft_t::idx

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

Definition at line 116 of file cp_aircraft.h.

Referenced by AIR_GeoSelectAircraft_f(), 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().

◆ image

char* aircraft_t::image

Image on geoscape.

Definition at line 123 of file cp_aircraft.h.

◆ itemCargo

class ItemCargo* aircraft_t::itemCargo

◆ landed

◆ lastSpotted

class DateTime aircraft_t::lastSpotted

date the UFO was detected last time

Definition at line 175 of file cp_aircraft.h.

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

◆ leader

bool aircraft_t::leader

try to follow this aircraft

Definition at line 158 of file cp_aircraft.h.

Referenced by UFO_SearchAircraftTarget().

◆ maxElectronics

◆ maxTeamSize

◆ maxWeapons

◆ mission

◆ missionID

char* aircraft_t::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 155 of file cp_aircraft.h.

Referenced by AIR_LoadAircraftXML(), and AIR_PostLoadInitMissions().

◆ missionTypes

linkedList_t* aircraft_t::missionTypes

missiontype strings this aircraft is useable for

Definition at line 173 of file cp_aircraft.h.

Referenced by UFO_CanDoMission().

◆ model

char* aircraft_t::model

◆ name

◆ notifySent

bool aircraft_t::notifySent[MAX_AIR_NOTIFICATIONS]

Definition at line 165 of file cp_aircraft.h.

Referenced by AIR_Refuel().

◆ notOnGeoscape

bool aircraft_t::notOnGeoscape

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

Definition at line 171 of file cp_aircraft.h.

Referenced by UFO_GetTemplateForGeoscape(), and UFO_IsUFOSeenOnGeoscape().

◆ pilot

class Employee* aircraft_t::pilot

Current Pilot assigned to the aircraft.

Definition at line 142 of file cp_aircraft.h.

Referenced by AIR_GetPilot(), AIR_PilotSurvivedCrash(), AIR_SetPilot(), AIRFIGHT_ActionsAfterAirfight(), AIRFIGHT_ProbabilityToHit(), and CP_EndRescueMission().

◆ point

◆ pos

vec3_t aircraft_t::pos

◆ price

int aircraft_t::price

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

Definition at line 128 of file cp_aircraft.h.

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

◆ productionCost

int aircraft_t::productionCost

Production costs of this aircraft type.

Definition at line 129 of file cp_aircraft.h.

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

◆ projectedPos

vec3_t aircraft_t::projectedPos

Projected position of the aircraft (latitude and longitude).

Definition at line 134 of file cp_aircraft.h.

Referenced by AIR_AircraftMakeMove().

◆ radar

struct radar_s aircraft_t::radar

◆ route

◆ shield

◆ stats

◆ status

◆ tech

◆ time

◆ tpl

struct aircraft_s* aircraft_t::tpl

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

Definition at line 119 of file cp_aircraft.h.

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

◆ ufoInterestOnGeoscape

int aircraft_t::ufoInterestOnGeoscape

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

Definition at line 172 of file cp_aircraft.h.

Referenced by TEST_F(), TEST_F(), and UFO_ShouldAppearOnGeoscape().

◆ ufotype

ufoType_t aircraft_t::ufotype

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

Definition at line 125 of file cp_aircraft.h.

Referenced by getUfoType(), setUfoType(), and TEST_F().

◆ weapons


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