diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2010-03-22 11:16:21 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2010-03-22 18:49:33 +0100 |
commit | f076dba08f371e3949cac9e25bc3d57cbe09a133 (patch) | |
tree | 5bae121339342f2052f3cfcca04d47b4cb7ecd7a /crawl-ref/source/effects.h | |
parent | dea589d649ce656f83f31d3333ba61cb7b4194cb (diff) | |
download | crawl-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.h | 4 |
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); |