YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::MapReader Class Reference

#include <MapReader.hpp>

Inheritance diagram for yap::MapReader:
Collaboration diagram for yap::MapReader:

List of all members.

Public Member Functions

virtual ~MapReader ()
virtual void Visit (XmlReader &visitable)
- Public Member Functions inherited from yap::BaseReaderVisitor
virtual ~BaseReaderVisitor ()
virtual void Visit (IPacket &visitable)
virtual void Visit (DatabaseStream &visitable)
- Public Member Functions inherited from yap::IReaderVisitor
virtual ~IReaderVisitor ()

Protected Member Functions

 MapReader (Map &map, const String &xmlRootNodeName)
virtual void ReadStaticObjects (XmlReader &reader)
virtual void ReadDynamicObjects (XmlReader &reader)
- Protected Member Functions inherited from yap::BaseReaderVisitor
 BaseReaderVisitor ()

Protected Attributes

String xmlRootNodeName_

Private Member Functions

 DISALLOW_COPY (MapReader)

Private Attributes

Mapmap_

Static Private Attributes

static const String DEFAULT_XML_ID_NODE_NAME = "id"
static const String DEFAULT_XML_NAME_NODE_NAME = "name"
static const String DEFAULT_XML_WIDTH_NODE_NAME = "width"
static const String DEFAULT_XML_HEIGHT_NODE_NAME = "height"

Detailed Description

Definition at line 12 of file MapReader.hpp.


Constructor & Destructor Documentation

yap::MapReader::~MapReader ( )
virtual

Reimplemented in ycl::MapReader, and yse::MapReader.

Definition at line 24 of file MapReader.cpp.

yap::MapReader::MapReader ( Map map,
const String xmlRootNodeName 
)
protected

Definition at line 17 of file MapReader.cpp.


Member Function Documentation

yap::MapReader::DISALLOW_COPY ( MapReader  )
private
void yap::MapReader::ReadDynamicObjects ( XmlReader reader)
protectedvirtual

Reimplemented in yse::MapReader.

Definition at line 62 of file MapReader.cpp.

Here is the caller graph for this function:

void yap::MapReader::ReadStaticObjects ( XmlReader reader)
protectedvirtual

Reimplemented in ycl::MapReader, and yse::MapReader.

Definition at line 58 of file MapReader.cpp.

Here is the caller graph for this function:

void yap::MapReader::Visit ( XmlReader visitable)
virtual
Todo:
Integrate CollidableArea in xml loading (remove inclusion).

Reimplemented from yap::BaseReaderVisitor.

Reimplemented in ycl::MapReader, and yse::MapReader.

Definition at line 28 of file MapReader.cpp.

Here is the call graph for this function:


Member Data Documentation

const String yap::MapReader::DEFAULT_XML_HEIGHT_NODE_NAME = "height"
staticprivate

Definition at line 36 of file MapReader.hpp.

const String yap::MapReader::DEFAULT_XML_ID_NODE_NAME = "id"
staticprivate

Definition at line 33 of file MapReader.hpp.

const String yap::MapReader::DEFAULT_XML_NAME_NODE_NAME = "name"
staticprivate

Definition at line 34 of file MapReader.hpp.

const String yap::MapReader::DEFAULT_XML_WIDTH_NODE_NAME = "width"
staticprivate

Definition at line 35 of file MapReader.hpp.

Map& yap::MapReader::map_
private

Reimplemented in yse::MapReader, and ycl::MapReader.

Definition at line 38 of file MapReader.hpp.

String yap::MapReader::xmlRootNodeName_
protected

Definition at line 29 of file MapReader.hpp.


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