summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.h
diff options
context:
space:
mode:
authorJude Brown <bookofjude@users.sourceforge.net>2009-12-19 15:12:07 +1000
committerJude Brown <bookofjude@users.sourceforge.net>2009-12-19 15:20:09 +1000
commit9cfc4ea7c8149d84a41d3d7a4983fa3f36ea435e (patch)
tree5259f30d29af4e4ba17abb3b088fbb318199c33d /crawl-ref/source/mapdef.h
parentc0020f5a1cdd32c40ca79ff4babccf96a5a01365 (diff)
downloadcrawl-ref-9cfc4ea7c8149d84a41d3d7a4983fa3f36ea435e.tar.gz
crawl-ref-9cfc4ea7c8149d84a41d3d7a4983fa3f36ea435e.zip
Allow vaults to specify door tiles sets.
In this instance, you need at least two tiles (closed, open), and up to nine (detected, closed, gateway left open, middle open, right open, closed, left closed, middle closed, right closed), and these should always include the "no_random" option. This also doesn't properly deal with detected doors.
Diffstat (limited to 'crawl-ref/source/mapdef.h')
-rw-r--r--crawl-ref/source/mapdef.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/mapdef.h b/crawl-ref/source/mapdef.h
index 3420b0d1b2..3ef19e0eeb 100644
--- a/crawl-ref/source/mapdef.h
+++ b/crawl-ref/source/mapdef.h
@@ -189,8 +189,8 @@ public:
class tile_spec
{
public:
- tile_spec(const std::string &_key, bool _fix, bool _floor, bool _feat, const map_tile_list &_tiles)
- : key(_key), fix(_fix), chose_fixed(false), floor(_floor), feat(_feat),
+ tile_spec(const std::string &_key, bool _fix, bool _rand, bool _floor, bool _feat, const map_tile_list &_tiles)
+ : key(_key), fix(_fix), chose_fixed(false), no_random(_rand), floor(_floor), feat(_feat),
fixed_tile(0), tiles(_tiles)
{
}
@@ -201,6 +201,7 @@ public:
std::string key;
bool fix;
bool chose_fixed;
+ bool no_random;
bool floor;
bool feat;
int fixed_tile;
@@ -428,11 +429,12 @@ private:
struct overlay_def
{
overlay_def() : colour(0), rocktile(0), floortile(0), tile(0),
- property(0), keyspec_idx(0) {}
+ no_random(false), property(0), keyspec_idx(0) {}
int colour;
int rocktile;
int floortile;
int tile;
+ bool no_random;
int property;
int keyspec_idx;
};