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

Method UsePos

Descent3/Inventory.cpp:862–867  ·  view source on GitHub ↗

uses an item in the inventory (currently selected one) (returns false if the item doesn't exist)

Source from the content-addressed store, hash-verified

860
861// uses an item in the inventory (currently selected one) (returns false if the item doesn't exist)
862bool Inventory::UsePos(object *parent) {
863 if (pos) {
864 return Use(pos->type, pos->id, parent);
865 } else
866 return false;
867}
868
869bool Inventory::Use(int objhandle, object *parent) { return Use(objhandle, -1, parent); }
870

Callers 4

dInven_UsePosFunction · 0.80
UseInventoryItemFunction · 0.80
UseCountermeasureFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected