summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-30 10:53:06 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-30 10:53:06 +0000
commit262b8e18ed8cb58afb40a816ac0fdedfe3a7db5f (patch)
tree681a9cbb6c22669c6e8b7ab749228a3cd691a903 /crawl-ref/source/view.h
parent51d8f1fc9cc8ed4280b9c53b135ccb0521e84889 (diff)
downloadcrawl-ref-262b8e18ed8cb58afb40a816ac0fdedfe3a7db5f.tar.gz
crawl-ref-262b8e18ed8cb58afb40a816ac0fdedfe3a7db5f.zip
Massive overhaul to move towards coord_def().
This might have introduced some bugs: I now get intermittent crashes on startup (this might have to do with the changes to special_room.) Sorry about that - committing before I need to do any more big conflict resolutions. Fixes coming later. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6732 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h27
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);