TrinityCore
Loading...
Searching...
No Matches
Guild Class Reference

#include <Guild.h>

Classes

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

Public Member Functions

 Guild ()
 
 ~Guild ()
 
bool Create (Player *pLeader, std::string_view name)
 
void Disband ()
 
ObjectGuid::LowType GetId () const
 
ObjectGuid GetLeaderGUID () const
 
std::string const & GetName () const
 
std::string const & GetMOTD () const
 
std::string const & GetInfo () const
 
uint32 GetMemberCount () const
 
time_t GetCreatedDate () const
 
uint64 GetBankMoney () const
 
bool SetName (std::string_view name)
 
void HandleRoster (WorldSession *session)
 
void HandleQuery (WorldSession *session)
 
void HandleSetMOTD (WorldSession *session, std::string_view motd)
 
void HandleSetInfo (WorldSession *session, std::string_view info)
 
void HandleSetEmblem (WorldSession *session, EmblemInfo const &emblemInfo)
 
void HandleSetNewGuildMaster (WorldSession *session, std::string_view name)
 
void HandleSetBankTabInfo (WorldSession *session, uint8 tabId, std::string_view name, std::string_view icon)
 
void HandleSetMemberNote (WorldSession *session, std::string_view note, std::string_view name, bool isPublic)
 
void HandleSetRankInfo (WorldSession *session, uint8 rankId, std::string_view name, uint32 rights, uint32 moneyPerDay, std::array< GuildBankRightsAndSlots, GUILD_BANK_MAX_TABS > const &rightsAndSlots)
 
void HandleBuyBankTab (WorldSession *session, uint8 tabId)
 
void HandleInviteMember (WorldSession *session, std::string_view name)
 
void HandleAcceptMember (WorldSession *session)
 
void HandleLeaveMember (WorldSession *session)
 
void HandleRemoveMember (WorldSession *session, std::string_view name)
 
void HandleUpdateMemberRank (WorldSession *session, std::string_view name, bool demote)
 
void HandleAddNewRank (WorldSession *session, std::string_view name)
 
void HandleRemoveRank (WorldSession *session, uint8 rankId)
 
void HandleRemoveLowestRank (WorldSession *session)
 
void HandleMemberDepositMoney (WorldSession *session, uint32 amount)
 
bool HandleMemberWithdrawMoney (WorldSession *session, uint32 amount, bool repair=false)
 
void HandleMemberLogout (WorldSession *session)
 
void HandleDisband (WorldSession *session)
 
void UpdateMemberData (Player *player, uint8 dataid, uint32 value)
 
void OnPlayerStatusChange (Player *player, uint32 flag, bool state)
 
void SendInfo (WorldSession *session) const
 
void SendEventLog (WorldSession *session) const
 
void SendBankLog (WorldSession *session, uint8 tabId) const
 
void SendBankList (WorldSession *session=nullptr, uint8 tabId=0, bool fullUpdate=false, SlotIds *slots=nullptr) const
 
void SendBankTabData (WorldSession *session, uint8 tabId, bool sendAllSlots) const
 
void SendBankTabText (WorldSession *session, uint8 tabId) const
 
void SendPermissions (WorldSession *session) const
 
void SendMoneyInfo (WorldSession *session) const
 
void SendLoginInfo (WorldSession *session)
 
bool LoadFromDB (Field *fields)
 
void LoadRankFromDB (Field *fields)
 
bool LoadMemberFromDB (Field *fields)
 
bool LoadEventLogFromDB (Field *fields)
 
void LoadBankRightFromDB (Field *fields)
 
void LoadBankTabFromDB (Field *fields)
 
bool LoadBankEventLogFromDB (Field *fields)
 
bool LoadBankItemFromDB (Field *fields)
 
bool Validate ()
 
void BroadcastToGuild (WorldSession *session, bool officerOnly, std::string_view msg, uint32 language=LANG_UNIVERSAL) const
 
void BroadcastPacketToRank (WorldPacket const *packet, uint8 rankId) const
 
void BroadcastPacket (WorldPacket const *packet) const
 
