summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-28 15:38:23 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-11-28 15:38:23 +0000
commit77482d829e77d44e438eeb5f43f898a7693c038b (patch)
tree8376d956696e1741d69419ba1a36679097c69ddc /crawl-ref/source/view.h
parent583a087da1a61c5dbb919f78019c7b8d1b02b206 (diff)
downloadcrawl-ref-77482d829e77d44e438eeb5f43f898a7693c038b.tar.gz
crawl-ref-77482d829e77d44e438eeb5f43f898a7693c038b.zip
[1837663] Fixed monsters' raise dead using player's LOS.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2920 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h26
1 files changed, 18 insertions, 8 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index f51d6fcd7b..931746f980 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -100,8 +100,7 @@ void find_features(const std::vector<coord_def>& features,
/* ***********************************************************************
* called from: direct - monstufff - view
* *********************************************************************** */
-void losight(FixedArray<unsigned int, ENV_SHOW_DIAMETER, ENV_SHOW_DIAMETER>& sh,
- FixedArray<dungeon_feature_type, GXM, GYM>& gr,
+void losight(env_show_grid &sh, feature_grid &gr,
int x_p, int y_p, bool clear_walls_block = false);
@@ -190,16 +189,27 @@ void add_feature_override(const std::string &text);
void clear_cset_overrides();
void add_cset_override(char_set_type set, const std::string &overrides);
-bool see_grid( int grx, int gry );
-inline bool see_grid(const coord_def &p) { return see_grid(p.x, p.y); }
+bool see_grid( const env_show_grid &show,
+ const coord_def &c,
+ const coord_def &pos );
+bool see_grid(const coord_def &p);
+bool see_grid_no_trans( const coord_def &p );
+bool trans_wall_blocking( const coord_def &p );
-bool see_grid_no_trans( int grx, int gry );
-inline bool see_grid_no_trans(const coord_def &p)
+inline bool see_grid( int grx, int gry )
{
- return see_grid_no_trans(p.x, p.y);
+ return see_grid(coord_def(grx, gry));
}
-bool trans_wall_blocking( int grx, int gry );
+inline bool see_grid_no_trans(int x, int y)
+{
+ return see_grid_no_trans(coord_def(x, y));
+}
+
+inline bool trans_wall_blocking(int x, int y)
+{
+ return trans_wall_blocking(coord_def(x, y));
+}
std::string screenshot(bool fullscreen = false);