Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
Guild Class Reference

#include <Guild.h>

Collaboration diagram for Guild:

Classes

class  BankEventLogEntry
class  BankMoveItemData
class  BankTab
class  EventLogEntry
class  LogEntry
class  LogHolder
class  Member
class  MoveItemData
class  NewsLogEntry
class  PlayerMoveItemData
class  RankInfo

Public Member Functions

void AddGuildNews (uint8 type, uint64 guid, uint32 flags, uint32 value)
bool AddMember (uint64 guid, uint8 rankId=GUILD_RANK_NONE)
void BroadcastAddonToGuild (WorldSession *session, bool officerOnly, std::string const &msg, std::string const &prefix) const
void BroadcastPacket (WorldPacket *packet) const
void BroadcastPacketToRank (WorldPacket *packet, uint8 rankId) const
void BroadcastToGuild (WorldSession *session, bool officerOnly, std::string const &msg, Language language=Language::LANG_UNIVERSAL) const
template<class Do>
void BroadcastWorker (Do &_do, Player *except=NULL)
bool ChangeMemberRank (uint64 guid, uint8 newRank)
bool Create (Player *pLeader, std::string const &name)
void DeleteMember (uint64 guid, bool isDisbanding=false, bool isKicked=false, bool canDeleteGuild=false)
void Disband ()
AchievementMgr< Guild > & GetAchievementMgr ()
AchievementMgr< Guild > const & GetAchievementMgr () const
EmblemInfo const & GetEmblemInfo () const
uint64 GetExperience () const
uint64 GetGUID () const
uint32 GetId () const
std::string const & GetInfo () const
uint64 GetLeaderGUID () const
uint8 GetLevel () const
uint32 GetMembersCount ()
std::string const & GetMOTD () const
std::string const & GetName () const
uint64 GetTodayExperience () const
void GiveXP (uint32 xp, Player *source)
 Guild ()
void HandleAcceptMember (WorldSession *session)
void HandleAddNewRank (WorldSession *session, std::string const &name)
void HandleBuyBankTab (WorldSession *session, uint8 tabId)
void HandleDisband (WorldSession *session)
void HandleGuildPartyRequest (WorldSession *session)
void HandleInviteMember (WorldSession *session, std::string const &name)
void HandleLeaveMember (WorldSession *session)
void HandleMemberDepositMoney (WorldSession *session, uint64 amount, bool cashFlow=false)
void HandleMemberLogout (WorldSession *session)
bool HandleMemberWithdrawMoney (WorldSession *session, uint64 amount, bool repair=false)
void HandleNewsSetSticky (WorldSession *session, uint32 newsId, bool sticky)
void HandleQuery (WorldSession *session)
void HandleRemoveMember (WorldSession *session, uint64 guid)
void HandleRemoveRank (WorldSession *session, uint8 rankId)
void HandleReplaceGuildMaster (WorldSession *session)
void HandleRoster (WorldSession *session=NULL)
void HandleSetBankTabInfo (WorldSession *session, uint8 tabId, std::string const &name, std::string const &icon)
void HandleSetBankTabNote (WorldSession *session, uint32 tabId, std::string const &note)
void HandleSetEmblem (WorldSession *session, const EmblemInfo &emblemInfo)
void HandleSetInfo (WorldSession *session, std::string const &info)
void HandleSetMemberNote (WorldSession *session, std::string const &note, uint64 guid, bool isPublic)
void HandleSetMemberRank (WorldSession *session, uint64 guid, uint64 setterGuid, uint32 rank)
void HandleSetMOTD (WorldSession *session, std::string const &motd)
void HandleSetNewGuildMaster (WorldSession *session, std::string const &name)
void HandleSetRankInfo (WorldSession *session, uint8 rankId, std::string const &name, uint32 rights, uint32 moneyPerDay, GuildBankRightsAndSlotsVec const &rightsAndSlots)
void HandleUpdateMemberRank (WorldSession *session, uint64 guid, bool demote)
bool HasAchieved (uint32 achievementId) const
bool IsMember (uint64 guid) const
bool LoadBankEventLogFromDB (Field *fields)
bool LoadBankItemFromDB (Field *fields)
void LoadBankRightFromDB (Field *fields)
void LoadBankTabFromDB (Field *fields)
bool LoadEventLogFromDB (Field *fields)
bool LoadFromDB (Field *fields)
void LoadGuildNewsLogFromDB (Field *fields)
bool LoadMemberFromDB (Field *fields)
void LoadRankFromDB (Field *fields)
void MassInviteToEvent (WorldSession *session, uint32 minLevel, uint32 maxLevel, uint32 minRank)
void OnPlayerStatusChange (Player *player, uint32 flag, bool state)
void ResetTimes (bool weekly)
void SaveToDB ()
void SendBankList (WorldSession *session, uint8 tabId, bool withContent, bool withTabInfo) const
void SendBankLog (WorldSession *session, uint8 tabId) const
void SendBankTabText (WorldSession *session, uint8 tabId) const
void SendEventLog (WorldSession *session) const
void SendGuildRankInfo (WorldSession *session) const
void SendGuildXP (WorldSession *session=NULL) const
void SendLoginInfo (WorldSession *session)
void SendMoneyInfo (WorldSession *session) const
void SendNewsUpdate (WorldSession *session)
void SendPermissions (WorldSession *session) const
void SetBankTabText (uint8 tabId, std::string const &text)
bool SetName (std::string const &name)
void SwapItems (Player *player, uint8 tabId, uint8 slotId, uint8 destTabId, uint8 destSlotId, uint32 splitedAmount)
void SwapItemsWithInventory (Player *player, bool toChar, uint8 tabId, uint8 slotId, uint8 playerBag, uint8 playerSlotId, uint32 splitedAmount)
void UpdateAchievementCriteria (AchievementCriteriaTypes type, uint64 miscValue1, uint64 miscValue2, uint64 miscValue3, Unit *unit, Player *player)
void UpdateMemberData (Player *player, uint8 dataid, uint32 value)
bool Validate ()
 ~Guild ()