void MassInviteToEvent (WorldSession *session, uint32 minLevel, uint32 maxLevel, uint32 minRank)
 
template<class Do >
void BroadcastWorker (Do &_do, Player *except=nullptr)
 
bool AddMember (CharacterDatabaseTransaction trans, ObjectGuid guid, uint8 rankId=GUILD_RANK_NONE)
 
bool DeleteMember (CharacterDatabaseTransaction trans, ObjectGuid guid, bool isDisbanding=false, bool isKicked=false)
 
bool ChangeMemberRank (CharacterDatabaseTransaction trans, ObjectGuid guid, uint8 newRank)
 
bool IsMember (ObjectGuid guid) const
 
uint32 GetMembersCount () const
 
uint64 GetMemberAvailableMoneyForRepairItems (ObjectGuid guid) const
 
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 SetBankTabText (uint8 tabId, std::string_view text)
 
EmblemInfo const & GetEmblemInfo () const
 
void ResetTimes ()
 
Trinity::unique_weak_ptr< GuildGetWeakPtr () const
 
void SetWeakPtr (Trinity::unique_weak_ptr< Guild > weakRef)
 

Static Public Member Functions

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

Protected Attributes

ObjectGuid::LowType m_id
 
std::string m_name
 
ObjectGuid m_leaderGuid
 
std::string m_motd
 
std::string m_info
 
time_t m_createdDate
 
EmblemInfo m_emblemInfo
 
uint32 m_accountsNumber
 
uint64 m_bankMoney
 
std::vector< RankInfom_ranks
 
std::unordered_map< ObjectGuid, Memberm_members
 
std::vector< BankTabm_bankTabs
 
LogHolder< EventLogEntrym_eventLog
 
std::array< LogHolder< BankEventLogEntry >, GUILD_BANK_MAX_TABS+1 > m_bankEventLog = {}
 
Trinity::unique_weak_ptr< Guildm_weakRef
 

Private Member Functions

uint8 _GetRanksSize () const
 
RankInfo const * GetRankInfo (uint8 rankId) const
 
RankInfoGetRankInfo (uint8 rankId)
 
bool _HasRankRight (Player *player, uint32 right) const
 
uint8 _GetLowestRankId () const
 
uint8 _GetPurchasedTabsSize () const
 
BankTabGetBankTab (uint8 tabId)
 
BankTab const * GetBankTab (uint8 tabId) const
 
Member const * GetMember (ObjectGuid guid) const
 
MemberGetMember (ObjectGuid guid)
 
MemberGetMember (std::string_view name)
 
void _CreateNewBankTab ()
 
void _CreateDefaultGuildRanks (CharacterDatabaseTransaction trans, LocaleConstant loc)
 
bool _CreateRank (CharacterDatabaseTransaction trans, std::string_view name, uint32 rights)
 
void _UpdateAccountsNumber ()
 
bool _IsLeader (Player *player) const
 
void _DeleteBankItems (CharacterDatabaseTransaction trans, bool removeItemsFromDB=false)
 
bool _ModifyBankMoney (CharacterDatabaseTransaction trans, uint64 amount, bool add)
 
void _SetLeader (CharacterDatabaseTransaction trans, Member &leader)
 
void _SetRankBankMoneyPerDay (uint8 rankId, uint32 moneyPerDay)
 
void _SetRankBankTabRightsAndSlots (uint8 rankId, GuildBankRightsAndSlots rightsAndSlots, bool saveToDB=true)
 
int8 _GetRankBankTabRights (uint8 rankId, uint8 tabId) const
 
uint32 _GetRankRights (uint8 rankId) const
 
int32 _GetRankBankMoneyPerDay (uint8 rankId) const
 
int32 _GetRankBankTabSlotsPerDay (uint8 rankId, uint8 tabId) const
 
std::string _GetRankName (uint8 rankId) const
 
int32 _GetMemberRemainingSlots (Member const &member, uint8 tabId) const
 
int32 _GetMemberRemainingMoney (Member const &member) const
 
