UFO: Alien Invasion
|
Go to the source code of this file.
Data Structures | |
class | InventoryTest |
Functions | |
static void | FreeInventory (void *data) |
static void * | AllocInventoryMemory (size_t size) |
static void | FreeAllInventory (void) |
static void | ResetInventoryList (void) |
TEST_F (InventoryTest, ItemAdd) | |
TEST_F (InventoryTest, ItemDel) | |
TEST_F (InventoryTest, ItemMove) | |
TEST_F (InventoryTest, ItemReload) | |
static bool | testAddSingle (Inventory *inv, const objDef_t *od, const invDef_t *container) |
TEST_F (InventoryTest, ItemMassActions) | |
TEST_F (InventoryTest, ItemToHeadgear) | |
Variables | |
static InventoryInterface | i |
static const int | TAG_INVENTORY = 5546 |
static const inventoryImport_t | inventoryImport = { FreeInventory, FreeAllInventory, AllocInventoryMemory } |
|
static |
Definition at line 38 of file test_inventory.cpp.
References com_genericPool, Mem_PoolAlloc, and TAG_INVENTORY.
Definition at line 43 of file test_inventory.cpp.
References com_genericPool, Mem_FreeTag, and TAG_INVENTORY.
Definition at line 33 of file test_inventory.cpp.
References Mem_Free.
Definition at line 50 of file test_inventory.cpp.
References csi, InventoryInterface::destroyInventoryInterface(), and InventoryInterface::initInventory().
Referenced by InventoryTest::SetUp().
TEST_F | ( | InventoryTest | , |
ItemAdd | |||
) |
Definition at line 73 of file test_inventory.cpp.
References InventoryInterface::addToInventory(), Inventory::containsItem(), invDef_s::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), and NONE.
TEST_F | ( | InventoryTest | , |
ItemDel | |||
) |
Definition at line 94 of file test_inventory.cpp.
References InventoryInterface::addToInventory(), Inventory::containsItem(), invDef_s::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), NONE, and InventoryInterface::removeFromInventory().
TEST_F | ( | InventoryTest | , |
ItemMove | |||
) |
Definition at line 120 of file test_inventory.cpp.
References InventoryInterface::addToInventory(), Inventory::containsItem(), IA_MOVE, invDef_s::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), InventoryInterface::moveInInventory(), and NONE.
TEST_F | ( | InventoryTest | , |
ItemReload | |||
) |
Definition at line 151 of file test_inventory.cpp.
References InventoryInterface::addToInventory(), Inventory::containsItem(), IA_RELOAD, IA_RELOAD_SWAP, invDef_s::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), InventoryInterface::moveInInventory(), NONE, Item::setAmmoDef(), and Item::setAmmoLeft().
TEST_F | ( | InventoryTest | , |
ItemMassActions | |||
) |
Definition at line 226 of file test_inventory.cpp.
References objDef_s::ammos, csi, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), INVSH_GetItemByIDX(), objDef_s::numAmmos, csi_s::numODs, and testAddSingle().
TEST_F | ( | InventoryTest | , |
ItemToHeadgear | |||
) |
Definition at line 280 of file test_inventory.cpp.
References InventoryInterface::addToInventory(), Inventory::containsItem(), invDef_s::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), and NONE.
|
static |
Definition at line 219 of file test_inventory.cpp.
References InventoryInterface::tryAddToInventory().
Referenced by TEST_F().
|
static |
Definition at line 30 of file test_inventory.cpp.
|
static |
Definition at line 48 of file test_inventory.cpp.
|
static |
Definition at line 31 of file test_inventory.cpp.
Referenced by AllocInventoryMemory(), and FreeAllInventory().