map_def Class Reference

#include <mapdef.h>

Collaboration diagram for map_def:

Collaboration graph
[legend]

List of all members.

Public Types

typedef depth_ranges_X
< map_chance
range_chance_t
typedef depth_ranges_X< int > range_weight_t

Public Member Functions

 map_def ()
std::string desc_or_name () const
std::string describe () const
void init ()
void reinit ()
void load ()
void strip ()
int weight (const level_id &lid) const
map_chance chance (const level_id &lid) const
bool in_map (const coord_def &p) const
bool map_already_used () const
coord_def size () const
std::vector< coord_deffind_glyph (int glyph) const
coord_def find_first_glyph (int glyph) const
coord_def find_first_glyph (const std::string &glyphs) const
void write_index (writer &) const
void write_full (writer &) const
void write_maplines (writer &) const
void read_index (reader &)
void read_full (reader &, bool check_cache_version)
void read_maplines (reader &)
void set_file (const std::string &s)
std::string run_lua (bool skip_main)
bool run_hook (const std::string &hook_name, bool die_on_lua_error=false)
bool run_postplace_hook (bool die_on_lua_error=false)
void copy_hooks_from (const map_def &other_map, const std::string &hook_name)
bool test_lua_validate (bool croak=false)
bool test_lua_veto ()
bool run_lua_epilogue (bool croak=false)
std::string validate_map_def (const depth_ranges &)
std::string validate_temple_map ()
bool is_validating () const
void add_prelude_line (int line, const std::string &s)
void add_main_line (int line, const std::string &s)
void hmirror ()
void vmirror ()
void rotate (bool clockwise)
void normalise ()
std::string resolve ()
void fixup ()
bool is_usable_in (const level_id &lid) const
const keyed_mapspecmapspec_at (const coord_def &c) const
keyed_mapspecmapspec_at (const coord_def &c)
bool has_depth () const
void add_depth (const level_range &depth)
void add_depths (const depth_ranges &depth)
bool can_dock (map_section_type) const
coord_def dock_pos (map_section_type) const
coord_def float_dock ()
coord_def float_place ()
coord_def float_aligned_place () const
coord_def float_random_place () const
std::vector< coord_defanchor_points () const
bool is_minivault () const
bool is_overwritable_layout () const
bool has_tag (const std::string &tag) const
bool has_tag_prefix (const std::string &tag) const
bool has_tag_suffix (const std::string &suffix) const
template<typename TagIterator>
bool has_any_tag (TagIterator begin, TagIterator end) const
std::vector< std::stringget_tags () const
std::vector< std::stringget_shuffle_strings () const
std::vector< std::stringget_subst_strings () const
int glyph_at (const coord_def &c) const
std::string subvault_from_tagstring (const std::string &s)
bool is_subvault () const
void apply_subvault_mask ()
bool subvault_cell_valid (const coord_def &c) const
int subvault_width () const
int subvault_height () const
int subvault_mismatch_count (const coord_def &place) const

Static Public Member Functions

static bool valid_item_array_glyph (int gly)
static int item_array_glyph_to_slot (int gly)
static bool valid_monster_array_glyph (int gly)
static bool valid_monster_glyph (int gly)
static int monster_array_glyph_to_slot (int gly)

Public Attributes

std::string name
std::string description
std::string tags
level_id place
depth_ranges depths
map_section_type orient
range_chance_t _chance
range_weight_t _weight
int weight_depth_mult
int weight_depth_div
std::vector< std::stringwelcome_messages
map_lines map
mons_list mons
item_list items
std::vector< mons_specrandom_mons
map_flags level_flags
map_flags branch_flags
dlua_chunk prelude
dlua_chunk mapchunk
dlua_chunk main
dlua_chunk validate
dlua_chunk veto
dlua_chunk epilogue
map_file_place place_loaded_from
map_deforiginal
uint8_t rock_colour
uint8_t floor_colour
std::string rock_tile
std::string floor_tile
dungeon_feature_type border_fill_type

Classes

struct  map_bounds_check
struct  map_feature_finder


Member Typedef Documentation


Constructor & Destructor Documentation

map_def::map_def (  ) 

Here is the call graph for this function:


Member Function Documentation

bool map_def::valid_item_array_glyph ( int  gly  )  [static]

int map_def::item_array_glyph_to_slot ( int  gly  )  [static]

Here is the call graph for this function:

bool map_def::valid_monster_array_glyph ( int  gly  )  [static]

bool map_def::valid_monster_glyph ( int  gly  )  [static]

int map_def::monster_array_glyph_to_slot ( int  gly  )  [static]

Here is the call graph for this function:

std::string map_def::desc_or_name (  )  const

std::string map_def::describe (  )  const

Here is the call graph for this function:

void map_def::init (  ) 

Here is the call graph for this function:

void map_def::reinit (  ) 

Here is the call graph for this function:

void map_def::load (  ) 

Here is the call graph for this function:

void map_def::strip (  ) 

Here is the call graph for this function:

int map_def::weight ( const level_id lid  )  const

Here is the call graph for this function:

map_chance map_def::chance ( const level_id lid  )  const

Here is the call graph for this function:

bool map_def::in_map ( const coord_def p  )  const

