diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-06 19:50:53 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-06 20:00:48 +1000 |
commit | a20b45352d9e5e389f5d6116fcbdbaa70b907878 (patch) | |
tree | 82dae5e3f1ff230d5466fd929363a785993a4f40 /crawl-ref/source/maps.h | |
parent | c2a93a39ecbbc995c42275a344e32175339d3adf (diff) | |
download | crawl-ref-a20b45352d9e5e389f5d6116fcbdbaa70b907878.tar.gz crawl-ref-a20b45352d9e5e389f5d6116fcbdbaa70b907878.zip |
Unique placement-related function find_maps_for_tag.
Generates a vector of map_defs that have the relevant tag. Can check
depth (defaults to false) as well as whether or not a vault has
previously been placed (defaults to true).
Convenience function weight_map_vector returns an integer corresponding
to the total weight of all of the maps contained within the vector.
These functions will be used to re-do unique placement as per dpeg's
design (see c-r-d email).
Diffstat (limited to 'crawl-ref/source/maps.h')
-rw-r--r-- | crawl-ref/source/maps.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/maps.h b/crawl-ref/source/maps.h index 37f0f22841..3626db6dd5 100644 --- a/crawl-ref/source/maps.h +++ b/crawl-ref/source/maps.h @@ -41,6 +41,12 @@ void add_parsed_map(const map_def &md); std::vector<std::string> find_map_matches(const std::string &name); +std::vector<map_def> find_maps_for_tag (const std::string tag, + bool check_depth = false, + bool check_used = true); + +int weight_map_vector (std::vector<map_def> maps); + void read_maps(); void read_map(const std::string &file); void run_map_preludes(); |