summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/los.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-16 17:03:06 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-16 20:17:48 +0200
commit564dac43f50543729d004dc1dfe905e81321837d (patch)
tree2615c2205a951f823f9d2dd4dd5a56763fe70517 /crawl-ref/source/los.h
parent6c3f2bb24979f61b40a3a666d17059e0e874e92f (diff)
downloadcrawl-ref-564dac43f50543729d004dc1dfe905e81321837d.tar.gz
crawl-ref-564dac43f50543729d004dc1dfe905e81321837d.zip
On the way to a simplified losight interface.
Added a function void losight(env_show_grid& sh, const coord_def& center, opacity_func opc, bounds_func bounds) with sensible defaults for opc and bounds. It's not necessary to abstract away the geometry as I initially did with los_param.
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 045534ac4e..7e70bd7a08 100644
--- a/crawl-ref/source/los.h
+++ b/crawl-ref/source/los.h
@@ -31,7 +31,10 @@ int num_feats_between(const coord_def& source, const coord_def& target,
bool cell_see_cell(const coord_def& p1, const coord_def& p2);
void clear_rays_on_exit();
-void losight(env_show_grid& sh, const los_param& dat);
+void losight(env_show_grid& sh, const coord_def& center,
+ opacity_func opc = &opc_default,
+ bounds_func bounds = &bounds_los_radius);
+void losight(env_show_grid& sh, const los_param& param);
void calc_show_los();
bool see_grid( const env_show_grid &show,