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

projectile used during fight between two or more aircraft More...

#include <cp_airfight.h>

Collaboration diagram for aircraftProjectile_t:
Collaboration graph

Data Fields

const objDef_taircraftItem
int idx
vec3_t pos [MAX_MULTIPLE_PROJECTILES]
vec3_t projectedPos [MAX_MULTIPLE_PROJECTILES]
vec3_t oldDrawPos [MAX_MULTIPLE_PROJECTILES]
int numProjectiles
bool hasMoved
int numInterpolationPoints
vec3_t idleTarget
aircraft_tattackingAircraft
vec3_t attackerPos
aircraft_taimedAircraft
int time
float angle
bool bullets
bool beam
bool rocket

Detailed Description

projectile used during fight between two or more aircraft

Definition at line 43 of file cp_airfight.h.

Field Documentation

◆ aimedAircraft

aircraft_t* aircraftProjectile_t::aimedAircraft

target of the projectile/ used only if the projectile will touch its target (otherwise it's nullptr)

Definition at line 57 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_LoadXML(), AIRFIGHT_MissTarget(), AIRFIGHT_ProjectileHits(), AIRFIGHT_ProjectileReachedTarget(), AIRFIGHT_RemoveProjectileAimingAircraft(), AIRFIGHT_SaveXML(), and GEO_DrawMarkers().

◆ aircraftItem

◆ angle

float aircraftProjectile_t::angle

angle of the missile on the geoscape

Definition at line 60 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_LoadXML(), AIRFIGHT_SaveXML(), and GEO_DrawMarkers().

◆ attackerPos

vec3_t aircraftProjectile_t::attackerPos

position of the attacker. used only if base or samsite is shooting (attackingAircraft == nullptr)

Definition at line 55 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_LoadXML(), AIRFIGHT_SaveXML(), and GEO_DrawMarkers().

◆ attackingAircraft

aircraft_t* aircraftProjectile_t::attackingAircraft

Aircraft which shot the projectile. nullptr if aircraft is destroyed or base is shooting

Definition at line 54 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_LoadXML(), AIRFIGHT_ProjectileHits(), AIRFIGHT_RemoveProjectileAimingAircraft(), AIRFIGHT_SaveXML(), AIRFIGHT_UpdateProjectileForDestroyedAircraft(), and GEO_DrawMarkers().

◆ beam

bool aircraftProjectile_t::beam

projectile has an active (laser) beam on geoscape

Definition at line 62 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_LoadXML(), AIRFIGHT_SaveXML(), and GEO_DrawMarkers().

◆ bullets

bool aircraftProjectile_t::bullets

projectile has active bullets on geoscape

Definition at line 61 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_LoadXML(), AIRFIGHT_SaveXML(), and GEO_DrawMarkers().

◆ hasMoved

bool aircraftProjectile_t::hasMoved

Has the projectile been moved by the CampaignRunProjectiles function

Definition at line 50 of file cp_airfight.h.

Referenced by AIRFIGHT_CampaignRunProjectiles(), and GEO_DrawMarkers().

◆ idleTarget

vec3_t aircraftProjectile_t::idleTarget

target of the projectile used only if the projectile will miss its target (that is if aimedAircraft is nullptr)

Definition at line 52 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_LoadXML(), AIRFIGHT_MissTarget(), AIRFIGHT_ProjectileReachedTarget(), AIRFIGHT_SaveXML(), and GEO_DrawMarkers().

◆ idx

int aircraftProjectile_t::idx

self link of the idx in ccs.projectiles[]

Todo
: is this really needed?

Definition at line 45 of file cp_airfight.h.

◆ numInterpolationPoints

int aircraftProjectile_t::numInterpolationPoints

Number of points drawn so far during interpolation.

Definition at line 51 of file cp_airfight.h.

Referenced by AIRFIGHT_CampaignRunProjectiles(), and GEO_DrawMarkers().

◆ numProjectiles

int aircraftProjectile_t::numProjectiles

Number of projectile positions used for this projectile.

Definition at line 49 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_LoadXML(), and AIRFIGHT_SaveXML().

◆ oldDrawPos

vec3_t aircraftProjectile_t::oldDrawPos[MAX_MULTIPLE_PROJECTILES]

Array if old draw positions of the projectile (latitude and longitude).

Definition at line 48 of file cp_airfight.h.

◆ pos

vec3_t aircraftProjectile_t::pos[MAX_MULTIPLE_PROJECTILES]

array of positions of the projectile (latitude and longitude) -

Todo
why vec3_t this is long/lat

Definition at line 46 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_LoadXML(), AIRFIGHT_MissTarget(), AIRFIGHT_ProjectileReachedTarget(), AIRFIGHT_SaveXML(), and GEO_DrawMarkers().

◆ projectedPos

vec3_t aircraftProjectile_t::projectedPos[MAX_MULTIPLE_PROJECTILES]

Array if projected positions of the projectile (latitude and longitude).

Definition at line 47 of file cp_airfight.h.

Referenced by AIRFIGHT_CampaignRunProjectiles(), and GEO_DrawMarkers().

◆ rocket

bool aircraftProjectile_t::rocket

Definition at line 63 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), and AIRFIGHT_ProjectileHits().

◆ time

int aircraftProjectile_t::time

time since the projectile has been launched

Definition at line 59 of file cp_airfight.h.

Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_LoadXML(), AIRFIGHT_ProjectileReachedTarget(), and AIRFIGHT_SaveXML().


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