void _UpdateMemberWithdrawSlots (CharacterDatabaseTransaction trans, ObjectGuid guid, uint8 tabId)
 
bool _MemberHasTabRights (ObjectGuid guid, uint8 tabId, uint32 rights) const
 
void _LogEvent (GuildEventLogTypes eventType, ObjectGuid::LowType playerGuid1, ObjectGuid::LowType playerGuid2=0, uint8 newRank=0)
 
void _LogBankEvent (CharacterDatabaseTransaction trans, GuildBankEventLogTypes eventType, uint8 tabId, ObjectGuid::LowType playerGuid, uint32 itemOrMoney, uint16 itemStackCount=0, uint8 destTabId=0)
 
Item_GetItem (uint8 tabId, uint8 slotId) const
 
void _RemoveItem (CharacterDatabaseTransaction trans, uint8 tabId, uint8 slotId)
 
void _MoveItems (MoveItemData *pSrc, MoveItemData *pDest, uint32 splitedAmount)
 
bool _DoItemsMove (MoveItemData *pSrc, MoveItemData *pDest, bool sendError, uint32 splitedAmount=0)
 
void _SendBankContentUpdate (MoveItemData *pSrc, MoveItemData *pDest) const
 
void _SendBankContentUpdate (uint8 tabId, SlotIds slots) const
 
void _BroadcastEvent (GuildEvents guildEvent, ObjectGuid guid, Optional< std::string_view > param1={}, Optional< std::string_view > param2={}, Optional< std::string_view > param3={}) const
 

Static Private Member Functions

static void _DeleteMemberFromDB (CharacterDatabaseTransaction trans, ObjectGuid::LowType lowguid)
 

Detailed Description

Definition at line 283 of file Guild.h.

Constructor & Destructor Documentation

◆ Guild()

Guild::Guild ( )

Definition at line 1071 of file Guild.cpp.

◆ ~Guild()

Guild::~Guild ( )

Definition at line 1080 of file Guild.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _BroadcastEvent()

void Guild::_BroadcastEvent ( GuildEvents  guildEvent,
ObjectGuid  guid,
Optional< std::string_view >  param1 = {},
Optional< std::string_view >  param2 = {},
Optional< std::string_view >  param3 = {} 
) const
private

Definition at line 2832 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _CreateDefaultGuildRanks()

void Guild::_CreateDefaultGuildRanks ( CharacterDatabaseTransaction  trans,
LocaleConstant  loc 
)
private

Definition at line 2439 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _CreateNewBankTab()

void Guild::_CreateNewBankTab ( )
private

Definition at line 2415 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _CreateRank()

bool Guild::_CreateRank ( CharacterDatabaseTransaction  trans,
std::string_view  name,
uint32  rights 
)
private

Definition at line 2458 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _DeleteBankItems()

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

Definition at line 2505 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _DeleteMemberFromDB()

void Guild::_DeleteMemberFromDB ( CharacterDatabaseTransaction  trans,
ObjectGuid::LowType  lowguid 
)
staticprivate

Definition at line 2407 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _DoItemsMove()

bool Guild::_DoItemsMove ( MoveItemData pSrc,
MoveItemData pDest,
bool  sendError,
uint32  splitedAmount = 0 
)
private

Definition at line 2751 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetItem()

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

Definition at line 2685 of file Guild.cpp.

+ Here is the call graph for this function:

◆ _GetLowestRankId()

uint8 Guild::_GetLowestRankId ( ) const
inlineprivate

Definition at line 764 of file Guild.h.

+ Here is the caller graph for this function:

◆ _GetMemberRemainingMoney()

int32 Guild::_GetMemberRemainingMoney ( Member const &  member) const
inlineprivate

Definition at line 2615 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetMemberRemainingSlots()

int32 Guild::_GetMemberRemainingSlots ( Member const &  member,
uint8  tabId 
) const
inlineprivate

Definition at line 2601 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetPurchasedTabsSize()

uint8 Guild::_GetPurchasedTabsSize ( ) const
inlineprivate

Definition at line 766 of file Guild.h.

