19 #ifndef TRINITYCORE_GUILD_H
20 #define TRINITYCORE_GUILD_H
257 #define GUILD_CHALLENGES_TYPES 6
267 EmblemInfo() : m_style(0), m_color(0), m_borderStyle(0), m_borderColor(0), m_backgroundColor(0) { }
272 bool ValidateEmblemColors();
335 m_logoutTime(::time(
NULL)),
338 m_achievementPoints(0),
341 m_totalReputation(0),
347 void SetStats(
Player* player);
349 bool CheckStats()
const;
351 void SetPublicNote(std::string
const& publicNote);
352 void SetOfficerNote(std::string
const& officerNote);
356 void AddReputation(
uint32& reputation);
357 void AddActivity(
uint64 activity);
367 std::string
const&
GetName()
const {
return m_name; }
390 void ChangeRank(
uint8 newRank);
393 inline bool IsRank(
uint8 rankId)
const {
return m_rankId == rankId; }
398 int32 GetBankWithdrawValue(
uint8 tabId)
const;
399 void ResetValues(
bool weekly =
false);
455 LogEntry(guildId, guid), m_eventType(eventType), m_playerGuid1(playerGuid1), m_playerGuid2(playerGuid2), m_newRank(newRank) { }
458 LogEntry(guildId, guid, timestamp), m_eventType(eventType), m_playerGuid1(playerGuid1), m_playerGuid2(playerGuid2), m_newRank(newRank) { }
487 return IsMoneyEvent(m_eventType);
491 LogEntry(guildId, guid), m_eventType(eventType), m_bankTabId(tabId), m_playerGuid(playerGuid),
492 m_itemOrMoney(itemOrMoney), m_itemStackCount(itemStackCount), m_destTabId(destTabId) { }
495 LogEntry(guildId, guid, timestamp), m_eventType(eventType), m_bankTabId(tabId), m_playerGuid(playerGuid),
496 m_itemOrMoney(itemOrMoney), m_itemStackCount(itemStackCount), m_destTabId(destTabId) { }
517 LogEntry(guildId, guid), m_type(type), m_playerGuid(playerGuid), m_flags(flags), m_value(value) { }
520 LogEntry(guildId, guid, timestamp), m_type(type), m_playerGuid(playerGuid), m_flags(flags), m_value(value) { }
557 inline bool CanInsert()
const {
return m_log.size() < m_maxRecords; }
578 m_guildId(guildId), m_rankId(rankId), m_name(name), m_rights(rights),
586 std::string
const&
GetName()
const {
return m_name; }
587 void SetName(std::string
const& name);
590 void SetRights(
uint32 rights);
594 void SetBankMoneyPerDay(
uint32 money);
607 void CreateMissingTabsIfNeeded(
uint8 ranks,
SQLTransaction& trans,
bool logOnCreate =
false);
627 bool LoadItemFromDB(
Field* fields);
628 void Delete(
SQLTransaction& trans,
bool removeItemsFromDB =
false);
631 bool WriteSlotPacket(
WorldPacket& data,
uint8 slotId,
bool ignoreEmpty =
true)
const;
638 void SetInfo(std::string
const& name, std::string
const& icon);
639 void SetText(std::string
const& text);
642 std::string
const&
GetName()
const {
return m_name; }
643 std::string
const&
GetIcon()
const {
return m_icon; }
644 std::string
const&
GetText()
const {
return m_text; }
664 m_container(container), m_slotId(slotId), m_pItem(
NULL), m_pClonedItem(
NULL) { }
667 virtual bool IsBank()
const = 0;
669 virtual bool InitItem() = 0;
671 virtual bool CheckItem(
uint32& splitedAmount);
677 bool CanStore(
Item* pItem,
bool swap,
bool sendError);
679 bool CloneItem(
uint32 count);
689 void CopySlots(
SlotIds& ids)
const;
691 Item*
GetItem(
bool isCloned =
false)
const {
return isCloned ? m_pClonedItem : m_pItem; }
713 bool IsBank()
const override {
return false; }
714 bool InitItem()
override;
728 bool IsBank()
const override {
return true; }
729 bool InitItem()
override;
730 bool HasStoreRights(
MoveItemData* pOther)
const override;
731 bool HasWithdrawRights(
MoveItemData* pOther)
const override;
743 void CanStoreItemInTab(
Item* pItem,
uint8 skipSlotId,
bool merge,
uint32& count);
746 typedef std::unordered_map<ObjectGuid, Member*>
Members;
747 typedef std::vector<RankInfo>
Ranks;
757 bool Create(
Player* pLeader, std::string
const& name);
766 std::string
const&
GetName()
const {
return m_name; }
767 std::string
const&
GetMOTD()
const {
return m_motd; }
768 std::string
const&
GetInfo()
const {
return m_info; }
772 bool SetName(std::string
const& name);
777 void HandleSetAchievementTracking(
WorldSession* session, std::set<uint32>
const& achievementIds);
778 void HandleSetMOTD(
WorldSession* session, std::string
const& motd);
779 void HandleSetInfo(
WorldSession* session, std::string
const& info);
781 void HandleSetNewGuildMaster(
WorldSession* session, std::string
const& name);
782 void HandleSetBankTabInfo(
WorldSession* session,
uint8 tabId, std::string
const& name, std::string
const& icon);
786 void HandleInviteMember(
WorldSession* session, std::string
const& name);
792 void HandleAddNewRank(
WorldSession* session, std::string
const& name);
794 void HandleMemberDepositMoney(
WorldSession* session,
uint64 amount,
bool cashFlow =
false);
795 bool HandleMemberWithdrawMoney(
WorldSession* session,
uint64 amount,
bool repair =
false);
800 void HandleGuildRequestChallengeUpdate(
WorldSession* session);
803 void OnPlayerStatusChange(
Player* player,
uint32 flag,
bool state);
817 void SendEventBankMoneyChanged();
818 void SendEventMOTD(
WorldSession* session,
bool broadcast =
false);
819 void SendEventNewLeader(Member* newLeader, Member* oldLeader,
bool isSelfPromoted =
false);
820 void SendEventPlayerLeft(Member* leaver, Member* remover =
nullptr,
bool isRemoved =
false);
821 void SendEventPresenceChanged(
WorldSession* session,
bool loggedOn,
bool broadcast =
false);
825 void LoadGuildNewsLogFromDB(
Field* fields);
826 void LoadRankFromDB(
Field* fields);
827 bool LoadMemberFromDB(
Field* fields);
828 bool LoadEventLogFromDB(
Field* fields);
829 void LoadBankRightFromDB(
Field* fields);
830 void LoadBankTabFromDB(
Field* fields);
831 bool LoadBankEventLogFromDB(
Field* fields);
832 bool LoadBankItemFromDB(
Field* fields);
837 void BroadcastAddonToGuild(
WorldSession* session,
bool officerOnly, std::string
const& msg, std::string
const& prefix)
const;
839 void BroadcastPacket(
WorldPacket const* packet)
const;
840 void BroadcastPacketIfTrackingAchievement(
WorldPacket const* packet,
uint32 criteriaId)
const;
847 for (Members::iterator itr = m_members.begin(); itr != m_members.end(); ++itr)
848 if (
Player* player = itr->second->FindConnectedPlayer())
849 if (player != except)
856 void DeleteMember(
ObjectGuid guid,
bool isDisbanding =
false,
bool isKicked =
false,
bool canDeleteGuild =
false);
866 void SetBankTabText(
uint8 tabId, std::string
const& text);
877 void ResetTimes(
bool weekly);
879 bool HasAchieved(
uint32 achievementId)
const;
913 if (
Member const* member = GetMember(player->GetGUID()))
914 return (_GetRankRights(member->GetRankId()) & right) !=
GR_RIGHT_NONE;
926 Members::const_iterator itr = m_members.find(guid);
927 return itr != m_members.end() ? itr->second :
NULL;
932 Members::iterator itr = m_members.find(guid);
933 return itr != m_members.end() ? itr->second :
NULL;
938 for (Members::iterator itr = m_members.begin(); itr != m_members.end(); ++itr)
939 if (itr->second->GetName() == name)
953 void _CreateLogHolders();
955 void _CreateNewBankTab();
959 bool _CreateRank(std::string
const& name,
uint32 rights);
961 void _UpdateAccountsNumber();
962 bool _IsLeader(
Player* player)
const;
963 void _DeleteBankItems(
SQLTransaction& trans,
bool removeItemsFromDB =
false);
965 void _SetLeaderGUID(Member* pLeader);
967 void _SetRankBankMoneyPerDay(
uint8 rankId,
uint32 moneyPerDay);
971 int32 _GetRankBankMoneyPerDay(
uint8 rankId)
const;
973 std::string _GetRankName(
uint8 rankId)
const;
975 int32 _GetMemberRemainingSlots(Member
const* member,
uint8 tabId)
const;
976 int32 _GetMemberRemainingMoney(Member
const* member)
const;
985 void _MoveItems(MoveItemData* pSrc, MoveItemData* pDest,
uint32 splitedAmount);
986 bool _DoItemsMove(MoveItemData* pSrc, MoveItemData* pDest,
bool sendError,
uint32 splitedAmount = 0);
988 void _SendBankContentUpdate(MoveItemData* pSrc, MoveItemData* pDest)
const;
989 void _SendBankContentUpdate(
uint8 tabId,
SlotIds slots)
const;
uint32 GetRights() const
Definition: Guild.h:589
std::string m_text
Definition: Guild.h:656
Definition: GuildPackets.h:932
ObjectGuid GetLeaderGUID() const
Definition: Guild.h:765
uint32 GetTotalReputation() const
Definition: Guild.h:381
void Execute(const char *sql)
Definition: DatabaseWorkerPool.h:87
uint32 GetZoneId() const
Definition: Guild.h:377
uint32 m_backgroundColor
Definition: Guild.h:285
PetitionSigns
Definition: Guild.h:167
uint32 m_color
Definition: Guild.h:282
PetitionTurns
Definition: Guild.h:158
int8_t int8
Definition: Define.h:148
GuildEventLogTypes
Definition: Guild.h:203
bool CanInsert() const
Definition: Guild.h:557
static void var(TextOutput &t, const std::string &name, const std::string &val)
Definition: System.cpp:1582
Definition: SharedDefines.h:961
const uint32 GuildChallengeMaxLevelGoldReward[GUILD_CHALLENGES_TYPES]
Definition: Guild.h:260
uint16 m_itemStackCount
Definition: Guild.h:508
const BankTab * GetBankTab(uint8 tabId) const
Definition: Guild.h:922
Member * GetMember(ObjectGuid guid)
Definition: Guild.h:930
std::string const & GetIcon() const
Definition: Guild.h:643
AchievementMgr< Guild > m_achievementMgr
Definition: Guild.h:902
BankEventLogEntry(ObjectGuid::LowType guildId, uint32 guid, time_t timestamp, uint8 tabId, GuildBankEventLogTypes eventType, ObjectGuid::LowType playerGuid, uint64 itemOrMoney, uint16 itemStackCount, uint8 destTabId)
Definition: Guild.h:494
BankTabs m_bankTabs
Definition: Guild.h:896
EventLogEntry(ObjectGuid::LowType guildId, uint32 guid, GuildEventLogTypes eventType, ObjectGuid::LowType playerGuid1, ObjectGuid::LowType playerGuid2, uint8 newRank)
Definition: Guild.h:454
uint32 m_accountId
Definition: Guild.h:415
LogHolder * m_eventLog
Definition: Guild.h:899
void SetLevel(uint8 var)
Definition: Guild.h:355
EmblemInfo m_emblemInfo
Definition: Guild.h:890
void AddFlag(uint8 var)
Definition: Guild.h:359
const Member * GetMember(ObjectGuid guid) const
Definition: Guild.h:924
uint8 _GetLowestRankId() const
Definition: Guild.h:918
uint32 m_zoneId
Definition: Guild.h:409
uint32 m_achievementPoints
Definition: Guild.h:424
ObjectGuid m_guid
Definition: Guild.h:407
Member(ObjectGuid::LowType guildId, ObjectGuid guid, uint8 rankId)
Definition: Guild.h:327
std::string m_publicNote
Definition: Guild.h:418
Item * GetItem(bool isCloned=false) const
Definition: Guild.h:691
GuildBankRights
Definition: Guild.h:179
uint64 GetTimestamp() const
Definition: Guild.h:440
bool IsTrackingCriteriaId(uint32 criteriaId) const
Definition: Guild.h:386
const uint32 GuildChallengesMaxCount[GUILD_CHALLENGES_TYPES]
Definition: Guild.h:261
Class used to access individual fields of database query result.
Definition: Field.h:56
int8 GetBankTabRights(uint8 tabId) const
Definition: Guild.h:596
void LoadFromDB()
Definition: AddonMgr.cpp:40
std::string const & GetMOTD() const
Definition: Guild.h:767
Definition: GuildPackets.h:985
ObjectGuid::LowType m_playerGuid1
Definition: Guild.h:467
uint32 GetWeekReputation() const
Definition: Guild.h:382
uint32 m_guid
Definition: Guild.h:446
GuildBankEventLogTypes m_eventType
Definition: Guild.h:504
ObjectGuid::LowType m_guildId
Definition: Guild.h:610
uint32 m_accountsNumber
Definition: Guild.h:891
uint32 m_weekReputation
Definition: Guild.h:428
void SetGuildMasterValues()
Definition: Guild.h:296
PlayerMoveItemData(Guild *guild, Player *player, uint8 container, uint8 slotId)
Definition: Guild.h:710
#define UI64LIT(N)
Definition: Define.h:138
uint64 GetWeekActivity() const
Definition: Guild.h:380
int32 RaceMask
Definition: Guild.h:249
arena_t NULL
Definition: jemalloc_internal.h:624
time_t m_createdDate
Definition: Guild.h:888
RankInfo(ObjectGuid::LowType guildId)
Definition: Guild.h:576
BankTab * GetBankTab(uint8 tabId)
Definition: Guild.h:921
std::string const & GetName() const
Definition: Guild.h:766
uint32 m_nextGUID
Definition: Guild.h:568
EmblemInfo const & GetEmblemInfo() const
Definition: Guild.h:876
void _DeleteMemberFromDB(ObjectGuid::LowType lowguid) const
Definition: Guild.h:945
uint32 GetAchievementPoints() const
Definition: Guild.h:378
uint32 ItemID
Definition: Guild.h:247
bool IsOnline() const
Definition: Guild.h:388
bool IsRank(uint8 rankId) const
Definition: Guild.h:393
uint8 m_newRank
Definition: Guild.h:469
GuildLog * GetGuildLog()
Definition: Guild.h:563
uint32 m_maxRecords
Definition: Guild.h:567
uint64 GetTotalActivity() const
Definition: Guild.h:379
LogEntry(ObjectGuid::LowType guildId, uint32 guid)
Definition: Guild.h:435
void ResetFlags()
Definition: Guild.h:361
int8 rights
Definition: Guild.h:312
uint8 m_level
Definition: Guild.h:410
uint64 Cost
Definition: Guild.h:250
uint32 GetGUID() const
Definition: Guild.h:439
uint32 GetMembersCount() const
Definition: Guild.h:859
std::string const & GetName() const
Definition: Guild.h:642
std::string GetPublicNote() const
Definition: Guild.h:371
uint32 GetFlags() const
Definition: Guild.h:527
Item * m_pItem
Definition: Guild.h:702
uint32 m_totalReputation
Definition: Guild.h:427
uint64 LowType
Definition: ObjectGuid.h:199
ObjectGuid::LowType m_guildId
Definition: Guild.h:650
Definition: CharacterDatabase.h:162
Definition: PreparedStatement.h:74
GuildMemberData
Definition: Guild.h:56
uint8 GetGender() const
Definition: Guild.h:374
GuildBankRightsAndSlots(uint8 _tabId, int8 _rights, int32 _slots)
Definition: Guild.h:294
uint8 GetRankId() const
Definition: Guild.h:369
uint64 GetLogoutTime() const
Definition: Guild.h:370
uint64 m_logoutTime
Definition: Guild.h:414
uint32 m_style
Definition: Guild.h:281
bool IsMoneyEvent() const
Definition: Guild.h:485
uint8 m_rankId
Definition: Guild.h:611
uint8 _GetPurchasedTabsSize() const
Definition: Guild.h:920
ObjectGuid m_leaderGuid
Definition: Guild.h:885
BankEventLogEntry(ObjectGuid::LowType guildId, uint32 guid, GuildBankEventLogTypes eventType, uint8 tabId, ObjectGuid::LowType playerGuid, uint64 itemOrMoney, uint16 itemStackCount, uint8 destTabId)
Definition: Guild.h:490
GuildMemberFlags
Definition: Guild.h:223
std::string const & GetName() const
Definition: Guild.h:367
uint32 GetBorderColor() const
Definition: Guild.h:277
uint8 MinGuildRep
Definition: Guild.h:248
Player * m_pPlayer
Definition: Guild.h:699
~EventLogEntry()
Definition: Guild.h:460
uint8 GetFlags() const
Definition: Guild.h:376
uint32 GetBorderStyle() const
Definition: Guild.h:276
ObjectGuid m_playerGuid
Definition: Guild.h:541
TC_GAME_API Player * FindPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:209
uint32 m_flags
Definition: Guild.h:542
GuildNews
Definition: Guild.h:232
int32 GetBankTabSlotsPerDay(uint8 tabId) const
Definition: Guild.h:601
uint8 m_tabId
Definition: Guild.h:651
RankInfo()
Definition: Guild.h:575
GuildRankRights
Definition: Guild.h:75
AchievementMgr< Guild > const & GetAchievementMgr() const
Definition: Guild.h:869
uint8 GetLevel() const
Definition: Guild.h:872
void SetSlots(int32 _slots)
Definition: Guild.h:303
uint64 GetBankMoney() const
Definition: Guild.h:770
uint8 GetClass() const
Definition: Guild.h:373
time_t GetCreatedDate() const
Definition: Guild.h:769
int8 GetRights() const
Definition: Guild.h:308
std::string m_motd
Definition: Guild.h:886
uint32 m_borderColor
Definition: Guild.h:284
void SetRights(int8 _rights)
Definition: Guild.h:304
uint8 _GetRanksSize() const
Definition: Guild.h:907
bool IsBank() const override
Definition: Guild.h:713
LocaleConstant
Definition: Common.h:115
void RemFlag(uint8 var)
Definition: Guild.h:360
uint8 GetSize() const
Definition: Guild.h:555
uint64 m_weekActivity
Definition: Guild.h:426
GuildDefaultRanks
Definition: Guild.h:63
EventLogEntry(ObjectGuid::LowType guildId, uint32 guid, time_t timestamp, GuildEventLogTypes eventType, ObjectGuid::LowType playerGuid1, ObjectGuid::LowType playerGuid2, uint8 newRank)
Definition: Guild.h:457
LogHolder(uint32 maxRecords)
Definition: Guild.h:552
uint32 GetColor() const
Definition: Guild.h:275
void UpdateLogoutTime()
Definition: Guild.h:392
std::set< uint8 > SlotIds
Definition: Guild.h:318
GuildBankEventLogTypes
Definition: Guild.h:189
std::vector< RankInfo > Ranks
Definition: Guild.h:747
~BankEventLogEntry()
Definition: Guild.h:498
AchievementCriteriaTypes
Definition: DBCEnums.h:196
std::string GetOfficerNote() const
Definition: Guild.h:372
uint32 m_value
Definition: Guild.h:543
GuildCommandError
Definition: Guild.h:122
std::string m_icon
Definition: Guild.h:655
Item * m_pClonedItem
Definition: Guild.h:703
std::string const & GetText() const
Definition: Guild.h:644
uint32 m_rights
Definition: Guild.h:613
GuildEventLogTypes m_eventType
Definition: Guild.h:466
Members m_members
Definition: Guild.h:895
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
ObjectGuid::LowType m_playerGuid2
Definition: Guild.h:468
uint8 m_flags
Definition: Guild.h:413
uint8 m_class
Definition: Guild.h:411
void SetZoneId(uint32 id)
Definition: Guild.h:353
Player * FindConnectedPlayer() const
Definition: Guild.h:402
GuildMisc
Definition: Guild.h:42
uint64_t uint64
Definition: Define.h:149
ObjectGuid::LowType m_playerGuid
Definition: Guild.h:506
ObjectGuid::LowType GetId() const
Definition: Guild.h:763
std::string m_name
Definition: Guild.h:884
bool _HasRankRight(Player const *player, uint32 right) const
Definition: Guild.h:910
Definition: GuildPackets.h:318
std::string m_name
Definition: Guild.h:408
uint16_t uint16
Definition: Define.h:151
uint32 GetStyle() const
Definition: Guild.h:274
ObjectGuid GetGUID() const
Definition: Guild.h:764
RankInfo(ObjectGuid::LowType guildId, uint8 rankId, std::string const &name, uint32 rights, uint32 money)
Definition: Guild.h:577
uint8 m_slotId
Definition: Guild.h:701
uint64 m_itemOrMoney
Definition: Guild.h:507
GuildBankRightsAndSlots()
Definition: Guild.h:292
PreparedStatement * GetPreparedStatement(PreparedStatementIndex index)
Definition: DatabaseWorkerPool.h:263
void WriteInfoPacket(WorldPacket &data) const
Definition: Guild.h:632
uint8 _gender
Definition: Guild.h:412
int32 GetBankMoneyPerDay() const
Definition: Guild.h:592
std::string const & GetName() const
Definition: Guild.h:586
Item * GetItem(uint8 slotId) const
Definition: Guild.h:646
Ranks m_ranks
Definition: Guild.h:894
uint8 GetSlotId() const
Definition: Guild.h:693
std::unordered_map< ObjectGuid, Member * > Members
Definition: Guild.h:746
Definition: BattlegroundMgr.h:57
AchievementMgr< Guild > & GetAchievementMgr()
Definition: Guild.h:868
GuildNews m_type
Definition: Guild.h:540
EmblemInfo()
Definition: Guild.h:267
ObjectGuid const & GetGUID() const
Definition: Guild.h:366
BankMoveItemData(Guild *guild, Player *player, uint8 container, uint8 slotId)
Definition: Guild.h:725
Member * GetMember(std::string const &name)
Definition: Guild.h:936
void SetSticky(bool sticky)
Definition: Guild.h:528
void SetTrackedCriteriaIds(std::set< uint32 > criteriaIds)
Definition: Guild.h:385
virtual bool HasWithdrawRights(MoveItemData *) const
Definition: Guild.h:675
int32 GetSlots() const
Definition: Guild.h:307
uint8_t uint8
Definition: g3dmath.h:164
ObjectGuid::LowType m_guildId
Definition: Guild.h:445
std::vector< GuildBankRightsAndSlots > GuildBankRightsAndSlotsVec
Definition: Guild.h:316
uint32 const MinNewsItemLevel
Definition: Guild.h:254
ItemPosCountVec m_vec
Definition: Guild.h:704
bool IsRankNotLower(uint8 rankId) const
Definition: Guild.h:394
const RankInfo * GetRankInfo(uint8 rankId) const
Definition: Guild.h:908
ObjectGuid::LowType m_id
Definition: Guild.h:883
GuildBankRightsAndSlots(uint8 _tabId)
Definition: Guild.h:293
RankInfo * GetRankInfo(uint8 rankId)
Definition: Guild.h:909
GuildLog m_log
Definition: Guild.h:566
uint8 m_destTabId
Definition: Guild.h:509
void BroadcastWorker(Do &_do, Player *except=NULL)
Definition: Guild.h:845
uint8 GetContainer() const
Definition: Guild.h:692
uint8 GetLevel() const
Definition: Guild.h:375
NewsLogEntry(ObjectGuid::LowType guildId, uint32 guid, GuildNews type, ObjectGuid playerGuid, uint32 flags, uint32 value)
Definition: Guild.h:516
virtual bool HasStoreRights(MoveItemData *) const
Definition: Guild.h:673
static bool IsMoneyEvent(GuildBankEventLogTypes eventType)
Definition: Guild.h:476
#define TC_GAME_API
Definition: Define.h:134
#define GUILD_CHALLENGES_TYPES
Definition: Guild.h:257
LogEntry(ObjectGuid::LowType guildId, uint32 guid, time_t timestamp)
Definition: Guild.h:436
std::set< uint32 > GetTrackedCriteriaIds() const
Definition: Guild.h:384
std::string m_name
Definition: Guild.h:612
uint32 m_borderStyle
Definition: Guild.h:283
ObjectGuid::LowType m_guildId
Definition: Guild.h:405
int32_t int32
Definition: g3dmath.h:167
void setUInt64(const uint8 index, const uint64 value)
Definition: PreparedStatement.cpp:124
uint32 m_bankMoneyPerDay
Definition: Guild.h:614
virtual ~LogEntry()
Definition: Guild.h:437
~NewsLogEntry()
Definition: Guild.h:522
uint8 m_container
Definition: Guild.h:700
virtual ~MoveItemData()
Definition: Guild.h:665
uint8_t uint8
Definition: Define.h:152
CharacterDatabaseWorkerPool CharacterDatabase
Accessor to the character database.
Definition: DatabaseEnv.cpp:21
uint8 GetId() const
Definition: Guild.h:584
Player * FindPlayer() const
Definition: Guild.h:401
NewsLogEntry(ObjectGuid::LowType guildId, uint32 guid, time_t timestamp, GuildNews type, ObjectGuid playerGuid, uint32 flags, uint32 value)
Definition: Guild.h:519
const FieldDescriptor value
Definition: descriptor.h:1522
GuildNews GetType() const
Definition: Guild.h:524
uint64 m_bankMoney
Definition: Guild.h:892
bool IsBank() const override
Definition: Guild.h:728
std::vector< BankTab * > BankTabs
Definition: Guild.h:748
uint64 m_timestamp
Definition: Guild.h:447
Player session in the World.
Definition: WorldSession.h:882
Definition: ObjectGuid.h:189
uint64 m_totalActivity
Definition: Guild.h:425
uint32_t uint32
Definition: g3dmath.h:168
uint8 flags
Definition: DisableMgr.cpp:44
const uint32 GuildChallengeGoldReward[GUILD_CHALLENGES_TYPES]
Definition: Guild.h:259
GuildCommandType
Definition: Guild.h:102
GuildEmblemError
Definition: Guild.h:213
uint8 _level
Definition: Guild.h:904
Definition: GuildPackets.h:866
std::string m_name
Definition: Guild.h:654
std::list< LogEntry * > GuildLog
Definition: Guild.h:547
InventoryResult
Definition: Item.h:46
std::string m_officerNote
Definition: Guild.h:419
std::vector< uint32 > AchievementsRequired
Definition: Guild.h:251
std::set< uint32 > m_trackedCriteriaIds
Definition: Guild.h:421
uint32 GetBackgroundColor() const
Definition: Guild.h:278
int8 GetTabId() const
Definition: Guild.h:306
LogHolder * m_newsLog
Definition: Guild.h:901
void SetTabId(uint8 _tabId)
Definition: Guild.h:302
std::string m_info
Definition: Guild.h:887
uint32 GetAccountId() const
Definition: Guild.h:368
void SetAchievementPoints(uint32 val)
Definition: Guild.h:354
Guild * m_pGuild
Definition: Guild.h:698
uint32 GetValue() const
Definition: Guild.h:526
TC_GAME_API Player * FindConnectedPlayer(ObjectGuid const &)
Definition: ObjectAccessor.cpp:215
std::string const & GetInfo() const
Definition: Guild.h:768
uint8 m_bankTabId
Definition: Guild.h:505
Definition: WorldPacket.h:26
bool IsSamePlayer(ObjectGuid guid) const
Definition: Guild.h:395
MoveItemData(Guild *guild, Player *player, uint8 container, uint8 slotId)
Definition: Guild.h:663
int32 slots
Definition: Guild.h:313
BankTab(ObjectGuid::LowType guildId, uint8 tabId)
Definition: Guild.h:621
uint8 m_rankId
Definition: Guild.h:417
uint8 tabId
Definition: Guild.h:311
ObjectGuid GetPlayerGuid() const
Definition: Guild.h:525
std::shared_ptr< Transaction > SQLTransaction
Definition: Transaction.h:58