summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-16 19:53:36 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-16 20:17:48 +0200
commit1241f456b2eda5565e9a5d45faf0ae692539defe (patch)
treea9eca6eb2d961febbad76d35f90261a16ec9968a /crawl-ref/source/los.h
parentaf4b5015512fab9e409dc8ec4128c6f63ab967c9 (diff)
downloadcrawl-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.h5
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);