summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-06 20:39:11 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-06 20:41:29 +0100
commitceb51161c896f17a951b0ba2bbd4b48f8fead13a (patch)
tree6fb22b76e7cda0eeb93e82db1d853f664765fc13 /crawl-ref/source/los.h
parentf858cfc60235a5cfb86dd2a2c510dde5e130a4bf (diff)
downloadcrawl-ref-ceb51161c896f17a951b0ba2bbd4b48f8fead13a.tar.gz
crawl-ref-ceb51161c896f17a951b0ba2bbd4b48f8fead13a.zip
Replace global see_cell by observe_cell and disambiguate old uses.
Calls to plain see_cell(pos) were replaced with either observe_cell(pos) or you.see_cell(pos). observe_cell where related to drawing the interface and messaging, you.see_cell for game mechanics, and one or the other in less clear cases (targetting, say).
Diffstat (limited to 'crawl-ref/source/los.h')
-rw-r--r--crawl-ref/source/los.h17
1 files changed, 1 insertions, 16 deletions
diff --git a/crawl-ref/source/los.h b/crawl-ref/source/los.h
index eec4d13909..441ec0c0d1 100644
--- a/crawl-ref/source/los.h
+++ b/crawl-ref/source/los.h
@@ -71,23 +71,8 @@ void calc_show_los();
bool see_cell(const env_show_grid &show,
const coord_def &c,
const coord_def &pos );
-bool see_cell(const coord_def &p);
+bool observe_cell(const coord_def &p);
bool see_cell_no_trans( const coord_def &p );
bool trans_wall_blocking( const coord_def &p );
-inline bool see_cell(int grx, int gry)
-{
- return see_cell(coord_def(grx, gry));
-}
-
-inline bool see_cell_no_trans(int x, int y)
-{
- return see_cell_no_trans(coord_def(x, y));
-}
-
-inline bool trans_wall_blocking(int x, int y)
-{
- return trans_wall_blocking(coord_def(x, y));
-}
-
#endif