ManaPlus
|
Typedefs | |
typedef std::map< int, GroupInfo * > | GroupInfos |
typedef GroupInfos::iterator | GroupInfosIter |
Functions | |
void | load () |
void | unload () |
void | loadXmlFile (const std::string &fileName, const SkipError skipError) |
const std::string & | getName (const int id) |
const std::string & | getLongName (const int id) |
bool | getShowBadge (const int id) |
bool | getHighlightName (const int id) |
const std::string & | getBadge (const int id) |
const GroupInfo * | getGroup (const int id) |
bool | isAllowCommand (const ServerCommandTypeT command) |
typedef std::map<int, GroupInfo*> GroupDb::GroupInfos |
typedef GroupInfos::iterator GroupDb::GroupInfosIter |
const std::string & GroupDb::getBadge | ( | const int | id | ) |
Definition at line 388 of file groupdb.cpp.
References GroupInfo::badge, anonymous_namespace{groupdb.cpp}::mEmptyGroup, anonymous_namespace{groupdb.cpp}::mGroups, and reportAlways.
Referenced by Being::showGmBadge().
const GroupInfo * GroupDb::getGroup | ( | const int | id | ) |
Definition at line 399 of file groupdb.cpp.
References anonymous_namespace{groupdb.cpp}::mEmptyGroup, anonymous_namespace{groupdb.cpp}::mGroups, and reportAlways.
Referenced by PopupMenu::initPopup(), and isAllowCommand().
bool GroupDb::getHighlightName | ( | const int | id | ) |
Definition at line 377 of file groupdb.cpp.
References GroupInfo::highlightName, anonymous_namespace{groupdb.cpp}::mEmptyGroup, anonymous_namespace{groupdb.cpp}::mGroups, and reportAlways.
Referenced by Being::setGroupId(), and OnlinePlayer::setText().
const std::string & GroupDb::getLongName | ( | const int | id | ) |
Definition at line 355 of file groupdb.cpp.
References GroupInfo::longName, anonymous_namespace{groupdb.cpp}::mEmptyGroup, anonymous_namespace{groupdb.cpp}::mGroups, and reportAlways.
Referenced by BeingPopup::show().
const std::string & GroupDb::getName | ( | const int | id | ) |
Definition at line 344 of file groupdb.cpp.
References anonymous_namespace{groupdb.cpp}::mEmptyGroup, anonymous_namespace{groupdb.cpp}::mGroups, GroupInfo::name, and reportAlways.
Referenced by ItemDB::getNamesStr(), EAthena::HomunculusRecv::processHomunculusFood(), EAthena::PartyRecv::processPartyInfo(), TmwAthena::PartyRecv::processPartyInfo(), Graphics::setMainFlags(), OnlinePlayer::setText(), and StatusWindow::updateLevelLabel().
bool GroupDb::getShowBadge | ( | const int | id | ) |
Definition at line 366 of file groupdb.cpp.
References anonymous_namespace{groupdb.cpp}::mEmptyGroup, anonymous_namespace{groupdb.cpp}::mGroups, reportAlways, and GroupInfo::showBadge.
Referenced by OnlinePlayer::setText(), and Being::showGmBadge().
bool GroupDb::isAllowCommand | ( | const ServerCommandTypeT | command | ) |
Definition at line 410 of file groupdb.cpp.
References CAST_SIZE, Enable_true, getGroup(), Being::getGroupId(), Net::getNetworkType(), Being::isGM(), localPlayer, GroupInfo::mCommands, GroupInfo::mPermissions, ServerCommandEnable::Self, and ServerType::TMWATHENA.
Referenced by DialogsManager::playerDeath().
void GroupDb::load | ( | ) |
Definition at line 46 of file groupdb.cpp.
References Configuration::getStringValue(), loadXmlDir, loadXmlFile(), Logger::log1(), logger, anonymous_namespace{groupdb.cpp}::mLoaded, paths, SkipError_false, SkipError_true, and Net::unload().
Referenced by DbManager::loadDb().
void GroupDb::loadXmlFile | ( | const std::string & | fileName, |
const SkipError | skipError | ||
) |
Definition at line 256 of file groupdb.cpp.
References GroupInfo::badge, fileName, for_each_xml_child_node, XML::getBoolProperty(), XML::getProperty(), Configuration::getStringValue(), GroupInfo::highlightName, XML::langProperty(), loadSubNodes(), loadXmlFile(), Logger::log(), logger, GroupInfo::longName, anonymous_namespace{groupdb.cpp}::mGroups, GroupInfo::name, parseInherit(), paths, reportAlways, XML::Document::rootNode(), GroupInfo::showBadge, SkipError_true, and UseVirtFs_true.
void GroupDb::unload | ( | ) |
Definition at line 333 of file groupdb.cpp.
References FOR_EACH, Logger::log1(), logger, anonymous_namespace{groupdb.cpp}::mGroups, and anonymous_namespace{groupdb.cpp}::mLoaded.
Referenced by DbManager::unloadDb().