ManaPlus
|
Typedefs | |
typedef HorseInfos::iterator | HorseInfosIterator |
Functions | |
void | load () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
void | loadSpecialXmlFile (const std::string &fileName, const SkipError skipError) |
void | unload () |
HorseInfo * | get (const int id, const bool allowNull) |
int | size () |
Horse information database.
typedef HorseInfos::iterator HorseDB::HorseInfosIterator |
HorseInfo * HorseDB::get | ( | const int | id, |
const bool | allowNull | ||
) |
Definition at line 285 of file horsedb.cpp.
References anonymous_namespace{horsedb.cpp}::mHorseInfos, anonymous_namespace{horsedb.cpp}::mUnknown, and reportAlways.
Referenced by Being::setHorse().
void HorseDB::load | ( | ) |
Definition at line 60 of file horsedb.cpp.
References HorseInfo::downSprites, Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{horsedb.cpp}::mLoaded, anonymous_namespace{horsedb.cpp}::mUnknown, pathJoin(), paths, SkipError_false, SkipError_true, SpriteReference::sprite, Net::unload(), HorseInfo::upSprites, and SpriteReference::variant.
Referenced by DbManager::loadDb().
void HorseDB::loadSpecialXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
void HorseDB::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 149 of file horsedb.cpp.
References fileName, for_each_xml_child_node, XML::getProperty(), Configuration::getStringValue(), loadDownSprites(), loadRiderOffset(), loadUpSprites(), loadXmlFile(), Logger::log(), logger, anonymous_namespace{horsedb.cpp}::mHorseInfos, paths, reportAlways, XML::Document::rootNode(), and UseVirtFs_true.
int HorseDB::size | ( | ) |
Definition at line 300 of file horsedb.cpp.
References anonymous_namespace{horsedb.cpp}::mHorseInfos.
void HorseDB::unload | ( | ) |
Definition at line 266 of file horsedb.cpp.
References delete_all(), HorseInfo::downSprites, FOR_EACH, Logger::log1(), logger, anonymous_namespace{horsedb.cpp}::mHorseInfos, anonymous_namespace{horsedb.cpp}::mLoaded, anonymous_namespace{horsedb.cpp}::mUnknown, and HorseInfo::upSprites.
Referenced by DbManager::unloadDb().