summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/maps.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-22 08:41:20 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2006-11-22 08:41:20 +0000
commit1d0f57cbceb778139ca215cc4fcfd1584951f6dd (patch)
treecafd60c944c51fcce778aa5d6912bc548c518339 /crawl-ref/source/maps.h
parent6f5e187a9e5cd348296dba2fd89d2e206e775a01 (diff)
downloadcrawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.tar.gz
crawl-ref-1d0f57cbceb778139ca215cc4fcfd1584951f6dd.zip
Merged stone_soup r15:451 into trunk.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@452 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/maps.h')
-rw-r--r--crawl-ref/source/maps.h30
1 files changed, 25 insertions, 5 deletions
diff --git a/crawl-ref/source/maps.h b/crawl-ref/source/maps.h
index e2ce11af80..7159448f85 100644
--- a/crawl-ref/source/maps.h
+++ b/crawl-ref/source/maps.h
@@ -13,13 +13,33 @@
#define MAPS_H
#include "FixVec.h"
+#include "dungeon.h"
+class map_def;
+struct vault_placement
+{
+ int x, y;
+ int width, height;
+ const map_def *map;
-// last updated 12may2000 {dlb}
-/* ***********************************************************************
- * called from: dungeon
- * *********************************************************************** */
-char vault_main(char vgrid[81][81], FixedVector<int, 7>& mons_array, int vault_force, int many_many);
+ vault_placement()
+ : x(-1), y(-1), width(0), height(0), map(NULL)
+ {
+ }
+};
+int vault_main(map_type vgrid,
+ FixedVector<int, 7>& mons_array,
+ vault_placement &vp,
+ int vault_force,
+ int many_many);
+
+int random_map_for_place(const std::string &place, bool mini = false);
+int find_map_named(const std::string &name);
+int random_map_for_depth(int depth, bool want_minivault = false);
+int random_map_for_tag(const std::string &tag);
+void add_parsed_map(const map_def &md);
+
+void read_maps();
#endif