Static Public Member Functions

static void SendCommandResult (WorldSession *session, GuildCommandType type, GuildCommandError errCode, std::string const &param="")
static void SendSaveEmblemResult (WorldSession *session, GuildEmblemError errCode)

Protected Attributes

uint64 _experience
uint8 _level
uint64 _todayExperience
uint32 m_accountsNumber
AchievementMgr< Guildm_achievementMgr
LogHolderm_bankEventLog [GUILD_BANK_MAX_TABS+1]
uint64 m_bankMoney
BankTabs m_bankTabs
time_t m_createdDate
EmblemInfo m_emblemInfo
LogHolderm_eventLog
uint32 m_id
std::string m_info
uint64 m_leaderGuid
Members m_members
std::string m_motd
std::string m_name
LogHolderm_newsLog
Ranks m_ranks

Private Types

typedef std::vector< BankTab * > BankTabs
typedef std::list< LogEntry * > GuildLog
typedef UNORDERED_MAP< uint32, Member * > Members
typedef std::vector< RankInfoRanks

Private Member Functions

void _BroadcastEvent (GuildEvents guildEvent, uint64 guid, const char *param1=NULL, const char *param2=NULL, const char *param3=NULL) const
void _CreateDefaultGuildRanks (LocaleConstant loc)
void _CreateLogHolders ()
void _CreateNewBankTab ()
bool _CreateRank (std::string const &name, uint32 rights)
void _DeleteBankItems (SQLTransaction &trans, bool removeItemsFromDB=false)
void _DeleteMemberFromDB (uint32 lowguid) const
bool _DoItemsMove (MoveItemData *pSrc, MoveItemData *pDest, bool sendError, uint32 splitedAmount=0)
Item_GetItem (uint8 tabId, uint8 slotId) const
uint8 _GetLowestRankId () const
int32 _GetMemberRemainingMoney (Member const *member) const
int32 _GetMemberRemainingSlots (Member const *member, uint8 tabId) const
uint8 _GetPurchasedTabsSize () const
int32 _GetRankBankMoneyPerDay (uint8 rankId) const
int8 _GetRankBankTabRights (uint8 rankId, uint8 tabId) const
int32 _GetRankBankTabSlotsPerDay (uint8 rankId, uint8 tabId) const
std::string _GetRankName (uint8 rankId) const
uint32 _GetRankRights (uint8 rankId) const
uint8 _GetRanksSize () const
bool _HasRankRight (Player const *player, uint32 right) const
bool _IsLeader (Player *player) const
void _LogBankEvent (SQLTransaction &trans, GuildBankEventLogTypes eventType, uint8 tabId, uint32 playerGuid, uint32 itemOrMoney, uint16 itemStackCount=0, uint8 destTabId=0)
void _LogEvent (GuildEventLogTypes eventType, uint32 playerGuid1, uint32 playerGuid2=0, uint8 newRank=0)
bool _MemberHasTabRights (uint64 guid, uint8 tabId, uint32 rights) const
bool _ModifyBankMoney (SQLTransaction &trans, uint64 amount, bool add)
void _MoveItems (MoveItemData *pSrc, MoveItemData *pDest, uint32 splitedAmount)
void _RemoveItem (SQLTransaction &trans, uint8 tabId, uint8 slotId)
void _SendBankContentUpdate (MoveItemData *pSrc, MoveItemData *pDest) const
void _SendBankContentUpdate (uint8 tabId, SlotIds slots) const
void _SendRemovePlayerFromGuild (ObjectGuid removedGuid, std::string const &removedName, Player const *remover) const
void _SendSetNewGuildMaster (Member const *guildMaster, Member const *newGuildMaster, bool replace) const
void _SetLeaderGUID (Member *pLeader)
void _SetRankBankMoneyPerDay (uint8 rankId, uint32 moneyPerDay)
void _SetRankBankTabRightsAndSlots (uint8 rankId, GuildBankRightsAndSlots rightsAndSlots, bool saveToDB=true)
void _UpdateAccountsNumber ()
void _UpdateMemberWithdrawSlots (SQLTransaction &trans, uint64 guid, uint8 tabId)
BankTabGetBankTab (uint8 tabId)
const BankTabGetBankTab (uint8 tabId) const
MemberGetMember (std::string const &name)
MemberGetMember (uint64 guid)
const MemberGetMember (uint64 guid) const
RankInfoGetRankInfo (uint8 rankId)
const RankInfoGetRankInfo (uint8 rankId) const
void SendGuildRanksUpdate (uint64 setterGuid, uint64 targetGuid, uint32 rank)
void SendGuildReputationWeeklyCap (WorldSession *session, uint32 reputation) const

