From 19c3c95b8dba465b3efacf8eb96798af69c170fc Mon Sep 17 00:00:00 2001 From: Robert Vollmert Date: Sun, 8 Nov 2009 15:26:25 +0100 Subject: 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. --- crawl-ref/source/losparam.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/losparam.h') 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) -- cgit v1.2.3-54-g00ecf