+ Here is the caller graph for this function:

◆ _GetRankBankMoneyPerDay()

int32 Guild::_GetRankBankMoneyPerDay ( uint8  rankId) const
inlineprivate

Definition at line 2579 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetRankBankTabRights()

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

Definition at line 2594 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetRankBankTabSlotsPerDay()

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

Definition at line 2586 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetRankName()

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

Definition at line 2565 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetRankRights()

uint32 Guild::_GetRankRights ( uint8  rankId) const
inlineprivate

Definition at line 2572 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _GetRanksSize()

uint8 Guild::_GetRanksSize ( ) const
inlineprivate

Definition at line 759 of file Guild.h.

+ Here is the caller graph for this function:

◆ _HasRankRight()

bool Guild::_HasRankRight ( Player player,
uint32  right 
) const
private

Definition at line 2399 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _IsLeader()

bool Guild::_IsLeader ( Player player) const
private

Definition at line 2496 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _LogBankEvent()

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

Definition at line 2664 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _LogEvent()

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

Definition at line 2654 of file Guild.cpp.

+ Here is the caller graph for this function:

◆ _MemberHasTabRights()

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

Definition at line 2641 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _ModifyBankMoney()

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

Definition at line 2513 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _MoveItems()

void Guild::_MoveItems ( MoveItemData pSrc,
MoveItemData pDest,
uint32  splitedAmount 
)
private

Definition at line 2698 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _RemoveItem()

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

Definition at line 2692 of file Guild.cpp.

+ Here is the call graph for this function:

◆ _SendBankContentUpdate() [1/2]

void Guild::_SendBankContentUpdate ( MoveItemData pSrc,
MoveItemData pDest 
) const
private

Definition at line 2795 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _SendBankContentUpdate() [2/2]

void Guild::_SendBankContentUpdate ( uint8  tabId,
SlotIds  slots 
) const
private

Definition at line 2827 of file Guild.cpp.

+ Here is the call graph for this function:

◆ _SetLeader()

void Guild::_SetLeader ( CharacterDatabaseTransaction  trans,
Member leader 
)
private

Definition at line 2532 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _SetRankBankMoneyPerDay()

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

Definition at line 2550 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _SetRankBankTabRightsAndSlots()

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

Definition at line 2556 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ _UpdateAccountsNumber()

void Guild::_UpdateAccountsNumber ( )
private

Definition at line 2483 of file Guild.cpp.

+ Here is the caller graph for this function:

◆ _UpdateMemberWithdrawSlots()

void Guild::_UpdateMemberWithdrawSlots ( CharacterDatabaseTransaction  trans,
ObjectGuid  guid,
uint8  tabId 
)
inlineprivate

Definition at line 2630 of file Guild.cpp.

+ Here is the call graph for this function:

◆ AddMember()

bool Guild::AddMember ( CharacterDatabaseTransaction  trans,
ObjectGuid  guid,
uint8  rankId = GUILD_RANK_NONE 
)

Definition at line 2187 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BroadcastPacket()

void Guild::BroadcastPacket ( WorldPacket const *  packet) const

Definition at line 2149 of file Guild.cpp.

+ Here is the caller graph for this function:

◆ BroadcastPacketToRank()

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

Definition at line 2141 of file Guild.cpp.

◆ BroadcastToGuild()

void Guild::BroadcastToGuild ( WorldSession session,
bool  officerOnly,
std::string_view  msg,
uint32  language = LANG_UNIVERSAL 
) const

Definition at line 2127 of file Guild.cpp.

+ Here is the call graph for this function:

◆ BroadcastWorker()

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

Definition at line 706 of file Guild.h.

◆ ChangeMemberRank()

bool Guild::ChangeMemberRank ( CharacterDatabaseTransaction  trans,
ObjectGuid  guid,
uint8  newRank 
)

Definition at line 2333 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Create()

bool Guild::Create ( Player pLeader,
std::string_view  name 
)

Definition at line 1087 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DeleteMember()

