diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 23:30:11 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 23:49:51 +0200 |
commit | 0adf2c9dd91d2f49931fc242545b1e4cd7f5119b (patch) | |
tree | 136e0d0d210b358f072973742d9c6852ae112ef0 /crawl-ref/source/los.h | |
parent | 1feac7b0b1cef1cea1ab107f0cce26e3a94e84b7 (diff) | |
download | crawl-ref-0adf2c9dd91d2f49931fc242545b1e4cd7f5119b.tar.gz crawl-ref-0adf2c9dd91d2f49931fc242545b1e4cd7f5119b.zip |
Some find_ray related cleanup.
Introduce a function exists_ray when the ray is not actually needed.
Also factor out part of _blocked_ray from directn.cc to ray_blocker.
Diffstat (limited to 'crawl-ref/source/los.h')
-rw-r--r-- | crawl-ref/source/los.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/crawl-ref/source/los.h b/crawl-ref/source/los.h index 7041c2af0d..92d00090e0 100644 --- a/crawl-ref/source/los.h +++ b/crawl-ref/source/los.h @@ -19,9 +19,12 @@ int get_los_radius_squared(); // XXX struct ray_def; bool find_ray(const coord_def& source, const coord_def& target, - ray_def& ray, bool cycle = false, - const opacity_func &opc = opc_solid, - const bounds_func &bds = bds_default); + ray_def& ray, const opacity_func &opc = opc_solid, + const bounds_func &bds = bds_default, bool cycle = false); +bool exists_ray(const coord_def& source, const coord_def& target, + const opacity_func &opc = opc_solid, + const bounds_func &bds = bds_default); +dungeon_feature_type ray_blocker(const coord_def& source, const coord_def& target); void fallback_ray(const coord_def& source, const coord_def& target, ray_def& ray); |