… | |
… | |
400 | |
400 | |
401 | // return an array of maprects corresponding |
401 | // return an array of maprects corresponding |
402 | // to the given rectangular area. the last rect will have |
402 | // to the given rectangular area. the last rect will have |
403 | // a 0 map pointer. |
403 | // a 0 map pointer. |
404 | maprect *split_to_tiles (dynbuf &buf, int x0, int y0, int x1, int y1); |
404 | maprect *split_to_tiles (dynbuf &buf, int x0, int y0, int x1, int y1); |
|
|
405 | |
|
|
406 | MTH bool is_in_shop (int x, int y) const; |
405 | }; |
407 | }; |
|
|
408 | |
|
|
409 | inline bool |
|
|
410 | object::is_in_shop () const |
|
|
411 | { |
|
|
412 | return is_on_map () |
|
|
413 | && map->is_in_shop (x, y); |
|
|
414 | } |
406 | |
415 | |
407 | //+GPL |
416 | //+GPL |
408 | |
417 | |
409 | /* This is used by get_rangevector to determine where the other |
418 | /* This is used by get_rangevector to determine where the other |
410 | * creature is. get_rangevector takes into account map tiling, |
419 | * creature is. get_rangevector takes into account map tiling, |