summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/coordit.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-08 16:29:24 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-08 17:01:14 +0100
commit6bdaccfb8c194bfa0bb0b6769babc3710d570b45 (patch)
treedce34efa2202539e5a8ea704cdaa46b17fd1969c /crawl-ref/source/coordit.h
parent19c3c95b8dba465b3efacf8eb96798af69c170fc (diff)
downloadcrawl-ref-6bdaccfb8c194bfa0bb0b6769babc3710d570b45.tar.gz
crawl-ref-6bdaccfb8c194bfa0bb0b6769babc3710d570b45.zip
Move see_cell_no_trans into player.
Also collect actor/player LOS code in actor-los.cc.
Diffstat (limited to 'crawl-ref/source/coordit.h')
-rw-r--r--crawl-ref/source/coordit.h13
1 files changed, 7 insertions, 6 deletions
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<std::forward_iterator_tag,
coord_def>
{
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;
};