bool Guild::DeleteMember ( CharacterDatabaseTransaction  trans,
ObjectGuid  guid,
bool  isDisbanding = false,
bool  isKicked = false 
)

Definition at line 2269 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Disband()

void Guild::Disband ( )

Definition at line 1142 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetBankMoney()

uint64 Guild::GetBankMoney ( ) const
inline

Definition at line 645 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetBankTab() [1/2]

BankTab * Guild::GetBankTab ( uint8  tabId)
inlineprivate

Definition at line 767 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetBankTab() [2/2]

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

Definition at line 768 of file Guild.h.

◆ GetCreatedDate()

time_t Guild::GetCreatedDate ( ) const
inline

Definition at line 644 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetEmblemInfo()

EmblemInfo const & Guild::GetEmblemInfo ( ) const
inline

Definition at line 730 of file Guild.h.

◆ GetId()

ObjectGuid::LowType Guild::GetId ( ) const
inline

Definition at line 638 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetInfo()

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

Definition at line 642 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetLeaderGUID()

ObjectGuid Guild::GetLeaderGUID ( ) const
inline

Definition at line 639 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetMember() [1/3]

Member * Guild::GetMember ( ObjectGuid  guid)
inlineprivate

Definition at line 776 of file Guild.h.

◆ GetMember() [2/3]

Member const * Guild::GetMember ( ObjectGuid  guid) const
inlineprivate

Definition at line 770 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetMember() [3/3]

Member * Guild::GetMember ( std::string_view  name)
inlineprivate

Definition at line 782 of file Guild.h.

◆ GetMemberAvailableMoneyForRepairItems()

uint64 Guild::GetMemberAvailableMoneyForRepairItems ( ObjectGuid  guid) const

Definition at line 2352 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMemberCount()

uint32 Guild::GetMemberCount ( ) const
inline

Definition at line 643 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetMembersCount()

uint32 Guild::GetMembersCount ( ) const
inline

Definition at line 720 of file Guild.h.

◆ GetMOTD()

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

Definition at line 641 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetName()

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

Definition at line 640 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetRankInfo() [1/2]

RankInfo * Guild::GetRankInfo ( uint8  rankId)
inlineprivate

Definition at line 761 of file Guild.h.

◆ GetRankInfo() [2/2]

RankInfo const * Guild::GetRankInfo ( uint8  rankId) const
inlineprivate

Definition at line 760 of file Guild.h.

+ Here is the caller graph for this function:

◆ GetWeakPtr()

Trinity::unique_weak_ptr< Guild > Guild::GetWeakPtr ( ) const
inline

Definition at line 733 of file Guild.h.

◆ HandleAcceptMember()

void Guild::HandleAcceptMember ( WorldSession session)

Definition at line 1527 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleAddNewRank()

void Guild::HandleAddNewRank ( WorldSession session,
std::string_view  name 
)

Definition at line 1653 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleBuyBankTab()

void Guild::HandleBuyBankTab ( WorldSession session,
uint8  tabId 
)

Hack to force client to update permissions

Definition at line 1443 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleDisband()

void Guild::HandleDisband ( WorldSession session)

Definition at line 1783 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleInviteMember()

void Guild::HandleInviteMember ( WorldSession session,
std::string_view  name 
)

Definition at line 1473 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleLeaveMember()

void Guild::HandleLeaveMember ( WorldSession session)

Definition at line 1538 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleMemberDepositMoney()

void Guild::HandleMemberDepositMoney ( WorldSession session,
uint32  amount 
)

Definition at line 1696 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleMemberLogout()

void Guild::HandleMemberLogout ( WorldSession session)

Definition at line 1771 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleMemberWithdrawMoney()

bool Guild::HandleMemberWithdrawMoney ( WorldSession session,
uint32  amount,
bool  repair = false 
)

Definition at line 1728 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleQuery()

void Guild::HandleQuery ( WorldSession session)

Definition at line 1282 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleRemoveLowestRank()

void Guild::HandleRemoveLowestRank ( WorldSession session)

Definition at line 1668 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleRemoveMember()

void Guild::HandleRemoveMember ( WorldSession session,
std::string_view  name 
)

