diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-08 16:47:06 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-08 18:31:55 +0200 |
commit | efbe1be543f6781d73b056d0acab3143dfde704f (patch) | |
tree | 5b9d5186a99f920fa6be0f8c15c43744ea85f3fc /crawl-ref/source/los.h | |
parent | ed5f5311c213fb847bc37293e4330aa268a406ed (diff) | |
download | crawl-ref-efbe1be543f6781d73b056d0acab3143dfde704f.tar.gz crawl-ref-efbe1be543f6781d73b056d0acab3143dfde704f.zip |
A rewrite of losight() to allow future generalization.
Parameters relevant to the LOS calculation are now passed as
an object los_param that takes care of coordinate translation,
bounds checking, opacity of cells and what is written to the
output array.
A check for in_bounds was changed to map_bounds for simlicity;
this should not have any effect.
Special casing for arena was removed from losight; instead
calc_show_los now calls the new losight_permissive.
Diffstat (limited to 'crawl-ref/source/los.h')
-rw-r--r-- | crawl-ref/source/los.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/los.h b/crawl-ref/source/los.h index 301806b8c6..0eca7e4fc4 100644 --- a/crawl-ref/source/los.h +++ b/crawl-ref/source/los.h @@ -7,6 +7,7 @@ #define LOS_H #include "externs.h" +#include "losparam.h" #define EPSILON_VALUE 0.00001 @@ -33,6 +34,7 @@ void clear_rays_on_exit(); void losight(env_show_grid &sh, feature_grid &gr, const coord_def& center, bool clear_walls_block = false, bool ignore_clouds = false); +void losight(env_show_grid& sh, const los_param& dat); void calc_show_los(); bool see_grid( const env_show_grid &show, |