|
UFO: Alien Invasion
|
#include <inv_shared.h>

Public Member Functions | |
| Container () | |
| const invDef_t * | def () const |
| Item * | getNextItem (const Item *prev) const |
| int | countItems () const |
| Count the number of items in the Container. | |
Data Fields | |
| int | id |
| Item * | _invList |
Private Attributes | |
| const invDef_t * | _def |
Definition at line 511 of file inv_shared.h.
| Container::Container | ( | ) |
Definition at line 660 of file inv_shared.cpp.
| int Container::countItems | ( | ) | const |
Count the number of items in the Container.
For temp containers, we neglect Item::amount.
Definition at line 681 of file inv_shared.cpp.
References getNextItem().
Referenced by Inventory::countItems(), G_SendInventory(), and TEST_F().
| const invDef_t * Container::def | ( | ) | const |
Definition at line 667 of file inv_shared.cpp.
Referenced by AI_SearchGrenade(), CP_CleanupContainerWeapons(), G_ActorReload(), G_ClientGetWeaponFromInventory(), G_MissionTouch(), INV_UpdateActorLoad_f(), and Inventory::resetTempContainers().
Definition at line 671 of file inv_shared.cpp.
References _invList, and Item::getNext().
Referenced by AI_SearchGrenade(), AIR_GetStorageRoom(), AIR_MoveEmployeeInventoryIntoStorage(), AIR_TransferItemsCarriedByCharacterToBase(), AM_MoveCharacterInventoryIntoItemCargo(), countItems(), E_RemoveInventoryFromStorage(), Inventory::findInContainer(), G_ActorReload(), G_ClientCanReload(), G_ClientGetWeaponFromInventory(), G_MissionTouch(), G_SendInventory(), GAME_SaveInventory(), Inventory::getItemAtPos(), Inventory::getWeight(), HUD_UpdateActorLoad_f(), INVSH_CheckToInventory_shape(), InventoryInterface::moveInInventory(), TR_Add_f(), and UI_ContainerNodeDrawGrid().
|
private |
Definition at line 513 of file inv_shared.h.
Referenced by Container().
| Item* Container::_invList |
Definition at line 516 of file inv_shared.h.
Referenced by AII_CarriedItems(), Container(), Inventory::getContainer2(), InventoryInterface::GetInventoryState(), getNextItem(), and INV_UpdateActorLoad_f().
| int Container::id |
Definition at line 515 of file inv_shared.h.
Referenced by def(), InventoryInterface::destroyInventory(), G_ActorReload(), G_InventoryToFloor(), G_SendInventory(), GAME_SaveInventory(), Inventory::resetTempContainers(), and TEST_F().