… | |
… | |
439 | // and so on. |
439 | // and so on. |
440 | int get_map_flags (maptile *oldmap, maptile **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny); |
440 | int get_map_flags (maptile *oldmap, maptile **newmap, sint16 x, sint16 y, sint16 *nx, sint16 *ny); |
441 | int out_of_map (maptile *m, int x, int y); |
441 | int out_of_map (maptile *m, int x, int y); |
442 | maptile *get_map_from_coord (maptile *m, sint16 *x, sint16 *y); |
442 | maptile *get_map_from_coord (maptile *m, sint16 *x, sint16 *y); |
443 | void get_rangevector (object *op1, object *op2, rv_vector *retval, int flags); |
443 | void get_rangevector (object *op1, object *op2, rv_vector *retval, int flags); |
444 | void get_rangevector_from_mapcoord (const maptile *m, int x, int y, const object *op2, rv_vector *retval, int flags = 0 /*unused*/); |
444 | void get_rangevector_from_mapcoord (maptile *m, int x, int y, const object *op2, rv_vector *retval, int flags = 0 /*unused*/); |
445 | int on_same_map (const object *op1, const object *op2); |
445 | int on_same_map (const object *op1, const object *op2); |
446 | int adjacent_map (const maptile *map1, const maptile *map2, int *dx, int *dy); |
446 | int adjacent_map (maptile *map1, maptile *map2, int *dx, int *dy); |
447 | |
447 | |
448 | // adjust map, x and y for tiled maps and return true if the position is valid at all |
448 | // adjust map, x and y for tiled maps and return true if the position is valid at all |
449 | static inline bool |
449 | static inline bool |
450 | xy_normalise (maptile *&map, sint16 &x, sint16 &y) |
450 | xy_normalise (maptile *&map, sint16 &x, sint16 &y) |
451 | { |
451 | { |