UFO: Alien Invasion
|
projectile used during fight between two or more aircraft More...
#include <cp_airfight.h>
Data Fields | |
const objDef_t * | aircraftItem |
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_t * | attackingAircraft |
vec3_t | attackerPos |
aircraft_t * | aimedAircraft |
int | time |
float | angle |
bool | bullets |
bool | beam |
bool | rocket |
projectile used during fight between two or more aircraft
Definition at line 43 of file cp_airfight.h.
aircraft_t* aircraftProjectile_s::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().
const objDef_t* aircraftProjectile_s::aircraftItem |
Corresponding ammo
Definition at line 44 of file cp_airfight.h.
Referenced by AIRFIGHT_AddProjectile(), AIRFIGHT_CampaignRunProjectiles(), AIRFIGHT_LoadXML(), AIRFIGHT_ProjectileHits(), AIRFIGHT_ProjectileReachedTarget(), AIRFIGHT_SaveXML(), and GEO_DrawMarkers().
float aircraftProjectile_s::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().
vec3_t aircraftProjectile_s::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().
aircraft_t* aircraftProjectile_s::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().
bool aircraftProjectile_s::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().
bool aircraftProjectile_s::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().
bool aircraftProjectile_s::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().
vec3_t aircraftProjectile_s::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().
int aircraftProjectile_s::idx |
self link of the idx in ccs.projectiles[]
Definition at line 45 of file cp_airfight.h.
int aircraftProjectile_s::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().
int aircraftProjectile_s::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().
vec3_t aircraftProjectile_s::oldDrawPos[MAX_MULTIPLE_PROJECTILES] |
Array if old draw positions of the projectile (latitude and longitude).
Definition at line 48 of file cp_airfight.h.
vec3_t aircraftProjectile_s::pos[MAX_MULTIPLE_PROJECTILES] |
array of positions of the projectile (latitude and longitude) -
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().
vec3_t aircraftProjectile_s::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().
bool aircraftProjectile_s::rocket |
Definition at line 63 of file cp_airfight.h.
Referenced by AIRFIGHT_AddProjectile(), and AIRFIGHT_ProjectileHits().
int aircraftProjectile_s::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().