Here is the call graph for this function:

bool map_def::map_already_used (  )  const

Here is the call graph for this function:

coord_def map_def::size (  )  const [inline]

Here is the call graph for this function:

std::vector< coord_def > map_def::find_glyph ( int  glyph  )  const

Here is the call graph for this function:

coord_def map_def::find_first_glyph ( int  glyph  )  const

Here is the call graph for this function:

coord_def map_def::find_first_glyph ( const std::string glyphs  )  const

Here is the call graph for this function:

void map_def::write_index ( writer outf  )  const

Here is the call graph for this function:

void map_def::write_full ( writer outf  )  const

Here is the call graph for this function:

void map_def::write_maplines ( writer outf  )  const

Here is the call graph for this function:

void map_def::read_index ( reader inf  ) 

Here is the call graph for this function:

void map_def::read_full ( reader inf,
bool  check_cache_version 
)

Here is the call graph for this function:

void map_def::read_maplines ( reader inf  ) 

Here is the call graph for this function:

void map_def::set_file ( const std::string s  ) 

Here is the call graph for this function:

std::string map_def::run_lua ( bool  skip_main  ) 

Here is the call graph for this function:

bool map_def::run_hook ( const std::string hook_name,
bool  die_on_lua_error = false 
)

Here is the call graph for this function:

bool map_def::run_postplace_hook ( bool  die_on_lua_error = false  ) 

Here is the call graph for this function:

void map_def::copy_hooks_from ( const map_def other_map,
const std::string hook_name 
)

Here is the call graph for this function:

bool map_def::test_lua_validate ( bool  croak = false  ) 

Here is the call graph for this function:

bool map_def::test_lua_veto (  ) 

Here is the call graph for this function:

bool map_def::run_lua_epilogue ( bool  croak = false  ) 

Here is the call graph for this function:

std::string map_def::validate_map_def ( const depth_ranges default_depths  ) 

Here is the call graph for this function:

std::string map_def::validate_temple_map (  ) 

Here is the call graph for this function:

bool map_def::is_validating (  )  const [inline]

void map_def::add_prelude_line ( int  line,
const std::string s 
)

void map_def::add_main_line ( int  line,
const std::string s 
)

void map_def::hmirror (  ) 

Here is the call graph for this function:

void map_def::vmirror (  ) 

Here is the call graph for this function:

void map_def::rotate ( bool  clockwise  ) 

Here is the call graph for this function:

void map_def::normalise (  ) 

Here is the call graph for this function:

std::string map_def::resolve (  ) 

void map_def::fixup (  ) 

Here is the call graph for this function:

bool map_def::is_usable_in ( const level_id lid  )  const

Here is the call graph for this function:

const keyed_mapspec * map_def::mapspec_at ( const coord_def c  )  const

Here is the call graph for this function:

keyed_mapspec * map_def::mapspec_at ( const coord_def c  ) 

Here is the call graph for this function:

bool map_def::has_depth (  )  const

Here is the call graph for this function:

void map_def::add_depth ( const level_range depth  ) 

Here is the call graph for this function:

void map_def::add_depths ( const depth_ranges depth  ) 

bool map_def::can_dock ( map_section_type  norient  )  const

Here is the call graph for this function:

coord_def map_def::dock_pos ( map_section_type  norient  )  const

Here is the call graph for this function:

coord_def map_def::float_dock (  ) 

Here is the call graph for this function:

coord_def map_def::float_place (  ) 

Here is the call graph for this function:

coord_def map_def::float_aligned_place (  )  const

Here is the call graph for this function:

coord_def map_def::float_random_place (  )  const

Here is the call graph for this function:

point_vector map_def::anchor_points (  )  const

Here is the call graph for this function:

bool map_def::is_minivault (  )  const

Here is the call graph for this function:

bool map_def::is_overwritable_layout (  )  const

Here is the call graph for this function:

bool map_def::has_tag ( const std::string tag  )  const

bool map_def::has_tag_prefix ( const std::string tag  )  const

bool map_def::has_tag_suffix ( const std::string suffix  )  const

template<typename TagIterator>
bool map_def::has_any_tag ( TagIterator  begin,
TagIterator  end 
) const [inline]

Here is the call graph for this function:

std::vector< std::string > map_def::get_tags (  )  const

Here is the call graph for this function:

std::vector<std::string> map_def::get_shuffle_strings (  )  const

std::vector<std::string> map_def::get_subst_strings (  )  const

int map_def::glyph_at ( const coord_def c  )  const

std::string map_def::subvault_from_tagstring ( const std::string s  ) 

Here is the call graph for this function:

bool map_def::is_subvault (  )  const

void map_def::apply_subvault_mask (  ) 

Here is the call graph for this function:

bool map_def::subvault_cell_valid ( const coord_def c  )  const

Here is the call graph for this function:

int map_def::subvault_width (  )  const

Here is the call graph for this function:

int map_def::subvault_height (  )  const

Here is the call graph for this function:

int map_def::subvault_mismatch_count ( const coord_def place  )  const

Here is the call graph for this function:


Member Data Documentation


The documentation for this class was generated from the following files:

Generated on Thu Jan 13 13:36:00 2011 by  doxygen 1.5.6