ManaPlus
|
Typedefs | |
typedef std::map< std::string, std::string > | Maps |
typedef Maps::iterator | MapIterator |
typedef std::map< std::string, MapInfo > | MapInfos |
typedef MapInfos::iterator | MapInfoIter |
typedef std::map< std::string, StringVect > | Atlases |
typedef Atlases::iterator | AtlasIter |
typedef Atlases::const_iterator | AtlasCIter |
Functions | |
void | readMap (xmlNode *const node) |
void | readAtlas (xmlNode *const node) |
void | load () |
void | loadRemapXmlFile (const std::string &fileName, const SkipError skipError) |
void | loadInfo (const std::string &fileName, const SkipError skipError) |
void | unload () |
const std::string | getMapName (const std::string &name) |
const MapInfo * | getMapAtlas (const std::string &name) |
const MapInfo * | getAtlas (const std::string &name) |
bool | isEmptyTileset (const std::string &name) |
Color information database.
typedef Atlases::const_iterator MapDB::AtlasCIter |
typedef std::map<std::string, StringVect> MapDB::Atlases |
typedef Atlases::iterator MapDB::AtlasIter |
typedef MapInfos::iterator MapDB::MapInfoIter |
typedef std::map<std::string, MapInfo> MapDB::MapInfos |
typedef Maps::iterator MapDB::MapIterator |
typedef std::map<std::string, std::string> MapDB::Maps |
const MapInfo * MapDB::getAtlas | ( | const std::string & | name | ) |
Definition at line 226 of file mapdb.cpp.
References Actions::info(), and anonymous_namespace{mapdb.cpp}::mAtlases.
Referenced by MapReader::loadEmptyAtlas().
const MapInfo * MapDB::getMapAtlas | ( | const std::string & | name | ) |
Definition at line 213 of file mapdb.cpp.
References Actions::info(), anonymous_namespace{mapdb.cpp}::mAtlases, and anonymous_namespace{mapdb.cpp}::mInfos.
const std::string MapDB::getMapName | ( | const std::string & | name | ) |
Definition at line 204 of file mapdb.cpp.
References anonymous_namespace{mapdb.cpp}::mMaps.
Referenced by Game::changeMap().
bool MapDB::isEmptyTileset | ( | const std::string & | name | ) |
Definition at line 238 of file mapdb.cpp.
References anonymous_namespace{mapdb.cpp}::mEmptyTilesets.
Referenced by MapReader::readTileset().
void MapDB::load | ( | ) |
Loads the map remap data from maps\remap.xml
.
Definition at line 47 of file mapdb.cpp.
References Configuration::getStringValue(), loadInfo(), loadRemapXmlFile(), loadXmlDir, Logger::log1(), logger, anonymous_namespace{mapdb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void MapDB::loadInfo | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 162 of file mapdb.cpp.
References fileName, for_each_xml_child_node, XML::getProperty(), readAtlas(), readMap(), XML::Document::rootNode(), and UseVirtFs_true.
Referenced by load().
void MapDB::loadRemapXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 65 of file mapdb.cpp.
References fileName, for_each_xml_child_node, XML::getProperty(), anonymous_namespace{mapdb.cpp}::mMaps, XML::Document::rootNode(), and UseVirtFs_true.
Referenced by load().
void MapDB::readAtlas | ( | xmlNode *const | node | ) |
Definition at line 125 of file mapdb.cpp.
References FOR_EACH, for_each_xml_child_node, FOR_EACHP, XML::getProperty(), Configuration::getStringValue(), Logger::log(), logger, anonymous_namespace{mapdb.cpp}::mAtlases, anonymous_namespace{mapdb.cpp}::mEmptyTilesets, and paths.
Referenced by loadInfo().
void MapDB::readMap | ( | xmlNode *const | node | ) |
Definition at line 105 of file mapdb.cpp.
References for_each_xml_child_node, XML::getProperty(), and anonymous_namespace{mapdb.cpp}::mInfos.
Referenced by loadInfo().
void MapDB::unload | ( | ) |
Clear the remap data
Definition at line 196 of file mapdb.cpp.
References Logger::log1(), logger, anonymous_namespace{mapdb.cpp}::mLoaded, and anonymous_namespace{mapdb.cpp}::mMaps.