#include <mapmark.h>
Public Member Functions | |
map_marker (map_marker_type type, const coord_def &pos) | |
virtual | ~map_marker () |
map_marker_type | get_type () const |
virtual map_marker * | clone () const =0 |
virtual void | activate (bool verbose=true) |
virtual void | write (writer &) const |
virtual void | read (reader &) |
virtual std::string | debug_describe () const =0 |
virtual std::string | property (const std::string &pname) const |
Static Public Member Functions | |
static map_marker * | read_marker (reader &) |
static map_marker * | parse_marker (const std::string &text, const std::string &ctx="") throw (std::string) |
Public Attributes | |
coord_def | pos |
Protected Types | |
typedef map_marker *(* | marker_reader )(reader &, map_marker_type) |
typedef map_marker *(* | marker_parser )(const std::string &, const std::string &) |
Protected Attributes | |
map_marker_type | type |
Static Protected Attributes | |
static marker_reader | readers [NUM_MAP_MARKER_TYPES] |
static marker_parser | parsers [NUM_MAP_MARKER_TYPES] |
typedef map_marker*(* map_marker::marker_reader)(reader &, map_marker_type) [protected] |
typedef map_marker*(* map_marker::marker_parser)(const std::string &, const std::string &) [protected] |
map_marker::map_marker | ( | map_marker_type | type, | |
const coord_def & | pos | |||
) |
map_marker::~map_marker | ( | ) | [virtual] |
map_marker_type map_marker::get_type | ( | ) | const [inline] |
virtual map_marker* map_marker::clone | ( | ) | const [pure virtual] |
Implemented in map_feature_marker, map_corruption_marker, map_tomb_marker, map_malign_gateway_marker, map_lua_marker, and map_wiz_props_marker.
void map_marker::activate | ( | bool | verbose = true |
) | [virtual] |
Reimplemented in map_lua_marker.
void map_marker::write | ( | writer & | outf | ) | const [virtual] |
Reimplemented in map_feature_marker, map_corruption_marker, map_tomb_marker, map_malign_gateway_marker, map_lua_marker, and map_wiz_props_marker.
void map_marker::read | ( | reader & | inf | ) | [virtual] |
Reimplemented in map_feature_marker, map_corruption_marker, map_tomb_marker, map_malign_gateway_marker, map_lua_marker, and map_wiz_props_marker.
virtual std::string map_marker::debug_describe | ( | ) | const [pure virtual] |
Implemented in map_feature_marker, map_corruption_marker, map_tomb_marker, map_malign_gateway_marker, map_lua_marker, and map_wiz_props_marker.
std::string map_marker::property | ( | const std::string & | pname | ) | const [virtual] |
Reimplemented in map_lua_marker, and map_wiz_props_marker.
map_marker * map_marker::read_marker | ( | reader & | inf | ) | [static] |
map_marker * map_marker::parse_marker | ( | const std::string & | text, | |
const std::string & | ctx = "" | |||
) | throw (std::string) [static] |
map_marker_type map_marker::type [protected] |
map_marker::marker_reader map_marker::readers [static, protected] |
map_marker::marker_parser map_marker::parsers [static, protected] |
Initial value:
{ &map_feature_marker::parse, &map_lua_marker::parse, NULL, NULL, NULL }