UFO: Alien Invasion
|
#include <inv_shared.h>
Public Member Functions | |
void | addClip (const Item *item) |
Combine the rounds of partially used clips. More... | |
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 |
Definition at line 605 of file inv_shared.h.
Combine the rounds of partially used clips.
Definition at line 1028 of file inv_shared.cpp.
References objDef_s::ammo, Item::ammoDef(), Item::def(), Item::getAmmoLeft(), objDef_s::idx, numItems, and numItemsLoose.
Referenced by AII_CarriedItems(), and AIR_MoveEmployeeInventoryIntoStorage().
char equipDef_s::id[MAX_VAR] |
script id of the equipment definition
Definition at line 606 of file inv_shared.h.
Referenced by Com_ParseEquipment(), CP_IsAlienEquipmentSelectable(), CP_SetAlienEquipmentByInterest(), InventoryInterface::EquipActorNormal(), G_GetEquipDefByID(), GAME_SK_ChangeEquip_f(), INV_EquipmentDefSanityCheck(), INV_GetEquipmentDefinitionByID(), and InventoryInterface::PackAmmoAndWeapon().
int equipDef_s::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().
int equipDef_s::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().
const char* equipDef_s::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().
int equipDef_s::numAircraft[AIRCRAFTTYPE_MAX] |
Definition at line 610 of file inv_shared.h.
Referenced by BS_InitMarket(), Com_ParseEquipment(), and CP_CampaignRunMarket().
int equipDef_s::numItems[MAX_OBJDEFS] |
Number of item for each item type (see equipment_missions.ufo for more info)
Definition at line 608 of file inv_shared.h.
Referenced by addClip(), AII_CarriedItems(), AIR_MoveEmployeeInventoryIntoStorage(), B_AddAntimatter(), B_AddToStorage(), B_ItemInBase(), B_LoadStorageXML(), B_SaveStorageXML(), BS_InitMarket(), Com_ParseEquipment(), CP_AddWeaponAmmo(), CP_CampaignRunMarket(), CP_CleanupContainerWeapons(), InventoryInterface::EquipActorNormal(), GAME_LoadTeam(), GAME_SaveTeam(), INV_EquipmentDefSanityCheck(), InventoryInterface::PackAmmoAndWeapon(), TEST_F(), and UI_ContainerNodeUpdateEquipment().
byte equipDef_s::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().