ManaPlus
|
Functions | |
void | load () |
void | unload () |
void | loadMinMax (const xmlNodePtr node, unsigned *const min, unsigned *const max) |
unsigned | getMinHairColor () |
unsigned | getMaxHairColor () |
unsigned | getMinHairStyle () |
unsigned | getMaxHairStyle () |
unsigned | getMinStat () |
unsigned | getMaxStat () |
unsigned | getSumStat () |
unsigned | getMinLook () |
unsigned | getMaxLook () |
unsigned | getMinRace () |
unsigned | getMaxRace () |
const std::vector< BeingSlot > & | getDefaultItems () |
Char information database.
const std::vector< BeingSlot > & CharDB::getDefaultItems | ( | ) |
Definition at line 187 of file chardb.cpp.
References anonymous_namespace{chardb.cpp}::mDefaultItems.
Referenced by CharCreateDialog::CharCreateDialog().
unsigned CharDB::getMaxHairColor | ( | ) |
Definition at line 137 of file chardb.cpp.
References anonymous_namespace{chardb.cpp}::mMaxHairColor.
unsigned CharDB::getMaxHairStyle | ( | ) |
Definition at line 147 of file chardb.cpp.
References anonymous_namespace{chardb.cpp}::mMaxHairStyle.
unsigned CharDB::getMaxLook | ( | ) |
unsigned CharDB::getMaxRace | ( | ) |
unsigned CharDB::getMaxStat | ( | ) |
Definition at line 157 of file chardb.cpp.
References anonymous_namespace{chardb.cpp}::mMaxStat.
Referenced by TmwAthena::CharServerHandler::setCharCreateDialog().
unsigned CharDB::getMinHairColor | ( | ) |
Definition at line 132 of file chardb.cpp.
References anonymous_namespace{chardb.cpp}::mMinHairColor.
unsigned CharDB::getMinHairStyle | ( | ) |
Definition at line 142 of file chardb.cpp.
References anonymous_namespace{chardb.cpp}::mMinHairStyle.
unsigned CharDB::getMinLook | ( | ) |
unsigned CharDB::getMinRace | ( | ) |
unsigned CharDB::getMinStat | ( | ) |
Definition at line 152 of file chardb.cpp.
References anonymous_namespace{chardb.cpp}::mMinStat.
Referenced by TmwAthena::CharServerHandler::setCharCreateDialog().
unsigned CharDB::getSumStat | ( | ) |
Definition at line 162 of file chardb.cpp.
References anonymous_namespace{chardb.cpp}::mSumStat.
Referenced by TmwAthena::CharServerHandler::setCharCreateDialog().
void CharDB::load | ( | ) |
Loads the chars data.
Definition at line 47 of file chardb.cpp.
References CardsList::cards, BeingSlot::cardsId, for_each_xml_child_node, XML::getProperty(), Configuration::getStringValue(), loadMinMax(), Logger::log(), Logger::log1(), logger, maxCards, anonymous_namespace{chardb.cpp}::mDefaultItems, anonymous_namespace{chardb.cpp}::mLoaded, anonymous_namespace{chardb.cpp}::mMaxHairColor, anonymous_namespace{chardb.cpp}::mMaxHairStyle, anonymous_namespace{chardb.cpp}::mMaxLook, anonymous_namespace{chardb.cpp}::mMaxRace, anonymous_namespace{chardb.cpp}::mMaxStat, anonymous_namespace{chardb.cpp}::mMinHairColor, anonymous_namespace{chardb.cpp}::mMinHairStyle, anonymous_namespace{chardb.cpp}::mMinLook, anonymous_namespace{chardb.cpp}::mMinRace, anonymous_namespace{chardb.cpp}::mMinStat, anonymous_namespace{chardb.cpp}::mSumStat, paths, XML::Document::rootNode(), SkipError_false, BeingSlot::spriteId, strprintf(), Net::unload(), and UseVirtFs_true.
Referenced by DbManager::loadDb().
void CharDB::loadMinMax | ( | const xmlNodePtr | node, |
unsigned *const | min, | ||
unsigned *const | max | ||
) |
void CharDB::unload | ( | ) |
Clear the chars data
Definition at line 125 of file chardb.cpp.
References Logger::log1(), logger, and anonymous_namespace{chardb.cpp}::mLoaded.
Referenced by DbManager::unloadDb().