|
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.
Definition at line 50 of file test_inventory.cpp.
References csi, i, and inventoryImport.
Referenced by InventoryTest::SetUp().
| TEST_F | ( | InventoryTest | , |
| ItemAdd | ) |
Definition at line 73 of file test_inventory.cpp.
References Inventory::containsItem(), i, invDef_t::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), and NONE.
| TEST_F | ( | InventoryTest | , |
| ItemDel | ) |
Definition at line 94 of file test_inventory.cpp.
References Inventory::containsItem(), i, invDef_t::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), and NONE.
| TEST_F | ( | InventoryTest | , |
| ItemMassActions | ) |
Definition at line 226 of file test_inventory.cpp.
References objDef_t::ammos, csi, i, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), INVSH_GetItemByIDX(), objDef_t::numAmmos, and testAddSingle().
| TEST_F | ( | InventoryTest | , |
| ItemMove | ) |
Definition at line 120 of file test_inventory.cpp.
References Inventory::containsItem(), i, IA_MOVE, invDef_t::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), and NONE.
| TEST_F | ( | InventoryTest | , |
| ItemReload | ) |
Definition at line 151 of file test_inventory.cpp.
References Inventory::containsItem(), i, IA_RELOAD, IA_RELOAD_SWAP, invDef_t::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), NONE, Item::setAmmoDef(), and Item::setAmmoLeft().
| TEST_F | ( | InventoryTest | , |
| ItemToHeadgear | ) |
Definition at line 280 of file test_inventory.cpp.
References Inventory::containsItem(), i, invDef_t::id, INVSH_GetInventoryDefinitionByID(), INVSH_GetItemByIDSilent(), and NONE.
|
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.