diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-10-08 18:25:19 +0200 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-10-08 18:31:55 +0200 |
commit | c7a9fecd4bc075e9b7b05f132a32aeaed7ff7c1e (patch) | |
tree | f0f8b48bd0691ca02bc173e621679f052704c810 /crawl-ref/source/losparam.h | |
parent | e7fe416eb697676ab40f279b8e5d1364d9614d81 (diff) | |
download | crawl-ref-c7a9fecd4bc075e9b7b05f132a32aeaed7ff7c1e.tar.gz crawl-ref-c7a9fecd4bc075e9b7b05f132a32aeaed7ff7c1e.zip |
Add los_param_permissive.
This was intended for the arena; keeping as example or test case.
Diffstat (limited to 'crawl-ref/source/losparam.h')
-rw-r--r-- | crawl-ref/source/losparam.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/losparam.h b/crawl-ref/source/losparam.h index a31fbb46f5..15f1cc860a 100644 --- a/crawl-ref/source/losparam.h +++ b/crawl-ref/source/losparam.h @@ -45,6 +45,15 @@ struct los_param_trans : los_param bool map_bounds(const coord_def& p) const; }; +// Everything is visible. +struct los_param_permissive : los_param_trans +{ + los_param_permissive(const coord_def& c); + + unsigned appearance(const coord_def& p) const; + opacity_type opacity(const coord_def& p) const; +}; + // A complete base implementation that does standard visibility // based on env.grid. struct los_param_base : los_param_trans |