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

Aircraft items. More...

#include <inv_shared.h>

Collaboration diagram for craftItem:
Collaboration graph

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

◆ beam

bool craftItem::beam

create (laser/particle) beam particles for the projectiles

Definition at line 254 of file inv_shared.h.

Referenced by AIRFIGHT_AddProjectile().

◆ beamColor

vec4_t craftItem::beamColor

Definition at line 255 of file inv_shared.h.

Referenced by GEO_DrawMarkers().

◆ bullets

bool craftItem::bullets

create bullets for the projectiles

Definition at line 253 of file inv_shared.h.

Referenced by AIRFIGHT_AddProjectile().

◆ installationTime

◆ stats

◆ type

◆ weaponDamage

float craftItem::weaponDamage

The base damage inflicted by an ammo

Definition at line 249 of file inv_shared.h.

Referenced by AIRFIGHT_GetDamage(), and UP_AircraftItemDescription().

◆ weaponDelay

float craftItem::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().

◆ weaponSpeed

float craftItem::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: