… | |
… | |
318 | return op; |
318 | return op; |
319 | |
319 | |
320 | return 0; |
320 | return 0; |
321 | } |
321 | } |
322 | |
322 | |
|
|
323 | // "temporary" helper function |
|
|
324 | MTH object *head_ () |
|
|
325 | { |
|
|
326 | return head ? head : this; |
|
|
327 | } |
|
|
328 | |
|
|
329 | // insert object at same map position as 'where' |
|
|
330 | // handles both inventory and map "positions" |
|
|
331 | MTH object *insert_at (object *where, object *originator = 0, int flags = 0); |
|
|
332 | |
323 | // returns the mapspace this object is in |
333 | // returns the mapspace this object is in |
324 | mapspace &ms () const; |
334 | mapspace &ms () const; |
325 | |
335 | |
326 | // fully recursive iterator |
336 | // fully recursive iterator |
327 | struct iterator_base |
337 | struct iterator_base |