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

Method GetPosInfo

Descent3/Inventory.cpp:1267–1281  ·  view source on GitHub ↗

return information about the current position item returns true if the pos is a real object in the game returns false if the pos is just a type/id inventory item

Source from the content-addressed store, hash-verified

1265// returns true if the pos is a real object in the game
1266// returns false if the pos is just a type/id inventory item
1267bool Inventory::GetPosInfo(uint16_t &iflags, int &flags) {
1268 if (!pos) {
1269 iflags = 0;
1270 flags = 0;
1271 return false;
1272 }
1273
1274 iflags = pos->iflags;
1275 flags = pos->flags;
1276
1277 if (pos->iflags & INVF_OBJECT)
1278 return true;
1279 else
1280 return false;
1281}
1282
1283// goes to a position in the list
1284void Inventory::GotoPos(int newpos) {

Callers 2

dInven_GetPosInfoFunction · 0.80
PlayerSpewInventoryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected