map_marker Class Reference

#include <mapmark.h>

Inheritance diagram for map_marker:

Inheritance graph
[legend]
Collaboration diagram for map_marker:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 map_marker (map_marker_type type, const coord_def &pos)
virtual ~map_marker ()
map_marker_type get_type () const
virtual map_markerclone () 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_markerread_marker (reader &)
static map_markerparse_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]


Member Typedef Documentation

typedef map_marker*(* map_marker::marker_parser)(const std::string &, const std::string &) [protected]


Constructor & Destructor Documentation

map_marker::map_marker ( map_marker_type  type,
const coord_def pos 
)

map_marker::~map_marker (  )  [virtual]


Member Function Documentation

map_marker_type map_marker::get_type (  )  const [inline]

virtual map_marker* map_marker::clone (  )  const [pure virtual]

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

virtual std::string map_marker::debug_describe (  )  const [pure virtual]

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]

Here is the call graph for this function:

map_marker * map_marker::parse_marker ( const std::string text,
const std::string ctx = "" 
) throw (std::string) [static]


Member Data Documentation

Initial value:


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

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