Detailed Description

Definition at line 323 of file Guild.h.

Member Typedef Documentation

◆ BankTabs

typedef std::vector<BankTab*> Guild::BankTabs
private

Definition at line 742 of file Guild.h.

◆ GuildLog

typedef std::list<LogEntry*> Guild::GuildLog
private

Definition at line 540 of file Guild.h.

◆ Members

Definition at line 740 of file Guild.h.

◆ Ranks

typedef std::vector<RankInfo> Guild::Ranks
private

Definition at line 741 of file Guild.h.

Constructor & Destructor Documentation

◆ Guild()

◆ ~Guild()

Guild::~Guild ( )

Member Function Documentation

◆ _BroadcastEvent()

void Guild::_BroadcastEvent ( GuildEvents guildEvent,
uint64 guid,
const char * param1 = NULL,
const char * param2 = NULL,
const char * param3 = NULL ) const
private

◆ _CreateDefaultGuildRanks()

◆ _CreateLogHolders()

void Guild::_CreateLogHolders ( )
private

◆ _CreateNewBankTab()

◆ _CreateRank()

bool Guild::_CreateRank ( std::string const & name,
uint32 rights )
private

◆ _DeleteBankItems()

void Guild::_DeleteBankItems ( SQLTransaction & trans,
bool removeItemsFromDB = false )
private

Definition at line 3120 of file Guild.cpp.

References _GetPurchasedTabsSize(), and m_bankTabs.

Referenced by Disband(), and ~Guild().

◆ _DeleteMemberFromDB()

void Guild::_DeleteMemberFromDB ( uint32 lowguid) const
inlineprivate

Definition at line 935 of file Guild.h.

References CHAR_DEL_GUILD_MEMBER, CharacterDatabase, and PreparedStatement::setUInt32().

Referenced by DeleteMember(), and LoadMemberFromDB().

◆ _DoItemsMove()

◆ _GetItem()

Item * Guild::_GetItem ( uint8 tabId,
uint8 slotId ) const
inlineprivate

Definition at line 3305 of file Guild.cpp.

References GetBankTab().

◆ _GetLowestRankId()

uint8 Guild::_GetLowestRankId ( ) const
inlineprivate

Definition at line 908 of file Guild.h.

References m_ranks.

