#include <mapdef.h>
Public Member Functions | |
map_lines () | |
map_lines (const map_lines &) | |
~map_lines () | |
map_lines & | operator= (const map_lines &) |
bool | in_map (const coord_def &pos) const |
void | add_line (const std::string &s) |
std::string | add_nsubst (const std::string &st) |
std::string | add_subst (const std::string &st) |
std::string | add_shuffle (const std::string &s) |
std::string | add_colour (const std::string &col) |
std::string | add_fproperty (const std::string &sub) |
std::string | add_fheight (const std::string &arg) |
void | clear_markers () |
void | write_maplines (writer &) const |
void | read_maplines (reader &) |
std::vector< coord_def > | find_glyph (const std::string &glyphs) const |
std::vector< coord_def > | find_glyph (int glyph) const |
coord_def | find_first_glyph (int glyph) const |
coord_def | find_first_glyph (const std::string &glyphs) const |
bool | find_bounds (int glyph, coord_def &tl, coord_def &br) const |
bool | find_bounds (const char *glyph_str, coord_def &tl, coord_def &br) const |
void | set_orientation (const std::string &s) |
int | width () const |
int | height () const |
coord_def | size () const |
int | glyph (int x, int y) const |
int | glyph (const coord_def &) const |
bool | is_solid (int gly) const |
bool | solid_borders (map_section_type border) |
void | normalise (char fillc= ' ') |
void | rotate (bool clockwise) |
void | hmirror () |
void | vmirror () |
void | clear () |
void | add_marker (map_marker *marker) |
std::string | add_feature_marker (const std::string &desc) |
std::string | add_lua_marker (const std::string &key, const lua_datum &fn) |
void | apply_markers (const coord_def &pos) |
void | apply_grid_overlay (const coord_def &pos) |
void | apply_overlays (const coord_def &pos) |
const std::vector< std::string > & | get_lines () const |
std::vector< std::string > & | get_lines () |
rectangle_iterator | get_iter () const |
char | operator() (const coord_def &c) const |
char & | operator() (const coord_def &c) |
char | operator() (int x, int y) const |
char & | operator() (int x, int y) |
const keyed_mapspec * | mapspec_at (const coord_def &c) const |
keyed_mapspec * | mapspec_at (const coord_def &c) |
std::string | add_key_item (const std::string &s) |
std::string | add_key_mons (const std::string &s) |
std::string | add_key_feat (const std::string &s) |
std::string | add_key_mask (const std::string &s) |
bool | in_bounds (const coord_def &c) const |
void | extend (int min_width, int min_height, char fill) |
bool | fill_zone (travel_distance_grid_t &tpd, const coord_def &start, const coord_def &tl, const coord_def &br, int zone, const char *wanted, const char *passable) const |
int | count_feature_in_box (const coord_def &tl, const coord_def &br, const char *feat) const |
void | fill_mask_matrix (const std::string &glyphs, const coord_def &tl, const coord_def &br, Matrix< bool > &flags) |
void | merge_subvault (const coord_def &tl, const coord_def &br, const Matrix< bool > &mask, const map_def &vault) |
Friends | |
class | subst_spec |
class | nsubst_spec |
class | shuffle_spec |
class | map_marker_spec |
class | colour_spec |
class | tile_spec |
Classes | |
class | iterator |
struct | overlay_def |
map_lines::map_lines | ( | ) |
map_lines::map_lines | ( | const map_lines & | map | ) |
map_lines::~map_lines | ( | ) |
bool map_lines::in_map | ( | const coord_def & | pos | ) | const |
void map_lines::add_line | ( | const std::string & | s | ) |
std::string map_lines::add_nsubst | ( | const std::string & | st | ) |
std::string map_lines::add_subst | ( | const std::string & | st | ) |
std::string map_lines::add_shuffle | ( | const std::string & | s | ) |
std::string map_lines::add_colour | ( | const std::string & | col | ) |
std::string map_lines::add_fproperty | ( | const std::string & | sub | ) |
std::string map_lines::add_fheight | ( | const std::string & | arg | ) |
void map_lines::clear_markers | ( | ) |
void map_lines::write_maplines | ( | writer & | outf | ) | const |
void map_lines::read_maplines | ( | reader & | inf | ) |
std::vector< coord_def > map_lines::find_glyph | ( | const std::string & | glyphs | ) | const |
std::vector< coord_def > map_lines::find_glyph | ( | int | glyph | ) | const |
coord_def map_lines::find_first_glyph | ( | int | glyph | ) | const |
coord_def map_lines::find_first_glyph | ( | const std::string & | glyphs | ) | const |
void map_lines::set_orientation | ( | const std::string & | s | ) |
int map_lines::width | ( | ) | const |
int map_lines::height | ( | ) | const |
coord_def map_lines::size | ( | ) | const |
int map_lines::glyph | ( | int | x, | |
int | y | |||
) | const |
int map_lines::glyph | ( | const coord_def & | c | ) | const |
bool map_lines::is_solid | ( | int | gly | ) | const |
bool map_lines::solid_borders | ( | map_section_type | border | ) |
void map_lines::normalise | ( | char | fillc = ' ' |
) |
void map_lines::rotate | ( | bool | clockwise | ) |
void map_lines::hmirror | ( | ) |
void map_lines::vmirror | ( | ) |
void map_lines::clear | ( | ) |
void map_lines::add_marker | ( | map_marker * | marker | ) |
std::string map_lines::add_feature_marker | ( | const std::string & | desc | ) |
std::string map_lines::add_lua_marker | ( | const std::string & | key, | |
const lua_datum & | fn | |||
) |
void map_lines::apply_markers | ( | const coord_def & | pos | ) |
void map_lines::apply_grid_overlay | ( | const coord_def & | pos | ) |
void map_lines::apply_overlays | ( | const coord_def & | pos | ) |
const std::vector< std::string > & map_lines::get_lines | ( | ) | const |
std::vector< std::string > & map_lines::get_lines | ( | ) |
rectangle_iterator map_lines::get_iter | ( | ) | const |
char map_lines::operator() | ( | const coord_def & | c | ) | const |
char & map_lines::operator() | ( | const coord_def & | c | ) |
char map_lines::operator() | ( | int | x, | |
int | y | |||
) | const |
char & map_lines::operator() | ( | int | x, | |
int | y | |||
) |
const keyed_mapspec * map_lines::mapspec_at | ( | const coord_def & | c | ) | const |
keyed_mapspec * map_lines::mapspec_at | ( | const coord_def & | c | ) |
std::string map_lines::add_key_item | ( | const std::string & | s | ) |
std::string map_lines::add_key_mons | ( | const std::string & | s | ) |
std::string map_lines::add_key_feat | ( | const std::string & | s | ) |
std::string map_lines::add_key_mask | ( | const std::string & | s | ) |
bool map_lines::in_bounds | ( | const coord_def & | c | ) | const |
void map_lines::extend | ( | int | min_width, | |
int | min_height, | |||
char | fill | |||
) |
bool map_lines::fill_zone | ( | travel_distance_grid_t & | tpd, | |
const coord_def & | start, | |||
const coord_def & | tl, | |||
const coord_def & | br, | |||
int | zone, | |||
const char * | wanted, | |||
const char * | passable | |||
) | const |
int map_lines::count_feature_in_box | ( | const coord_def & | tl, | |
const coord_def & | br, | |||
const char * | feat | |||
) | const |
void map_lines::fill_mask_matrix | ( | const std::string & | glyphs, | |
const coord_def & | tl, | |||
const coord_def & | br, | |||
Matrix< bool > & | flags | |||
) |
void map_lines::merge_subvault | ( | const coord_def & | tl, | |
const coord_def & | br, | |||
const Matrix< bool > & | mask, | |||
const map_def & | vault | |||
) |
friend class subst_spec [friend] |
friend class nsubst_spec [friend] |
friend class shuffle_spec [friend] |
friend class map_marker_spec [friend] |
friend class colour_spec [friend] |
friend class tile_spec [friend] |