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

#include <inv_shared.h>

Collaboration diagram for equipDef_t:
Collaboration graph

Public Member Functions

void addClip (const Item *item)
 Combine the rounds of partially used clips.

Data Fields

char id [MAX_VAR]
const char * name
int numItems [MAX_OBJDEFS]
byte numItemsLoose [MAX_OBJDEFS]
int numAircraft [AIRCRAFTTYPE_MAX]
int minInterest
int maxInterest

Detailed Description

Definition at line 605 of file inv_shared.h.

Member Function Documentation

◆ addClip()

void equipDef_t::addClip ( const Item * item)

Combine the rounds of partially used clips.

Definition at line 1028 of file inv_shared.cpp.

References objDef_t::ammo, Item::ammoDef(), Item::def(), Item::getAmmoLeft(), objDef_t::idx, numItems, and numItemsLoose.

Referenced by AII_CarriedItems(), AIR_MoveEmployeeInventoryIntoStorage(), and CL_InvReload().

Field Documentation

◆ id

◆ maxInterest

int equipDef_t::maxInterest

Maximum overall interest to use this equipment definition (only for alien)

Definition at line 612 of file inv_shared.h.

Referenced by CP_IsAlienEquipmentSelectable().

◆ minInterest

int equipDef_t::minInterest

Minimum overall interest to use this equipment definition (only for alien)

Definition at line 611 of file inv_shared.h.

Referenced by CP_IsAlienEquipmentSelectable().

◆ name

const char* equipDef_t::name

translatable name of the equipment definition

Definition at line 607 of file inv_shared.h.

Referenced by Com_ParseEquipment(), and GAME_SK_ChangeEquip_f().

◆ numAircraft

int equipDef_t::numAircraft[AIRCRAFTTYPE_MAX]

Definition at line 610 of file inv_shared.h.

Referenced by BS_InitMarket(), Com_ParseEquipment(), and CP_CampaignRunMarket().

◆ numItems

◆ numItemsLoose

byte equipDef_t::numItemsLoose[MAX_OBJDEFS]

currently only used for weapon ammo

Definition at line 609 of file inv_shared.h.

Referenced by addClip(), B_LoadStorageXML(), B_SaveStorageXML(), CP_AddWeaponAmmo(), GAME_LoadTeam(), and GAME_SaveTeam().


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