示例#1
0
文件: inventory.cpp 项目: ufoai/ufoai
/**
 * @brief Destroys inventory.
 * @param[in] inv Pointer to the inventory which should be erased.
 * @note Loops through all containers in inventory. @c nullptr for temp containers are skipped,
 * for real containers @c emptyContainer is called.
 * @sa emptyContainer
 */
void InventoryInterface::destroyInventory (Inventory* const inv)
{
	if (!inv)
		return;

	const Container* cont = nullptr;
	while ((cont = inv->getNextCont(cont))) {
		emptyContainer(inv, cont->id);
	}

	inv->init();
}
示例#2
0
CIKGraphObjCont::~CIKGraphObjCont()
{
	emptyContainer();
}
示例#3
0
CIKGraphObjCont::CIKGraphObjCont()
{
	nodeIDCounter=0;
	numberOfElementIDs=0;
	emptyContainer();
}