diff options
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r-- | crawl-ref/source/view.h | 27 |
1 files changed, 26 insertions, 1 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h index da934d372a..f4a7fdb807 100644 --- a/crawl-ref/source/view.h +++ b/crawl-ref/source/view.h @@ -151,13 +151,23 @@ int get_mons_colour(const monsters *mons); const feature_def &get_feature_def(dungeon_feature_type feat); -void set_envmap_obj( int x, int y, int object ); +void set_envmap_obj( const coord_def& where, int object ); unsigned get_envmap_char(int x, int y); bool inside_level_bounds(int x, int y); bool inside_level_bounds(const coord_def &p); int get_envmap_obj(int x, int y); +inline int get_envmap_obj(const coord_def& c) { + return get_envmap_obj(c.x, c.y); +} void set_envmap_detected_item(int x, int y, bool detected = true); +inline void set_envmap_detected_item(const coord_def& c, bool detected = true) { + set_envmap_detected_item(c.x, c.y, detected); +} + void set_envmap_detected_mons(int x, int y, bool detected = true); +inline void set_envmap_detected_mons(const coord_def& c, bool detected = true) { + set_envmap_detected_mons(c.x, c.y, detected); +} void set_envmap_col( int x, int y, int colour, int flags ); void set_envmap_col( int x, int y, int colour ); void set_envmap_prop( int x, int y, int prop ); @@ -166,13 +176,28 @@ bool is_bloodcovered( const coord_def& p ); bool is_envmap_detected_item(int x, int 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); +} bool is_envmap_item(int x, int y); +inline bool is_envmap_item(const coord_def& c) { + return is_envmap_item(c.x, c.y); +} void set_terrain_mapped( int x, int y ); +inline void set_terrain_mapped( const coord_def& c ) { + set_terrain_mapped(c.x,c.y); +} void set_terrain_seen( int x, int y ); +inline void set_terrain_seen( const coord_def& c ) { + set_terrain_seen(c.x, c.y); +} void set_terrain_changed( int x, int y ); bool is_terrain_known( int x, int y ); bool is_terrain_seen( int x, int y ); bool is_terrain_changed( int x, int y ); +inline bool is_terrain_changed( const coord_def& c ) { + return is_terrain_changed(c.x,c.y); +} bool is_terrain_known(const coord_def &p); bool is_notable_terrain(dungeon_feature_type ftype); |