Referenced by AddMember(), ChangeMemberRank(), HandleReplaceGuildMaster(), HandleUpdateMemberRank(), and Validate().

◆ _GetMemberRemainingMoney()

◆ _GetMemberRemainingSlots()

◆ _GetPurchasedTabsSize()

◆ _GetRankBankMoneyPerDay()

int32 Guild::_GetRankBankMoneyPerDay ( uint8 rankId) const
inlineprivate

Definition at line 3193 of file Guild.cpp.

References GetRankInfo().

Referenced by _GetMemberRemainingMoney(), and SendPermissions().

◆ _GetRankBankTabRights()

int8 Guild::_GetRankBankTabRights ( uint8 rankId,
uint8 tabId ) const
inlineprivate

Definition at line 3208 of file Guild.cpp.

References GetRankInfo().

Referenced by _GetMemberRemainingSlots(), _MemberHasTabRights(), and SendPermissions().

◆ _GetRankBankTabSlotsPerDay()

int32 Guild::_GetRankBankTabSlotsPerDay ( uint8 rankId,
uint8 tabId ) const
inlineprivate

Definition at line 3200 of file Guild.cpp.

References _GetPurchasedTabsSize(), and GetRankInfo().

Referenced by _GetMemberRemainingSlots(), and _UpdateMemberWithdrawSlots().

◆ _GetRankName()

std::string Guild::_GetRankName ( uint8 rankId) const
inlineprivate

Definition at line 3179 of file Guild.cpp.

References GetRankInfo().

Referenced by HandleUpdateMemberRank().

◆ _GetRankRights()

uint32 Guild::_GetRankRights ( uint8 rankId) const
inlineprivate

Definition at line 3186 of file Guild.cpp.

References GetRankInfo().

Referenced by _GetMemberRemainingMoney(), _HasRankRight(), and SendPermissions().

◆ _GetRanksSize()

uint8 Guild::_GetRanksSize ( ) const
inlineprivate

◆ _HasRankRight()

◆ _IsLeader()

◆ _LogBankEvent()

void Guild::_LogBankEvent ( SQLTransaction & trans,
GuildBankEventLogTypes eventType,
uint8 tabId,
uint32 playerGuid,
uint32 itemOrMoney,
uint16 itemStackCount = 0,
uint8 destTabId = 0 )
private

◆ _LogEvent()

void Guild::_LogEvent ( GuildEventLogTypes eventType,
uint32 playerGuid1,
uint32 playerGuid2 = 0,
uint8 newRank = 0 )
inlineprivate

◆ _MemberHasTabRights()

bool Guild::_MemberHasTabRights ( uint64 guid,
uint8 tabId,
uint32 rights ) const
inlineprivate

Definition at line 3261 of file Guild.cpp.

References _GetRankBankTabRights(), GetMember(), GR_GUILDMASTER, and m_leaderGuid.

Referenced by _SendBankContentUpdate(), and SendBankList().

◆ _ModifyBankMoney()

bool Guild::_ModifyBankMoney ( SQLTransaction & trans,
uint64 amount,
bool add )
private

◆ _MoveItems()

◆ _RemoveItem()

void Guild::_RemoveItem ( SQLTransaction & trans,
uint8 tabId,
uint8 slotId )
inlineprivate

Definition at line 3312 of file Guild.cpp.

References GetBankTab().

◆ _SendBankContentUpdate() [1/2]

◆ _SendBankContentUpdate() [2/2]

◆ _SendRemovePlayerFromGuild()

void Guild::_SendRemovePlayerFromGuild ( ObjectGuid removedGuid,
std::string const & removedName,
Player const * remover ) const
private

◆ _SendSetNewGuildMaster()

◆ _SetLeaderGUID()

◆ _SetRankBankMoneyPerDay()

void Guild::_SetRankBankMoneyPerDay ( uint8 rankId,
uint32 moneyPerDay )
private

Definition at line 3164 of file Guild.cpp.

References GetRankInfo().

Referenced by HandleSetRankInfo().

◆ _SetRankBankTabRightsAndSlots()

void Guild::_SetRankBankTabRightsAndSlots ( uint8 rankId,
GuildBankRightsAndSlots rightsAndSlots,
bool saveToDB = true )
private

◆ _UpdateAccountsNumber()

void Guild::_UpdateAccountsNumber ( )
private

Definition at line 3098 of file Guild.cpp.

References m_accountsNumber, and m_members.

