From 6bdaccfb8c194bfa0bb0b6769babc3710d570b45 Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 8 Nov 2009 16:29:24 +0100 Subject: Move see_cell_no_trans into player. Also collect actor/player LOS code in actor-los.cc. --- crawl-ref/source/coordit.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/coordit.h') diff --git a/crawl-ref/source/coordit.h b/crawl-ref/source/coordit.h index 4599eea66d..60fbf1a669 100644 --- a/crawl-ref/source/coordit.h +++ b/crawl-ref/source/coordit.h @@ -17,15 +17,16 @@ private: coord_def current, topleft, bottomright; }; +class los_def; class radius_iterator : public std::iterator { public: - radius_iterator( const coord_def& center, int radius, - bool roguelike_metric = true, - bool require_los = true, - bool exclude_center = false, - const env_show_grid* losgrid = NULL ); + radius_iterator(const coord_def& center, int radius, + bool roguelike_metric = true, + bool require_los = true, + bool exclude_center = false, + const los_def* los = NULL); bool done() const; void reset(); operator bool() const { return !done(); } @@ -41,7 +42,7 @@ private: coord_def location, center; int radius; bool roguelike_metric, require_los, exclude_center; - const env_show_grid* losgrid; + const los_def* los; bool iter_done; }; -- cgit v1.2.3-54-g00ecf