summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-21 22:07:52 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2008-07-21 22:07:52 +0000
commit391f30e5a07d493508cb7e281fef4d82ee0ae47c (patch)
treef7dfd9cd0770b589367c86f8e681a69030b06ee2 /crawl-ref/source/view.h
parentab9bd52586015758713a23e157666692abae7036 (diff)
downloadcrawl-ref-391f30e5a07d493508cb7e281fef4d82ee0ae47c.tar.gz
crawl-ref-391f30e5a07d493508cb7e281fef4d82ee0ae47c.zip
Various code cleanups. Moving towards using coord_def()
instead of x and y where possible. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6630 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index 08b8c7b5f9..e108e839fc 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -265,9 +265,11 @@ public:
// public methods
void set_monster(monsters *mon);
void set_los_centre(int x, int y);
+ void set_los_centre(const coord_def& p) { this->set_los_centre(p.x, p.y); }
void set_los_range(int r);
void fill_los_field(void);
bool in_sight(int x, int y);
+ bool in_sight(const coord_def& p) { return this->in_sight(p.x, p.y); }
protected:
// protected methods