/* * File: maps.cc * Summary: Functions used to create vaults. * Written by: Linley Henzell * * Change History (most recent first): * * <1> -/--/-- LRH Created */ #ifndef MAPS_H #define MAPS_H #include "FixVec.h" #include "dungeon.h" #include "mapdef.h" #include class map_def; struct vault_placement { int x, y; int width, height; int orient; map_def map; std::vector exits; vault_placement() : x(-1), y(-1), width(0), height(0), map(), exits() { } }; int vault_main(map_type vgrid, vault_placement &vp, int vault_force, std::vector *avoid_vaults = NULL); const map_def *map_by_index(int index); 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, bool want_minivault); void add_parsed_map(const map_def &md); void read_maps(); #endif