summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-07 12:56:34 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-02-07 12:56:34 +0000
commitc30b530266ee87b352f98e54287bc3c054c88060 (patch)
tree0fb03ae79580117eb5be9ff5767b1f078e5d3a6d /crawl-ref/source/maps.h
parent9a5dd81c99d8cd33c826d47f61eded48494a484e (diff)
downloadcrawl-ref-c30b530266ee87b352f98e54287bc3c054c88060.tar.gz
crawl-ref-c30b530266ee87b352f98e54287bc3c054c88060.zip
[1638394] Added support for portal vaults.
Included David's portal vaults for the Mines, Lair and Vaults. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@930 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/maps.h')
-rw-r--r--crawl-ref/source/maps.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/crawl-ref/source/maps.h b/crawl-ref/source/maps.h
index 676d468190..6c098d11c4 100644
--- a/crawl-ref/source/maps.h
+++ b/crawl-ref/source/maps.h
@@ -16,6 +16,8 @@
#include "dungeon.h"
#include "mapdef.h"
+#include <vector>
+
class map_def;
struct vault_placement
{
@@ -23,17 +25,19 @@ struct vault_placement
int width, height;
int orient;
map_def map;
+ std::vector<coord_def> exits;
vault_placement()
- : x(-1), y(-1), width(0), height(0), map()
+ : x(-1), y(-1), width(0), height(0), map(),
+ exits()
{
}
};
int vault_main(map_type vgrid,
- vault_placement &vp,
- int vault_force,
- int many_many);
+ vault_placement &vp,
+ int vault_force,
+ std::vector<vault_placement> *avoid_vaults = NULL);
const map_def *map_by_index(int index);
int random_map_for_place(const std::string &place, bool mini = false);