moves the position pointer to the previous inventory item
| 1159 | |
| 1160 | // moves the position pointer to the previous inventory item |
| 1161 | void Inventory::PrevPos(bool skip) { |
| 1162 | if ((pos) && (pos->prev)) { |
| 1163 | pos = pos->prev; |
| 1164 | } else if (!pos) { |
| 1165 | pos = root; |
| 1166 | } else |
| 1167 | return; |
| 1168 | |
| 1169 | if (!skip) |
| 1170 | ValidatePos(false); |
| 1171 | } |
| 1172 | |
| 1173 | // returns true if the position pointer is at the begining of the inventory list |
| 1174 | bool Inventory::AtBeginning(void) { |
no outgoing calls
no test coverage detected