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

Method NextPos

Descent3/Inventory.cpp:1148–1158  ·  view source on GitHub ↗

moves the position pointer to the next inventory item

Source from the content-addressed store, hash-verified

1146
1147// moves the position pointer to the next inventory item
1148void Inventory::NextPos(bool skip) {
1149 if ((pos) && (pos->next)) {
1150 pos = pos->next;
1151 } else if (!pos) {
1152 pos = root;
1153 } else
1154 return;
1155
1156 if (!skip)
1157 ValidatePos();
1158}
1159
1160// moves the position pointer to the previous inventory item
1161void Inventory::PrevPos(bool skip) {

Callers 4

dInven_NextPosFunction · 0.80
PlayerSpewInventoryFunction · 0.80
InventorySwitchFunction · 0.80
CounterMeasuresSwitchFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected