|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <GuildMgr.h>
Public Member Functions | |
| void | AddGuild (Guild *guild) |
| uint32 | GenerateGuildId () |
| Guild * | GetGuildByGuid (uint64 guid) const |
| Guild * | GetGuildById (uint32 guildId) const |
| Guild * | GetGuildByLeader (uint64 guid) const |
| Guild * | GetGuildByName (std::string const &guildName) const |
| std::string | GetGuildNameById (uint32 guildId) const |
| std::vector< GuildReward > const & | GetGuildRewards () const |
| uint32 | GetXPForGuildLevel (uint8 level) const |
| void | LoadGuildRewards () |
| void | LoadGuilds () |
| void | LoadGuildXpForLevel () |
| void | RemoveGuild (uint32 guildId) |
| void | ResetReputationCaps () |
| void | ResetTimes (bool week) |
| void | SaveGuilds () |
| void | SetNextGuildId (uint32 Id) |
Protected Types | |
| typedef UNORDERED_MAP< uint32, Guild * > | GuildContainer |
Protected Attributes | |
| std::vector< GuildReward > | GuildRewards |
| GuildContainer | GuildStore |
| std::vector< uint64 > | GuildXPperLevel |
| uint32 | NextGuildId |
Private Member Functions | |
| GuildMgr () | |
| ~GuildMgr () | |
Friends | |
| class | Skyfire::Singleton< GuildMgr, Skyfire::NullMutex > |
Definition at line 12 of file GuildMgr.h.
|
protected |
Definition at line 46 of file GuildMgr.h.
|
private |
Definition at line 9 of file GuildMgr.cpp.
References NextGuildId.
|
private |
Definition at line 12 of file GuildMgr.cpp.
References GuildStore.
| void GuildMgr::AddGuild | ( | Guild * | guild | ) |
Definition at line 18 of file GuildMgr.cpp.
References Guild::GetId(), and GuildStore.
Referenced by LoadGuilds().
| uint32 GuildMgr::GenerateGuildId | ( | ) |
Definition at line 34 of file GuildMgr.cpp.
References ERROR_EXIT_CODE, NextGuildId, SF_LOG_ERROR, and World::StopNow().
Referenced by ResetReputationCaps().
Definition at line 54 of file GuildMgr.cpp.
References GetGuildById(), GUID_LOPART(), and IS_GUILD_GUID().
Definition at line 45 of file GuildMgr.cpp.
References GuildStore.
Referenced by GetGuildByGuid(), GetGuildNameById(), and LoadGuilds().
Definition at line 87 of file GuildMgr.cpp.
References GuildStore.
| Guild * GuildMgr::GetGuildByName | ( | std::string const & | guildName | ) | const |
Definition at line 65 of file GuildMgr.cpp.
References GuildStore.
| std::string GuildMgr::GetGuildNameById | ( | uint32 | guildId | ) | const |
Definition at line 79 of file GuildMgr.cpp.
References GetGuildById().
|
inline |
Definition at line 42 of file GuildMgr.h.
References GuildRewards.
Definition at line 96 of file GuildMgr.cpp.
References GuildXPperLevel.
| void GuildMgr::LoadGuildRewards | ( | ) |
Definition at line 494 of file GuildMgr.cpp.
References GuildReward::Achievements, Tokenizer::begin(), Tokenizer::end(), GuildReward::Entry, Field::GetCString(), Field::GetInt32(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), Field::GetUInt64(), Field::GetUInt8(), GuildRewards, MAX_REPUTATION_RANK, GuildReward::Price, GuildReward::Racemask, sAchievementMgr, SF_LOG_ERROR, SF_LOG_INFO, sObjectMgr, GuildReward::Standing, and WorldDatabase.
| void GuildMgr::LoadGuilds | ( | ) |
Definition at line 103 of file GuildMgr.cpp.
References AddGuild(), CHAR_SEL_GUILD_ACHIEVEMENT, CHAR_SEL_GUILD_ACHIEVEMENT_CRITERIA, CharacterDatabase, CONFIG_GUILD_BANK_EVENT_LOG_COUNT, CONFIG_GUILD_EVENT_LOG_COUNT, CONFIG_GUILD_NEWS_LOG_COUNT, GetGuildById(), getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt32(), GuildStore, Guild::LoadFromDB(), PreparedStatement::setUInt32(), SF_LOG_INFO, sWorld, and Guild::Validate().
| void GuildMgr::LoadGuildXpForLevel | ( | ) |
Definition at line 445 of file GuildMgr.cpp.
References CONFIG_GUILD_MAX_LEVEL, getMSTime(), GetMSTimeDiffToNow(), Field::GetUInt64(), Field::GetUInt8(), GuildXPperLevel, SF_LOG_ERROR, SF_LOG_INFO, sWorld, and WorldDatabase.
| void GuildMgr::RemoveGuild | ( | uint32 | guildId | ) |
Definition at line 23 of file GuildMgr.cpp.
References GuildStore.
| void GuildMgr::ResetReputationCaps | ( | ) |
References GenerateGuildId(), and ResetReputationCaps().
Referenced by ResetReputationCaps().
| void GuildMgr::ResetTimes | ( | bool | week | ) |
Definition at line 556 of file GuildMgr.cpp.
References CHAR_DEL_GUILD_MEMBER_WITHDRAW, CHAR_UPD_GUILD_RESET_TODAY_EXPERIENCE, CharacterDatabase, and GuildStore.
| void GuildMgr::SaveGuilds | ( | ) |
Definition at line 28 of file GuildMgr.cpp.
References GuildStore.
|
inline |
Definition at line 39 of file GuildMgr.h.
References NextGuildId, and SetNextGuildId().
Referenced by SetNextGuildId().
|
friend |
Definition at line 1 of file GuildMgr.h.
|
protected |
Definition at line 50 of file GuildMgr.h.
Referenced by GetGuildRewards(), and LoadGuildRewards().
|
protected |
Definition at line 48 of file GuildMgr.h.
Referenced by AddGuild(), GetGuildById(), GetGuildByLeader(), GetGuildByName(), LoadGuilds(), RemoveGuild(), ResetTimes(), SaveGuilds(), and ~GuildMgr().
|
protected |
Definition at line 49 of file GuildMgr.h.
Referenced by GetXPForGuildLevel(), and LoadGuildXpForLevel().
|
protected |
Definition at line 47 of file GuildMgr.h.
Referenced by GenerateGuildId(), GuildMgr(), and SetNextGuildId().