maps.h File Reference

#include <vector>
#include "mapdef.h"

Include dependency graph for maps.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  dgn_map_parameters

Typedefs

typedef std::vector< map_defmap_vector
typedef std::vector< const
map_def * > 
mapref_vector
typedef std::map< std::string,
map_file_place
map_load_info_t
typedef bool(* map_place_check_t )(const map_def &, const coord_def &c, const coord_def &size)
typedef std::vector< coord_defpoint_vector
typedef std::vector< std::stringstring_vector

Functions

bool map_safe_vault_place (const map_def &md, const coord_def &c, const coord_def &size)
map_section_type vault_main (vault_placement &vp, const map_def *vault, bool check_place=false)
bool resolve_subvault (map_def &vault)
void fit_region_into_map_bounds (coord_def &pos, const coord_def &size, int margin=0)
const map_defmap_by_index (int index)
void strip_all_maps ()
int map_count ()
int map_count_for_tag (const std::string &tag, bool check_depth=false)
const map_deffind_map_by_name (const std::string &name)
const map_defrandom_map_for_place (const level_id &place, bool minivault)
const map_defrandom_map_in_depth (const level_id &lid, bool want_minivault=false)
const map_defrandom_map_for_tag (const std::string &tag, bool check_depth=false, bool check_chance=false)
mapref_vector random_chance_maps_in_depth (const level_id &place)
void dump_map (const map_def &map)
void add_parsed_map (const map_def &md)
std::vector< std::stringfind_map_matches (const std::string &name)
mapref_vector 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 reread_maps ()
void sanity_check_maps ()
void read_map (const std::string &file)
void run_map_global_preludes ()
void run_map_local_preludes ()
void reset_map_parser ()
std::string get_descache_path (const std::string &file, const std::string &ext)

Variables

map_load_info_t lc_loaded_maps
std::string lc_desfile
map_def lc_map
level_range lc_range
depth_ranges lc_default_depths
dlua_chunk lc_global_prelude
bool lc_run_global_prelude
map_place_check_t map_place_valid
point_vector map_anchor_points
string_vector map_parameters
const int MAP_CACHE_VERSION = 1017


Typedef Documentation

typedef bool(* map_place_check_t)(const map_def &, const coord_def &c, const coord_def &size)

typedef std::vector<map_def> map_vector

typedef std::vector<const map_def *> mapref_vector

typedef std::vector<coord_def> point_vector

typedef std::vector<std::string> string_vector


Function Documentation

void add_parsed_map ( const map_def md  ) 

Here is the call graph for this function:

void dump_map ( const map_def map  ) 

Here is the call graph for this function:

const map_def* find_map_by_name ( const std::string name  ) 

std::vector<std::string> find_map_matches ( const std::string name  ) 

mapref_vector find_maps_for_tag ( const std::string  tag,
bool  check_depth = false,
bool  check_used = true 
)

Here is the call graph for this function:

void fit_region_into_map_bounds ( coord_def pos,
const coord_def size,
int  margin = 0 
)

std::string get_descache_path ( const std::string file,
const std::string ext 
)

Here is the call graph for this function:

const map_def* map_by_index ( int  index  ) 

int map_count (  ) 

int map_count_for_tag ( const std::string tag,
bool  check_depth = false 
)

Here is the call graph for this function:

bool map_safe_vault_place ( const map_def md,
const coord_def c,
const coord_def size 
)

Here is the call graph for this function:

mapref_vector random_chance_maps_in_depth ( const level_id place  ) 

Here is the call graph for this function:

const map_def* random_map_for_place ( const level_id place,
bool  minivault 
)

Here is the call graph for this function:

const map_def* random_map_for_tag ( const std::string tag,
bool  check_depth = false,
bool  check_chance = false 
)

Here is the call graph for this function:

const map_def* random_map_in_depth ( const level_id lid,
bool  want_minivault = false 
)

Here is the call graph for this function:

void read_map ( const std::string file  ) 

Here is the call graph for this function:

void read_maps (  ) 

Here is the call graph for this function:

void reread_maps (  ) 

Here is the call graph for this function:

void reset_map_parser (  ) 

Here is the call graph for this function:

bool resolve_subvault ( map_def vault  ) 

Here is the call graph for this function:

void run_map_global_preludes (  ) 

Here is the call graph for this function:

void run_map_local_preludes (  ) 

Here is the call graph for this function:

void sanity_check_maps (  ) 

Here is the call graph for this function:

void strip_all_maps (  ) 

map_section_type vault_main ( vault_placement vp,
const map_def vault,
bool  check_place = false 
)

int weight_map_vector ( std::vector< map_def maps  ) 


Variable Documentation

const int MAP_CACHE_VERSION = 1017


Generated on Thu Jan 13 13:10:01 2011 by  doxygen 1.5.6