map_lines Class Reference

#include <mapdef.h>

List of all members.

Public Member Functions

 map_lines ()
 map_lines (const map_lines &)
 ~map_lines ()
map_linesoperator= (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_deffind_glyph (const std::string &glyphs) 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
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_mapspecmapspec_at (const coord_def &c) const
keyed_mapspecmapspec_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


Constructor & Destructor Documentation

map_lines::map_lines (  ) 

map_lines::map_lines ( const map_lines map  ) 

map_lines::~map_lines (  ) 

Here is the call graph for this function:


Member Function Documentation

map_lines & map_lines::operator= ( const map_lines map  ) 

bool map_lines::in_map ( const coord_def pos  )  const

Here is the call graph for this function:

void map_lines::add_line ( const std::string s  ) 

std::string map_lines::add_nsubst ( const std::string st  ) 

Here is the call graph for this function:

std::string map_lines::add_subst ( const std::string st  ) 

Here is the call graph for this function:

std::string map_lines::add_shuffle ( const std::string s  ) 

std::string map_lines::add_colour ( const std::string col  ) 

Here is the call graph for this function:

std::string map_lines::add_fproperty ( const std::string sub  ) 

Here is the call graph for this function:

std::string map_lines::add_fheight ( const std::string arg  ) 

Here is the call graph for this function:

void map_lines::clear_markers (  ) 

void map_lines::write_maplines ( writer outf  )  const

Here is the call graph for this function:

void map_lines::read_maplines ( reader inf  ) 

Here is the call graph for this function:

std::vector< coord_def > map_lines::find_glyph ( const std::string glyphs  )  const

Here is the call graph for this function:

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

Here is the call graph for this function:

coord_def map_lines::find_first_glyph ( int  glyph  )  const

Here is the call graph for this function:

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

Here is the call graph for this function:

bool map_lines::find_bounds ( int  glyph,
coord_def tl,
coord_def br 
) const

Here is the call graph for this function:

bool map_lines::find_bounds ( const char *  glyph_str,
coord_def tl,
coord_def br 
) const

Here is the call graph for this function:

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

Here is the call graph for this function:

int map_lines::glyph ( int  x,
int  y 
) const

int map_lines::glyph ( const coord_def c  )  const

Here is the call graph for this function:

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  ) 

Here is the call graph for this function:

void map_lines::hmirror (  ) 

void map_lines::vmirror (  ) 

Here is the call graph for this function:

void map_lines::clear (  ) 

Here is the call graph for this function:

void map_lines::add_marker ( map_marker marker  ) 

std::string map_lines::add_feature_marker ( const std::string desc  ) 

Here is the call graph for this function:

std::string map_lines::add_lua_marker ( const std::string key,
const lua_datum fn 
)

Here is the call graph for this function:

void map_lines::apply_markers ( const coord_def pos  ) 

Here is the call graph for this function:

void map_lines::apply_grid_overlay ( const coord_def pos  ) 

Here is the call graph for this function:

void map_lines::apply_overlays ( const coord_def pos  ) 

Here is the call graph for this function:

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

Here is the call graph for this function:

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  ) 

Here is the call graph for this function:

std::string map_lines::add_key_mons ( const std::string s  ) 

Here is the call graph for this function:

std::string map_lines::add_key_feat ( const std::string s  ) 

Here is the call graph for this function:

std::string map_lines::add_key_mask ( const std::string s  ) 

Here is the call graph for this function:

bool map_lines::in_bounds ( const coord_def c  )  const

Here is the call graph for this function:

void map_lines::extend ( int  min_width,
int  min_height,
char  fill 
)

Here is the call graph for this function:

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

Here is the call graph for this function:

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 
)

Here is the call graph for this function:

void map_lines::merge_subvault ( const coord_def tl,
const coord_def br,
const Matrix< bool > &  mask,
const map_def vault 
)

Here is the call graph for this function:


Friends And Related Function Documentation

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]


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

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