diff options
Diffstat (limited to 'crawl-ref/source/stuff.h')
-rw-r--r-- | crawl-ref/source/stuff.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/stuff.h b/crawl-ref/source/stuff.h index 7ae7726222..07970c2c62 100644 --- a/crawl-ref/source/stuff.h +++ b/crawl-ref/source/stuff.h @@ -69,6 +69,16 @@ int yesnoquit( const char* str, bool safe = true, bool in_bounds( int x, int y ); bool map_bounds( int x, int y ); +inline bool in_bounds(const coord_def &p) +{ + return in_bounds(p.x, p.y); +} + +inline bool map_bounds(const coord_def &p) +{ + return map_bounds(p.x, p.y); +} + int grid_distance( int x, int y, int x2, int y2 ); int distance( int x, int y, int x2, int y2); bool adjacent( int x, int y, int x2, int y2 ); |