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
| 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 |
| 1267 | bool 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 |
| 1284 | void Inventory::GotoPos(int newpos) { |
no outgoing calls
no test coverage detected