diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 19:53:36 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 20:17:48 +0200 |
commit | 1241f456b2eda5565e9a5d45faf0ae692539defe (patch) | |
tree | a9eca6eb2d961febbad76d35f90261a16ec9968a /crawl-ref/source/los.h | |
parent | af4b5015512fab9e409dc8ec4128c6f63ab967c9 (diff) | |
download | crawl-ref-1241f456b2eda5565e9a5d45faf0ae692539defe.tar.gz crawl-ref-1241f456b2eda5565e9a5d45faf0ae692539defe.zip |
Generalize find_ray to accept opacity_func and bounds_func parameters.
Diffstat (limited to 'crawl-ref/source/los.h')
-rw-r--r-- | crawl-ref/source/los.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/los.h b/crawl-ref/source/los.h index fb370c1abd..7041c2af0d 100644 --- a/crawl-ref/source/los.h +++ b/crawl-ref/source/los.h @@ -19,7 +19,10 @@ 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, bool ignore_solid = false); + ray_def& ray, bool cycle = false, + const opacity_func &opc = opc_solid, + const bounds_func &bds = bds_default); + void fallback_ray(const coord_def& source, const coord_def& target, ray_def& ray); |