MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / CheckItem

Method CheckItem

Descent3/Inventory.cpp:980–986  ·  view source on GitHub ↗

returns true if there is an item in the inventory with the given type/id

Source from the content-addressed store, hash-verified

978
979// returns true if there is an item in the inventory with the given type/id
980bool Inventory::CheckItem(int type, int id) {
981 // mprintf(0,"Inventory System: CheckItem\n");
982 if (FindItem(type, id))
983 return true;
984 else
985 return false;
986}
987
988// saves the inventory to the file (returns number of bytes written)
989int Inventory::SaveInventory(CFILE *file) {

Callers 13

msafe_GetValueFunction · 0.80
MultiDoEnteringGameFunction · 0.80
MultiDoWorldStatesFunction · 0.80
MultiDoRenewPlayerFunction · 0.80
MultiSendRenewPlayerFunction · 0.80
MultiStartNewLevelFunction · 0.80
InvCheckItemFunction · 0.80
dInven_CheckItemFunction · 0.80
DoPlayerAfterburnControlFunction · 0.80
InitPlayerNewLevelFunction · 0.80
InitPlayerNewShipFunction · 0.80
ResetPlayerObjectFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected