diff options
author | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 15:26:25 +0100 |
---|---|---|
committer | Robert Vollmert <rvollmert@gmx.net> | 2009-11-08 15:57:59 +0100 |
commit | 19c3c95b8dba465b3efacf8eb96798af69c170fc (patch) | |
tree | 5bb6ca79a2db28f1358b6a22451ef3784982d1c0 /crawl-ref/source/losparam.h | |
parent | e0fbec4e41274e1e67ec8d8b74ff5c374c6e8867 (diff) | |
download | crawl-ref-19c3c95b8dba465b3efacf8eb96798af69c170fc.tar.gz crawl-ref-19c3c95b8dba465b3efacf8eb96798af69c170fc.zip |
Add opc_no_trans and use that for see_cell_no_trans.
The difference between no_trans and solid is whether granite statues are
considered opaque.
Granite statues are somewhat weird in that they behave completely differently
from other statues: You can't shoot missiles at or past them, no items can be
in their cell, etc.
Diffstat (limited to 'crawl-ref/source/losparam.h')
-rw-r--r-- | crawl-ref/source/losparam.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/crawl-ref/source/losparam.h b/crawl-ref/source/losparam.h index 31a7f4bc1a..6d770428e1 100644 --- a/crawl-ref/source/losparam.h +++ b/crawl-ref/source/losparam.h @@ -49,8 +49,16 @@ struct opacity_fullyopaque : opacity_func }; static opacity_fullyopaque opc_fullyopaque; +// Make transparent walls block in addition to normal LOS. +struct opacity_no_trans : opacity_func +{ + CLONE(opacity_no_trans) + + opacity_type operator()(const coord_def& p) const; +}; +static opacity_no_trans opc_no_trans; + // Make anything solid block in addition to normal LOS. -// XXX: Are trees, bushes solid? struct opacity_solid : opacity_func { CLONE(opacity_solid) |