diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-04 17:32:00 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-04 17:32:00 +0000 |
commit | 55d5736219e39edcf1976aa6ac909a64e7104cf1 (patch) | |
tree | 17b21b814bf991b86e6d88a9d738c60f709fa8e4 /crawl-ref/source/view.h | |
parent | 1df63f2d24648d2467da71b81ba53f039e6539c0 (diff) | |
download | crawl-ref-55d5736219e39edcf1976aa6ac909a64e7104cf1.tar.gz crawl-ref-55d5736219e39edcf1976aa6ac909a64e7104cf1.zip |
Move a bit more things to use coord_defs and iterators instead of x,y.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8892 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r-- | crawl-ref/source/view.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h index c544f6024b..6335c15a8c 100644 --- a/crawl-ref/source/view.h +++ b/crawl-ref/source/view.h @@ -135,6 +135,10 @@ bool is_sanctuary( const coord_def& p ); bool is_bloodcovered( const coord_def& p ); bool is_envmap_detected_item(int x, int y); +inline bool is_envmap_detected_item(const coord_def& c) { + return is_envmap_detected_item(c.x, c.y); +} + bool is_envmap_detected_mons(int x, int y); inline bool is_envmap_detected_mons(const coord_def& c) { return is_envmap_detected_mons(c.x, c.y); |