![]() |
ManaPlus
|
Functions | |
| void | load () |
| void | unload () |
| void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
| void | addDefaultStats () |
| const std::vector< BasicStat > & | getBasicStats () |
| const std::vector< BasicStat > & | getStats (const std::string &page) |
| const std::vector< std::string > & | getPages () |
| void StatDb::addDefaultStats | ( | ) |
Definition at line 44 of file statdb.cpp.
References _, anonymous_namespace{statdb.cpp}::mBasicStats, Attributes::PLAYER_AGI, Attributes::PLAYER_DEX, Attributes::PLAYER_INT, Attributes::PLAYER_LUK, Attributes::PLAYER_STR, and Attributes::PLAYER_VIT.
Referenced by loadXmlFile().
| const std::vector< BasicStat > & StatDb::getBasicStats | ( | ) |
Definition at line 72 of file statdb.cpp.
References anonymous_namespace{statdb.cpp}::mBasicStats.
Referenced by StatsPageBasic::StatsPageBasic().
| const std::vector< std::string > & StatDb::getPages | ( | ) |
Definition at line 82 of file statdb.cpp.
References anonymous_namespace{statdb.cpp}::mPages.
Referenced by StatusWindow::addTabs().
| const std::vector< BasicStat > & StatDb::getStats | ( | const std::string & | page | ) |
Definition at line 77 of file statdb.cpp.
References anonymous_namespace{statdb.cpp}::mStats.
Referenced by StatsPage::StatsPage().
| void StatDb::load | ( | ) |
Definition at line 87 of file statdb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{statdb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
| void StatDb::loadXmlFile | ( | const std::string & | fileName, |
| const SkipError | skipError | ||
| ) |
Definition at line 171 of file statdb.cpp.
References _, addDefaultStats(), fileName, for_each_xml_child_node, XML::getProperty(), XML::langProperty(), loadBasicStats(), loadStats(), loadXmlFile(), Logger::log(), logger, anonymous_namespace{statdb.cpp}::mBasicStats, anonymous_namespace{statdb.cpp}::mStats, reportAlways, XML::Document::rootNode(), SkipError_false, and UseVirtFs_true.
| void StatDb::unload | ( | ) |
Definition at line 228 of file statdb.cpp.
References Logger::log1(), logger, anonymous_namespace{statdb.cpp}::mBasicStats, anonymous_namespace{statdb.cpp}::mLoaded, anonymous_namespace{statdb.cpp}::mPages, and anonymous_namespace{statdb.cpp}::mStats.
Referenced by DbManager::unloadDb().