Referenced by AddMember(), DeleteMember(), and Validate().

◆ _UpdateMemberWithdrawSlots()

void Guild::_UpdateMemberWithdrawSlots ( SQLTransaction & trans,
uint64 guid,
uint8 tabId )
inlineprivate

Definition at line 3250 of file Guild.cpp.

References _GetRankBankTabSlotsPerDay(), GetMember(), and GR_GUILDMASTER.

◆ AddGuildNews()

void Guild::AddGuildNews ( uint8 type,
uint64 guid,
uint32 flags,
uint32 value )

◆ AddMember()

◆ BroadcastAddonToGuild()

void Guild::BroadcastAddonToGuild ( WorldSession * session,
bool officerOnly,
std::string const & msg,
std::string const & prefix ) const

◆ BroadcastPacket()

◆ BroadcastPacketToRank()

void Guild::BroadcastPacketToRank ( WorldPacket * packet,
uint8 rankId ) const

◆ BroadcastToGuild()

◆ BroadcastWorker()

template<class Do>
void Guild::BroadcastWorker ( Do & _do,
Player * except = NULL )
inline

Definition at line 830 of file Guild.h.

References m_members.

◆ ChangeMemberRank()

bool Guild::ChangeMemberRank ( uint64 guid,
uint8 newRank )

◆ Create()

◆ DeleteMember()

◆ Disband()

◆ GetAchievementMgr() [1/2]

AchievementMgr< Guild > & Guild::GetAchievementMgr ( )
inline

Definition at line 853 of file Guild.h.

References m_achievementMgr.

Referenced by WorldSession::HandleGuildFinderBrowse().

◆ GetAchievementMgr() [2/2]

AchievementMgr< Guild > const & Guild::GetAchievementMgr ( ) const
inline

Definition at line 854 of file Guild.h.

References m_achievementMgr.

◆ GetBankTab() [1/2]

BankTab * Guild::GetBankTab ( uint8 tabId)
inlineprivate

◆ GetBankTab() [2/2]

const BankTab * Guild::GetBankTab ( uint8 tabId) const
inlineprivate

Definition at line 912 of file Guild.h.

References m_bankTabs.

◆ GetEmblemInfo()

EmblemInfo const & Guild::GetEmblemInfo ( ) const
inline

Definition at line 864 of file Guild.h.

References m_emblemInfo.

Referenced by WorldSession::HandleGuildFinderBrowse().

◆ GetExperience()

uint64 Guild::GetExperience ( ) const
inline

Definition at line 859 of file Guild.h.

References _experience.

Referenced by GiveXP(), SaveToDB(), SendGuildXP(), and Player::SendInspectResult().

◆ GetGUID()

◆ GetId()

uint32 Guild::GetId ( ) const
inline

◆ GetInfo()

std::string const & Guild::GetInfo ( ) const
inline

Definition at line 762 of file Guild.h.

References m_info.

Referenced by LuaGuild::GetInfo().

◆ GetLeaderGUID()

uint64 Guild::GetLeaderGUID ( ) const
inline

◆ GetLevel()

◆ GetMember() [1/3]

Member * Guild::GetMember ( std::string const & name)
inlineprivate

Definition at line 926 of file Guild.h.

References m_members.

◆ GetMember() [2/3]

Member * Guild::GetMember ( uint64 guid)
inlineprivate

Definition at line 920 of file Guild.h.

References GUID_LOPART(), and m_members.

◆ GetMember() [3/3]

◆ GetMembersCount()

uint32 Guild::GetMembersCount ( )
inline

Definition at line 844 of file Guild.h.

References m_members.

Referenced by WorldSession::HandleGuildFinderBrowse(), and Player::SendInspectResult().

◆ GetMOTD()

std::string const & Guild::GetMOTD ( ) const
inline

Definition at line 761 of file Guild.h.

References m_motd.

Referenced by LuaGuild::GetMOTD().

◆ GetName()

std::string const & Guild::GetName ( ) const
inline

◆ GetRankInfo() [1/2]

RankInfo * Guild::GetRankInfo ( uint8 rankId)
inlineprivate

Definition at line 899 of file Guild.h.

References _GetRanksSize(), and m_ranks.

◆ GetRankInfo() [2/2]

◆ GetTodayExperience()

uint64 Guild::GetTodayExperience ( ) const
inline

Definition at line 860 of file Guild.h.