Definition at line 1568 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleRemoveRank()

void Guild::HandleRemoveRank ( WorldSession session,
uint8  rankId 
)

Definition at line 1673 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleRoster()

void Guild::HandleRoster ( WorldSession session)

Definition at line 1235 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleSetBankTabInfo()

void Guild::HandleSetBankTabInfo ( WorldSession session,
uint8  tabId,
std::string_view  name,
std::string_view  icon 
)

Definition at line 1393 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleSetEmblem()

void Guild::HandleSetEmblem ( WorldSession session,
EmblemInfo const &  emblemInfo 
)

Definition at line 1346 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleSetInfo()

void Guild::HandleSetInfo ( WorldSession session,
std::string_view  info 
)

Definition at line 1327 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleSetMemberNote()

void Guild::HandleSetMemberNote ( WorldSession session,
std::string_view  note,
std::string_view  name,
bool  isPublic 
)

Definition at line 1407 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleSetMOTD()

void Guild::HandleSetMOTD ( WorldSession session,
std::string_view  motd 
)

Definition at line 1304 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleSetNewGuildMaster()

void Guild::HandleSetNewGuildMaster ( WorldSession session,
std::string_view  name 
)

Definition at line 1366 of file Guild.cpp.

+ Here is the call graph for this function:

◆ HandleSetRankInfo()

void Guild::HandleSetRankInfo ( WorldSession session,
uint8  rankId,
std::string_view  name,
uint32  rights,
uint32  moneyPerDay,
std::array< GuildBankRightsAndSlots, GUILD_BANK_MAX_TABS > const &  rightsAndSlots 
)

Definition at line 1423 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ HandleUpdateMemberRank()

void Guild::HandleUpdateMemberRank ( WorldSession session,
std::string_view  name,
bool  demote 
)

Definition at line 1599 of file Guild.cpp.

+ Here is the call graph for this function:

◆ IsMember()

bool Guild::IsMember ( ObjectGuid  guid) const

Definition at line 2347 of file Guild.cpp.

◆ LoadBankEventLogFromDB()

bool Guild::LoadBankEventLogFromDB ( Field fields)

Definition at line 1997 of file Guild.cpp.

+ Here is the call graph for this function:

◆ LoadBankItemFromDB()

bool Guild::LoadBankItemFromDB ( Field fields)

Definition at line 2046 of file Guild.cpp.

+ Here is the call graph for this function:

◆ LoadBankRightFromDB()

void Guild::LoadBankRightFromDB ( Field fields)

Definition at line 1972 of file Guild.cpp.

+ Here is the call graph for this function:

◆ LoadBankTabFromDB()

void Guild::LoadBankTabFromDB ( Field fields)

Definition at line 2037 of file Guild.cpp.

+ Here is the call graph for this function:

◆ LoadEventLogFromDB()

bool Guild::LoadEventLogFromDB ( Field fields)

Definition at line 1980 of file Guild.cpp.

◆ LoadFromDB()

bool Guild::LoadFromDB ( Field fields)

Definition at line 1916 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ LoadMemberFromDB()

bool Guild::LoadMemberFromDB ( Field fields)

Definition at line 1947 of file Guild.cpp.

+ Here is the call graph for this function:

◆ LoadRankFromDB()

void Guild::LoadRankFromDB ( Field fields)

Definition at line 1938 of file Guild.cpp.

+ Here is the call graph for this function:

◆ MassInviteToEvent()

void Guild::MassInviteToEvent ( WorldSession session,
uint32  minLevel,
uint32  maxLevel,
uint32  minRank 
)

Definition at line 2156 of file Guild.cpp.

+ Here is the call graph for this function:

◆ OnPlayerStatusChange()

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

Definition at line 1212 of file Guild.cpp.

+ Here is the call graph for this function:

◆ ResetTimes()

void Guild::ResetTimes ( )

Definition at line 2960 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SendBankList()

