From 1d0f57cbceb778139ca215cc4fcfd1584951f6dd Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 22 Nov 2006 08:41:20 +0000 Subject: 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 --- crawl-ref/source/maps.h | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) (limited to 'crawl-ref/source/maps.h') 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& 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& 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 -- cgit v1.2.3-54-g00ecf