References _todayExperience.

Referenced by SaveToDB().

◆ GiveXP()

◆ HandleAcceptMember()

◆ HandleAddNewRank()

void Guild::HandleAddNewRank ( WorldSession * session,
std::string const & name )

◆ HandleBuyBankTab()

◆ HandleDisband()

void Guild::HandleDisband ( WorldSession * session)

Definition at line 2294 of file Guild.cpp.

References _IsLeader(), Disband(), WorldSession::GetPlayer(), and SF_LOG_DEBUG.

◆ HandleGuildPartyRequest()

◆ HandleInviteMember()

◆ HandleLeaveMember()

◆ HandleMemberDepositMoney()

◆ HandleMemberLogout()

void Guild::HandleMemberLogout ( WorldSession * session)

◆ HandleMemberWithdrawMoney()

◆ HandleNewsSetSticky()

◆ HandleQuery()

◆ HandleRemoveMember()

◆ HandleRemoveRank()

◆ HandleReplaceGuildMaster()

◆ HandleRoster()

◆ HandleSetBankTabInfo()

◆ HandleSetBankTabNote()

◆ HandleSetEmblem()

◆ HandleSetInfo()

◆ HandleSetMemberNote()

◆ HandleSetMemberRank()

◆ HandleSetMOTD()

◆ HandleSetNewGuildMaster()

◆ HandleSetRankInfo()

◆ HandleUpdateMemberRank()

◆ HasAchieved()

bool Guild::HasAchieved ( uint32 achievementId) const

Definition at line 3798 of file Guild.cpp.

References m_achievementMgr.

◆ IsMember()

bool Guild::IsMember ( uint64 guid) const

Definition at line 2984 of file Guild.cpp.

References GUID_LOPART(), and m_members.

Referenced by HandleGuildPartyRequest(), and HandleSetMemberRank().

◆ LoadBankEventLogFromDB()

◆ LoadBankItemFromDB()

bool Guild::LoadBankItemFromDB ( Field * fields)

Definition at line 2644 of file Guild.cpp.

References _GetPurchasedTabsSize(), Field::GetUInt8(), m_bankTabs, and SF_LOG_ERROR.

◆ LoadBankRightFromDB()

void Guild::LoadBankRightFromDB ( Field * fields)

Definition at line 2555 of file Guild.cpp.

References _SetRankBankTabRightsAndSlots().

◆ LoadBankTabFromDB()

void Guild::LoadBankTabFromDB ( Field * fields)

Definition at line 2635 of file Guild.cpp.

References _GetPurchasedTabsSize(), Field::GetUInt8(), m_bankTabs, and SF_LOG_ERROR.

◆ LoadEventLogFromDB()

bool Guild::LoadEventLogFromDB ( Field * fields)

Definition at line 2563 of file Guild.cpp.

References m_eventLog, and m_id.

◆ LoadFromDB()

◆ LoadGuildNewsLogFromDB()

void Guild::LoadGuildNewsLogFromDB ( Field * fields)

Definition at line 2620 of file Guild.cpp.

References m_id, and m_newsLog.

◆ LoadMemberFromDB()

bool Guild::LoadMemberFromDB ( Field * fields)

◆ LoadRankFromDB()

void Guild::LoadRankFromDB ( Field * fields)

Definition at line 2532 of file Guild.cpp.

References Guild::RankInfo::LoadFromDB(), m_id, and m_ranks.

◆ MassInviteToEvent()

◆ OnPlayerStatusChange()

void Guild::OnPlayerStatusChange ( Player * player,
uint32 flag,
bool state )

Definition at line 1331 of file Guild.cpp.

References Object::GetGUID(), and GetMember().

◆ ResetTimes()

void Guild::ResetTimes ( bool weekly)

Definition at line 3766 of file Guild.cpp.

References _todayExperience, m_members, and SMSG_GUILD_MEMBER_DAILY_RESET.

◆ SaveToDB()

◆ SendBankList()

◆ SendBankLog()

◆ SendBankTabText()

void Guild::SendBankTabText ( WorldSession * session,
uint8 tabId ) const

Definition at line 2403 of file Guild.cpp.

References GetBankTab().

◆ SendCommandResult()

◆ SendEventLog()

void Guild::SendEventLog ( WorldSession * session) const

◆ SendGuildRankInfo()

◆ SendGuildRanksUpdate()

