diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 18:33:24 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-16 20:17:48 +0200 |
commit | af4b5015512fab9e409dc8ec4128c6f63ab967c9 (patch) | |
tree | fa6f259420e92fcef3f3d0466dfb22ced9c0e0f2 /crawl-ref/source/los.h | |
parent | 564dac43f50543729d004dc1dfe905e81321837d (diff) | |
download | crawl-ref-af4b5015512fab9e409dc8ec4128c6f63ab967c9.tar.gz crawl-ref-af4b5015512fab9e409dc8ec4128c6f63ab967c9.zip |
Get rid of los_param outside of los.cc/losparam.cc.
The nicer interface to losight is now
void losight(env_show_grid& sh, const coord_def& center,
const opacity_func &opc = opc_default,
const bounds_func &bds = bds_default);
bounds_func provides the LOS boundary (usually just a circle with
radius the current LOS radius). opacity_func is a mapping of grid
coordinates to opacity values.
Diffstat (limited to 'crawl-ref/source/los.h')
-rw-r--r-- | crawl-ref/source/los.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/los.h b/crawl-ref/source/los.h index 7e70bd7a08..fb370c1abd 100644 --- a/crawl-ref/source/los.h +++ b/crawl-ref/source/los.h @@ -32,8 +32,8 @@ bool cell_see_cell(const coord_def& p1, const coord_def& p2); void clear_rays_on_exit(); void losight(env_show_grid& sh, const coord_def& center, - opacity_func opc = &opc_default, - bounds_func bounds = &bounds_los_radius); + const opacity_func &opc = opc_default, + const bounds_func &bds = bds_default); void losight(env_show_grid& sh, const los_param& param); void calc_show_los(); |