From 77482d829e77d44e438eeb5f43f898a7693c038b Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 28 Nov 2007 15:38:23 +0000 Subject: [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 --- crawl-ref/source/view.h | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/view.h') 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& features, /* *********************************************************************** * called from: direct - monstufff - view * *********************************************************************** */ -void losight(FixedArray& sh, - FixedArray& 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); -- cgit v1.2.3-54-g00ecf