ManaPlus
|
Functions | |
void | load () |
void | unload () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
BeingInfo * | get (const BeingTypeId id) |
Homunculus information database.
BeingInfo * HomunculusDB::get | ( | const BeingTypeId | id | ) |
Definition at line 144 of file homunculusdb.cpp.
References anonymous_namespace{homunculusdb.cpp}::mHomunculusInfos, reportAlways, toInt, and BeingInfo::unknown.
Referenced by BrowserBoxTools::replaceLinkCommands(), and Being::setSubtype().
void HomunculusDB::load | ( | ) |
Definition at line 43 of file homunculusdb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{homunculusdb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void HomunculusDB::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 56 of file homunculusdb.cpp.
References _, fileName, for_each_xml_child_node, fromInt, BeingInfo::getMaxHP(), XML::getProperty(), Configuration::getStringValue(), XML::langProperty(), loadXmlFile(), Logger::log(), logger, anonymous_namespace{homunculusdb.cpp}::mHomunculusInfos, anonymous_namespace{homunculusdb.cpp}::mLoaded, BlockType::NONE, paths, BeingCommon::readAiAttributes(), BeingCommon::readBasicAttributes(), BeingCommon::readObjectNodes(), BeingCommon::readWalkingAttributes(), XML::Document::rootNode(), BeingInfo::setBlockType(), BeingInfo::setColorsList(), BeingInfo::setDeadSortOffsetY(), BeingInfo::setDisplay(), BeingInfo::setMaxHP(), BeingInfo::setName(), BeingInfo::setStaticMaxHP(), and UseVirtFs_true.
void HomunculusDB::unload | ( | ) |
Definition at line 135 of file homunculusdb.cpp.
References delete_all(), Logger::log1(), logger, anonymous_namespace{homunculusdb.cpp}::mHomunculusInfos, and anonymous_namespace{homunculusdb.cpp}::mLoaded.
Referenced by DbManager::unloadDb().