diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 01:25:43 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 01:41:41 +0100 |
commit | b33014e5510ddaf3a5088c934bbb53aa406b451c (patch) | |
tree | dde4379a3ad2a0b8eb10179029d4acac6aa88a76 /crawl-ref/source/losparam.cc | |
parent | dbb39bdfc8ddc1c4b06b07f09d626791e46ed4bb (diff) | |
download | crawl-ref-b33014e5510ddaf3a5088c934bbb53aa406b451c.tar.gz crawl-ref-b33014e5510ddaf3a5088c934bbb53aa406b451c.zip |
Replace bounds_func with circle_def.
The various LOS objects and functions now accept a circle_def
instead of a bounds_func. This is a little less generic, but
should eventually help with iterating over coordinates in
any los_def.
Diffstat (limited to 'crawl-ref/source/losparam.cc')
-rw-r--r-- | crawl-ref/source/losparam.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/crawl-ref/source/losparam.cc b/crawl-ref/source/losparam.cc index a6c696c60d..68e6aa2e18 100644 --- a/crawl-ref/source/losparam.cc +++ b/crawl-ref/source/losparam.cc @@ -62,15 +62,3 @@ opacity_type opacity_monmove::operator()(const coord_def& p) const else return (OPC_CLEAR); } - -// LOS bounded by fixed presquared radius. -bool bounds_radius_sq::operator()(const coord_def& p) const -{ - return (p.abs() <= radius_sq); -} - -// LOS bounded by current global LOS radius. -bool bounds_cur_los_radius::operator()(const coord_def& p) const -{ - return (p.abs() <= get_los_radius_sq()); -} |