void Guild::SendGuildRanksUpdate ( uint64 setterGuid,
uint64 targetGuid,
uint32 rank )
private

◆ SendGuildReputationWeeklyCap()

void Guild::SendGuildReputationWeeklyCap ( WorldSession * session,
uint32 reputation ) const
private

◆ SendGuildXP()

◆ SendLoginInfo()

◆ SendMoneyInfo()

◆ SendNewsUpdate()

◆ SendPermissions()

◆ SendSaveEmblemResult()

void Guild::SendSaveEmblemResult ( WorldSession * session,
GuildEmblemError errCode )
static

◆ SetBankTabText()

void Guild::SetBankTabText ( uint8 tabId,
std::string const & text )

Definition at line 3019 of file Guild.cpp.

References GetBankTab().

◆ SetName()

◆ SwapItems()

void Guild::SwapItems ( Player * player,
uint8 tabId,
uint8 slotId,
uint8 destTabId,
uint8 destSlotId,
uint32 splitedAmount )

◆ SwapItemsWithInventory()

void Guild::SwapItemsWithInventory ( Player * player,
bool toChar,
uint8 tabId,
uint8 slotId,
uint8 playerBag,
uint8 playerSlotId,
uint32 splitedAmount )

◆ UpdateAchievementCriteria()

void Guild::UpdateAchievementCriteria ( AchievementCriteriaTypes type,
uint64 miscValue1,
uint64 miscValue2,
uint64 miscValue3,
Unit * unit,
Player * player )

Definition at line 3803 of file Guild.cpp.

References m_achievementMgr.

Referenced by GiveXP(), and Player::UpdateAchievementCriteria().

◆ UpdateMemberData()

void Guild::UpdateMemberData ( Player * player,
uint8 dataid,
uint32 value )

◆ Validate()

Member Data Documentation

◆ _experience

uint64 Guild::_experience
protected

Definition at line 893 of file Guild.h.

Referenced by Create(), GetExperience(), GiveXP(), Guild(), and LoadFromDB().

◆ _level

uint8 Guild::_level
protected

Definition at line 892 of file Guild.h.

Referenced by Create(), GetLevel(), GiveXP(), Guild(), and LoadFromDB().

◆ _todayExperience

uint64 Guild::_todayExperience
protected

Definition at line 894 of file Guild.h.

Referenced by Create(), GetTodayExperience(), GiveXP(), Guild(), LoadFromDB(), and ResetTimes().

◆ m_accountsNumber

uint32 Guild::m_accountsNumber
protected

Definition at line 879 of file Guild.h.

Referenced by _UpdateAccountsNumber(), Guild(), and HandleRoster().

◆ m_achievementMgr

AchievementMgr<Guild> Guild::m_achievementMgr
protected

◆ m_bankEventLog

LogHolder* Guild::m_bankEventLog[GUILD_BANK_MAX_TABS+1]
protected

◆ m_bankMoney

◆ m_bankTabs

◆ m_createdDate

time_t Guild::m_createdDate
protected

Definition at line 876 of file Guild.h.

Referenced by Create(), Guild(), HandleRoster(), and LoadFromDB().

◆ m_emblemInfo

EmblemInfo Guild::m_emblemInfo
protected

◆ m_eventLog

LogHolder* Guild::m_eventLog
protected

Definition at line 887 of file Guild.h.

Referenced by _CreateLogHolders(), _LogEvent(), Guild(), LoadEventLogFromDB(), SendEventLog(), and ~Guild().

◆ m_id

◆ m_info

std::string Guild::m_info
protected

Definition at line 875 of file Guild.h.

Referenced by Create(), GetInfo(), HandleRoster(), HandleSetInfo(), and LoadFromDB().

◆ m_leaderGuid

◆ m_members

◆ m_motd

std::string Guild::m_motd
protected

Definition at line 874 of file Guild.h.

Referenced by Create(), GetMOTD(), HandleRoster(), HandleSetMOTD(), LoadFromDB(), and SendLoginInfo().

◆ m_name

std::string Guild::m_name
protected

Definition at line 872 of file Guild.h.

Referenced by Create(), GetName(), HandleInviteMember(), HandleQuery(), LoadFromDB(), and SetName().

◆ m_newsLog

LogHolder* Guild::m_newsLog
protected

◆ m_ranks


The documentation for this class was generated from the following files: