// display stacked accesses void CFileAccessManager::displayFileAccesses(NLMISC::CLog& log) { uint i; for (i=0; i<_Accesses.size(); ++i) { log.displayRawNL("%2d %08p %s %s %s", i, _Accesses[i], _Accesses[i]->Requester.toString().c_str(), _Accesses[i]->Filename.c_str(), _Accesses[i]->FailureReason.c_str()); } }
// **************************************************************************** void CInventoryBase::dumpInventory(NLMISC::CLog & log, bool dumpItems) const { // inventory description log.displayNL("Inventory: %s", INVENTORIES::toString(_InventoryId).c_str()); log.displayRawNL("Slots: max=%u, count=%u, free=%u", getMaxSlot(), _SlotCount, _FreeSlotCount); log.displayRawNL("Weight: %u", _InventoryWeight); log.displayRawNL("Bulk: %u", _InventoryBulk); log.displayRawNL("Nb views: %u", _InventoryViews.size()); log.displayNL("(DEBUG) _Items.size() = %u", _Items.size()); if (dumpItems) { for (uint i = 0; i < _Items.size(); i++) { CGameItemPtr item = _Items[i]; if (item == NULL) continue; // short display of the item description log.displayRawNL( "%u: ", i ); item->displayInLog( log ); } } }