summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/losparam.h
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2010-02-22 12:47:26 +0100
committerRobert Vollmert <rvollmert@gmx.net>2010-02-22 13:13:23 +0100
commitd2d2410aa72b9fc18f10e4b1dd38aceeeb602f0c (patch)
treeac27b25c12b33751d9b79106e24cb9ff28b8d39d /crawl-ref/source/losparam.h
parent68cd75376ce80d79e998ad13e96bf72299fb5284 (diff)
downloadcrawl-ref-d2d2410aa72b9fc18f10e4b1dd38aceeeb602f0c.tar.gz
crawl-ref-d2d2410aa72b9fc18f10e4b1dd38aceeeb602f0c.zip
opacity_immob for monster movement.
This moves the previous opacity_no_trans modifications (a9af5253) into a separate opacity_func to avoid conflicts with other uses of opacity_no_trans.
Diffstat (limited to 'crawl-ref/source/losparam.h')
-rw-r--r--crawl-ref/source/losparam.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/crawl-ref/source/losparam.h b/crawl-ref/source/losparam.h
index 0b6b6a2ac4..1481825537 100644
--- a/crawl-ref/source/losparam.h
+++ b/crawl-ref/source/losparam.h
@@ -60,6 +60,16 @@ struct opacity_no_trans : opacity_func
};
static opacity_no_trans opc_no_trans;
+// Make immobile monsters block in addition to no_trans.
+// This is used for monster movement.
+struct opacity_immob : opacity_func
+{
+ CLONE(opacity_immob)
+
+ opacity_type operator()(const coord_def& p) const;
+};
+static opacity_immob opc_immob;
+
// Make anything solid block in addition to normal LOS.
struct opacity_solid : opacity_func
{