void Guild::SendBankList ( WorldSession session = nullptr,
uint8  tabId = 0,
bool  fullUpdate = false,
SlotIds slots = nullptr 
) const
Todo:
  • Probably this is just sent to session + those that have sent CMSG_GUILD_BANKER_ACTIVATE

Definition at line 2858 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendBankLog()

void Guild::SendBankLog ( WorldSession session,
uint8  tabId 
) const

Definition at line 1821 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SendBankTabData()

void Guild::SendBankTabData ( WorldSession session,
uint8  tabId,
bool  sendAllSlots 
) const

Definition at line 1841 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SendBankTabText()

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

Definition at line 1847 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SendCommandResult()

void Guild::SendCommandResult ( WorldSession session,
GuildCommandType  type,
GuildCommandError  errCode,
std::string_view  param = "" 
)
static

Definition at line 106 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendEventLog()

void Guild::SendEventLog ( WorldSession session) const

Definition at line 1807 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SendInfo()

void Guild::SendInfo ( WorldSession session) const

Definition at line 1794 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SendLoginInfo()

void Guild::SendLoginInfo ( WorldSession session)

Definition at line 1892 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendMoneyInfo()

void Guild::SendMoneyInfo ( WorldSession session) const

Definition at line 1877 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SendPermissions()

void Guild::SendPermissions ( WorldSession session) const

Definition at line 1853 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendSaveEmblemResult()

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

Definition at line 118 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetBankTabText()

void Guild::SetBankTabText ( uint8  tabId,
std::string_view  text 
)

Definition at line 2390 of file Guild.cpp.

+ Here is the call graph for this function:

◆ SetName()

bool Guild::SetName ( std::string_view  name)

Definition at line 1222 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetWeakPtr()

void Guild::SetWeakPtr ( Trinity::unique_weak_ptr< Guild weakRef)
inline

Definition at line 734 of file Guild.h.

+ Here is the caller graph for this function:

◆ SwapItems()

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

Definition at line 2362 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SwapItemsWithInventory()

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

Definition at line 2376 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateMemberData()

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

Definition at line 1192 of file Guild.cpp.

+ Here is the call graph for this function:

◆ Validate()

bool Guild::Validate ( )

Definition at line 2059 of file Guild.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ m_accountsNumber

uint32 Guild::m_accountsNumber
protected

Definition at line 745 of file Guild.h.

◆ m_bankEventLog

std::array<LogHolder<BankEventLogEntry>, GUILD_BANK_MAX_TABS + 1> Guild::m_bankEventLog = {}
protected

Definition at line 754 of file Guild.h.

◆ m_bankMoney

uint64 Guild::m_bankMoney
protected

Definition at line 746 of file Guild.h.

◆ m_bankTabs

std::vector<BankTab> Guild::m_bankTabs
protected

Definition at line 750 of file Guild.h.

◆ m_createdDate

time_t Guild::m_createdDate
protected

Definition at line 742 of file Guild.h.

◆ m_emblemInfo

EmblemInfo Guild::m_emblemInfo
protected

Definition at line 744 of file Guild.h.

◆ m_eventLog

LogHolder<EventLogEntry> Guild::m_eventLog
protected

Definition at line 753 of file Guild.h.

◆ m_id

ObjectGuid::LowType Guild::m_id
protected

Definition at line 737 of file Guild.h.

◆ m_info

std::string Guild::m_info
protected

Definition at line 741 of file Guild.h.

◆ m_leaderGuid

ObjectGuid Guild::m_leaderGuid
protected

Definition at line 739 of file Guild.h.

◆ m_members

std::unordered_map<ObjectGuid, Member> Guild::m_members
protected

Definition at line 749 of file Guild.h.

◆ m_motd

std::string Guild::m_motd
protected

Definition at line 740 of file Guild.h.

◆ m_name

std::string Guild::m_name
protected

Definition at line 738 of file Guild.h.

◆ m_ranks

std::vector<RankInfo> Guild::m_ranks
protected

Definition at line 748 of file Guild.h.

◆ m_weakRef

Trinity::unique_weak_ptr<Guild> Guild::m_weakRef
protected

Definition at line 756 of file Guild.h.


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