summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/losparam.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-10-08 19:57:59 +0200
committerRobert Vollmert <rvollmert@gmx.net>2009-10-08 20:12:46 +0200
commit2fb004a5ae4d47af8151a821f296c25426fbe1e4 (patch)
treec70122b7cd720b36b76b6048bf510159c30d8a33 /crawl-ref/source/losparam.h
parentc7a9fecd4bc075e9b7b05f132a32aeaed7ff7c1e (diff)
downloadcrawl-ref-2fb004a5ae4d47af8151a821f296c25426fbe1e4.tar.gz
crawl-ref-2fb004a5ae4d47af8151a821f296c25426fbe1e4.zip
Convert remaining uses of losight to los_param-style.
Diffstat (limited to 'crawl-ref/source/losparam.h')
-rw-r--r--crawl-ref/source/losparam.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/crawl-ref/source/losparam.h b/crawl-ref/source/losparam.h
index 15f1cc860a..db88db38d3 100644
--- a/crawl-ref/source/losparam.h
+++ b/crawl-ref/source/losparam.h
@@ -66,6 +66,15 @@ struct los_param_base : los_param_trans
opacity_type opacity(const coord_def& p) const;
};
+// Like los_param_base, but any solid object blocks.
+// This includes clear walls and statues.
+struct los_param_solid : los_param_base
+{
+ los_param_solid(const coord_def& c);
+
+ opacity_type opacity(const coord_def& p) const;
+};
+
// Provides a compatible set of parameters for use with the
// legacy losight() function.
struct los_param_compat : los_param_base