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

Aircraft items. More...

#include <inv_shared.h>

Data Fields

aircraftItemType_t type
 
float stats [AIR_STATS_MAX]
 
float weaponDamage
 
float weaponSpeed
 
float weaponDelay
 
int installationTime
 
bool bullets
 
bool beam
 
vec4_t beamColor
 

Detailed Description

Aircraft items.

Note
This is a part of objDef, only filled for aircraft items (weapons, shield, electronics).
See also
objDef_t
Todo:
move into campaign only structure

Definition at line 246 of file inv_shared.h.

Field Documentation

bool craftitem_s::beam

create (laser/particle) beam particles for the projectiles

Definition at line 254 of file inv_shared.h.

Referenced by AIRFIGHT_AddProjectile().

vec4_t craftitem_s::beamColor

Definition at line 255 of file inv_shared.h.

Referenced by GEO_DrawMarkers().

bool craftitem_s::bullets

create bullets for the projectiles

Definition at line 253 of file inv_shared.h.

Referenced by AIRFIGHT_AddProjectile().

float craftitem_s::weaponDamage

The base damage inflicted by an ammo

Definition at line 249 of file inv_shared.h.

Referenced by AIRFIGHT_GetDamage(), and UP_AircraftItemDescription().

float craftitem_s::weaponDelay

The minimum delay between 2 shots

Definition at line 251 of file inv_shared.h.

Referenced by AII_ReloadWeapon(), AIRFIGHT_BaseShoot(), AIRFIGHT_ExecuteActions(), AIRFIGHT_InstallationShoot(), and UP_AircraftItemDescription().

float craftitem_s::weaponSpeed

The speed of the projectile on geoscape

Definition at line 250 of file inv_shared.h.

Referenced by AIRFIGHT_CampaignRunProjectiles(), and AIRFIGHT_ProjectileReachedTarget().


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