maps.cc File Reference

#include "AppHdr.h"
#include "maps.h"
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <unistd.h>
#include "coordit.h"
#include "dbg-maps.h"
#include "dungeon.h"
#include "env.h"
#include "enum.h"
#include "files.h"
#include "libutil.h"
#include "message.h"
#include "mapdef.h"
#include "mon-util.h"
#include "mon-place.h"
#include "coord.h"
#include "random.h"
#include "state.h"
#include "tags.h"
#include "terrain.h"
#include "tutorial.h"

Include dependency graph for maps.cc:


Classes

struct  map_selector
class  vault_chance_roll_iterator

Typedefs

typedef std::vector< unsigned > vault_indices

Functions

map_section_type vault_main (vault_placement &place, const map_def *vault, bool check_place)
void dgn_flush_map_environments ()
void dgn_flush_map_environment_for (const std::string &mapname)
bool resolve_subvault (map_def &map)
void fit_region_into_map_bounds (coord_def &pos, const coord_def &size, int margin)
bool map_safe_vault_place (const map_def &map, const coord_def &c, const coord_def &size)
const map_deffind_map_by_name (const std::string &name)
void strip_all_maps ()
std::vector< std::stringfind_map_matches (const std::string &name)
mapref_vector find_maps_for_tag (const std::string tag, bool check_depth, bool check_used)
const map_defrandom_map_for_place (const level_id &place, bool minivault)
const map_defrandom_map_in_depth (const level_id &place, bool want_minivault)
mapref_vector random_chance_maps_in_depth (const level_id &place)
const map_defrandom_map_for_tag (const std::string &tag, bool check_depth, bool check_chance)
int map_count ()
int map_count_for_tag (const std::string &tag, bool check_depth)
void reset_map_parser ()
std::string get_descache_path (const std::string &file, const std::string &ext)
void read_map (const std::string &file)
void read_maps ()
void reread_maps ()
void dump_map (const map_def &map)
void add_parsed_map (const map_def &md)
void run_map_global_preludes ()
void run_map_local_preludes ()
const map_defmap_by_index (int index)
void sanity_check_maps ()

Variables

map_place_check_t map_place_valid = map_safe_vault_place
point_vector map_anchor_points
string_vector map_parameters
std::vector< dlua_chunkglobal_preludes
dlua_chunk lc_global_prelude ("global_prelude")
std::string lc_desfile
map_def lc_map
level_range lc_range
depth_ranges lc_default_depths
bool lc_run_global_prelude = true
map_load_info_t lc_loaded_maps
std::set< std::stringmap_files_read
int yylineno

Typedef Documentation

typedef std::vector<unsigned> vault_indices


Function Documentation

void add_parsed_map ( const map_def md  ) 

Here is the call graph for this function:

void dgn_flush_map_environment_for ( const std::string mapname  ) 

Here is the call graph for this function:

void dgn_flush_map_environments (  ) 

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,
bool  check_used 
)

Here is the call graph for this function:

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

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 
)

Here is the call graph for this function:

bool map_safe_vault_place ( const map_def map,
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,
bool  check_chance 
)

Here is the call graph for this function:

const map_def* random_map_in_depth ( const level_id place,
bool  want_minivault 
)

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 map  ) 

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 place,
const map_def vault,
bool  check_place 
)


Variable Documentation

dlua_chunk lc_global_prelude("global_prelude")

bool lc_run_global_prelude = true

map_place_check_t map_place_valid = map_safe_vault_place

int yylineno


Generated on Thu Jan 13 13:09:53 2011 by  doxygen 1.5.6