summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-03-22 11:16:21 +0100
committerRobert Vollmert <rvollmert@gmx.net>2010-03-22 18:49:33 +0100
commitf076dba08f371e3949cac9e25bc3d57cbe09a133 (patch)
tree5bae121339342f2052f3cfcca04d47b4cb7ecd7a /crawl-ref/source/effects.h
parentdea589d649ce656f83f31d3333ba61cb7b4194cb (diff)
downloadcrawl-ref-f076dba08f371e3949cac9e25bc3d57cbe09a133.tar.gz
crawl-ref-f076dba08f371e3949cac9e25bc3d57cbe09a133.zip
Update actor::get_los to use global LOS.
This is all not very nice. los_base is now an abstract base class for both los_def and los_glob (global LOS-backed los_def variant), and interators now take a *los_base. actor::update_los is gone. Arena LOS is quite probably broken again at the moment.
Diffstat (limited to 'crawl-ref/source/effects.h')
-rw-r--r--crawl-ref/source/effects.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/effects.h b/crawl-ref/source/effects.h
index 6961e976db..1294a93ef5 100644
--- a/crawl-ref/source/effects.h
+++ b/crawl-ref/source/effects.h
@@ -46,11 +46,11 @@ int place_ring(std::vector<coord_def>& ring_points,
int arc_occupancy,
int& seen_count);
-class los_def;
+class los_base;
// Collect lists of points that are within LOS (under the given losgrid),
// unoccupied, and not solid (walls/statues).
void collect_radius_points(std::vector<std::vector<coord_def> > &radius_points,
- const coord_def &origin, const los_def &los);
+ const coord_def &origin, const los_base* los);
void random_uselessness(int scroll_slot = -1);