TrinityCore
Group Class Reference

#include <Group.h>

Classes

class  CountdownInfo
 
struct  MemberSlot
 
struct  NoopGroupDeleter
 

Public Types

typedef std::list< MemberSlotMemberSlotList
 
typedef MemberSlotList::const_iterator member_citerator
 

Public Member Functions

 Group ()
 
 ~Group ()
 
void Update (uint32 diff)
 
bool Create (Player *leader)
 
void LoadGroupFromDB (Field *field)
 
void LoadMemberFromDB (ObjectGuid::LowType guidLow, uint8 memberFlags, uint8 subgroup, uint8 roles)
 
bool AddInvite (Player *player)
 
void RemoveInvite (Player *player)
 
void RemoveAllInvites ()
 
bool AddLeaderInvite (Player *player)
 
bool AddMember (Player *player)
 
bool RemoveMember (ObjectGuid guid, RemoveMethod method=GROUP_REMOVEMETHOD_DEFAULT, ObjectGuid kicker=ObjectGuid::Empty, const char *reason=nullptr)
 
void ChangeLeader (ObjectGuid guid)
 
void SetLootMethod (LootMethod method)
 
void SetLooterGuid (ObjectGuid guid)
 
void SetMasterLooterGuid (ObjectGuid guid)
 
void UpdateLooterGuid (WorldObject *pLootedObject, bool ifneed=false)
 
void SetLootThreshold (ItemQualities threshold)
 
void Disband (bool hideDestroy=false)
 
void SetLfgRoles (ObjectGuid guid, uint8 roles)
 
uint8 GetLfgRoles (ObjectGuid guid)
 
void SetEveryoneIsAssistant (bool apply)
 
bool IsRestrictPingsToAssistants () const
 
void SetRestrictPingsToAssistants (bool restrictPingsToAssistants)
 
void UpdateReadyCheck (uint32 diff)
 
void StartReadyCheck (ObjectGuid starterGuid, Milliseconds duration=Milliseconds(READYCHECK_DURATION))
 
void EndReadyCheck ()
 
bool IsReadyCheckStarted (void) const
 
bool IsReadyCheckCompleted (void) const
 
void SetOfflineMembersReadyChecked (void)
 
void SetMemberReadyCheck (ObjectGuid guid, bool ready)
 
void SetMemberReadyCheck (MemberSlot *slot, bool ready)
 
void SetMemberReadyChecked (MemberSlot *slot)
 
void ResetMemberReadyChecked (void)
 
void AddRaidMarker (uint8 markerId, uint32 mapId, float positionX, float positionY, float positionZ, ObjectGuid transportGuid=ObjectGuid::Empty)
 
void DeleteRaidMarker (uint8 markerId)
 
void SendRaidMarkersChanged (WorldSession *session=nullptr)
 
bool IsFull () const
 
bool isLFGGroup () const
 
bool isRaidGroup () const
 
bool isBGGroup () const
 
bool isBFGroup () const
 
bool IsCreated () const
 
GroupCategory GetGroupCategory () const
 
ObjectGuid GetLeaderGUID () const
 
ObjectGuid GetGUID () const
 
const char * GetLeaderName () const
 
LootMethod GetLootMethod () const
 
ObjectGuid GetLooterGuid () const
 
ObjectGuid GetMasterLooterGuid () const
 
ItemQualities GetLootThreshold () const
 
uint32 GetDbStoreId () const
 
bool IsMember (ObjectGuid guid) const
 
bool IsLeader (ObjectGuid guid) const
 
ObjectGuid GetMemberGUID (const std::string &name)
 
uint8 GetMemberFlags (ObjectGuid guid) const
 
bool IsAssistant (ObjectGuid guid) const
 
PlayerGetInvited (ObjectGuid guid) const
 
PlayerGetInvited (const std::string &name) const
 
bool SameSubGroup (ObjectGuid guid1, ObjectGuid guid2) const
 
bool SameSubGroup (ObjectGuid guid1, MemberSlot const *slot2) const
 
bool SameSubGroup (Player const *member1, Player const *member2) const
 
bool HasFreeSlotSubGroup (uint8 subgroup) const
 
MemberSlotList const & GetMemberSlots () const
 
GroupReferenceGetFirstMember ()
 
GroupReference const * GetFirstMember () const
 
uint32 GetMembersCount () const
 
uint32 GetInviteeCount () const
 
GroupFlags GetGroupFlags () const
 
uint8 GetMemberGroup (ObjectGuid guid) const
 
void ConvertToLFG ()
 
void ConvertToRaid ()
 
void ConvertToGroup ()
 
void SetBattlegroundGroup (Battleground *bg)
 
void SetBattlefieldGroup (Battlefield *bf)
 
GroupJoinBattlegroundResult CanJoinBattlegroundQueue (BattlegroundTemplate const *bgOrTemplate, BattlegroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 MaxPlayerCount, bool isRated, uint32 arenaSlot, ObjectGuid &errorGuid) const
 
void ChangeMembersGroup (ObjectGuid guid, uint8 group)
 
void SwapMembersGroups (ObjectGuid firstGuid, ObjectGuid secondGuid)
 
void SetTargetIcon (uint8 symbol, ObjectGuid target, ObjectGuid changedBy)
 
void SetGroupMemberFlag (ObjectGuid guid, bool apply, GroupMemberFlags flag)
 
void RemoveUniqueGroupMemberFlag (GroupMemberFlags flag)
 
void SetDungeonDifficultyID (Difficulty difficulty)
 
void SetRaidDifficultyID (Difficulty difficulty)
 
void SetLegacyRaidDifficultyID (Difficulty difficulty)
 
Difficulty GetDifficultyID (MapEntry const *mapEntry) const
 
Difficulty GetDungeonDifficultyID () const
 
Difficulty GetRaidDifficultyID () const
 
Difficulty GetLegacyRaidDifficultyID () const
 
void ResetInstances (InstanceResetMethod method, Player *notifyPlayer)
 
void SendTargetIconList (WorldSession *session)
 
void SendUpdate ()
 
void SendUpdateToPlayer (ObjectGuid playerGUID, MemberSlot *slot=nullptr)
 
void SendUpdateDestroyGroupToPlayer (Player *player) const
 
void UpdatePlayerOutOfRange (Player *player)
 
template<class Worker >
void BroadcastWorker (Worker &worker)
 
template<class Worker >
void BroadcastWorker (Worker const &worker) const
 
void BroadcastPacket (WorldPacket const *packet, bool ignorePlayersInBGRaid, int group=-1, ObjectGuid ignoredPlayer=ObjectGuid::Empty) const
 
void BroadcastAddonMessagePacket (WorldPacket const *packet, const std::string &prefix, bool ignorePlayersInBGRaid, int group=-1, ObjectGuid ignore=ObjectGuid::Empty) const
 
void LinkMember (GroupReference *pRef)
 
void DelinkMember (ObjectGuid guid)
 
ObjectGuid GetRecentInstanceOwner (uint32 mapId) const
 
uint32 GetRecentInstanceId (uint32 mapId) const
 
void SetRecentInstance (uint32 mapId, ObjectGuid instanceOwner, uint32 instanceId)
 
void LinkOwnedInstance (GroupInstanceReference *ref)
 
void StartLeaderOfflineTimer ()
 
void StopLeaderOfflineTimer ()
 
void SelectNewPartyOrRaidLeader ()
 
void BroadcastGroupUpdate (void)
 
void StartCountdown (CountdownTimerType timerType, Seconds duration, Optional< time_t > startTime={ })
 
CountdownInfo const * GetCountdownInfo (CountdownTimerType timerType) const
 
Trinity::unique_weak_ptr< GroupGetWeakPtr () const
 

Protected Types

typedef MemberSlotList::iterator member_witerator
 
typedef std::set< Player * > InvitesList
 

Protected Member Functions

bool _setMembersGroup (ObjectGuid guid, uint8 group)
 
void _homebindIfInstance (Player *player)
 
void _initRaidSubGroupsCounter ()
 
member_citerator _getMemberCSlot (ObjectGuid Guid) const
 
member_witerator _getMemberWSlot (ObjectGuid Guid)
 
void SubGroupCounterIncrease (uint8 subgroup)
 
void SubGroupCounterDecrease (uint8 subgroup)
 
void ToggleGroupMemberFlag (member_witerator slot, uint8 flag, bool apply)
 

Protected Attributes

MemberSlotList m_memberSlots
 
GroupRefManager m_memberMgr
 
InvitesList m_invitees
 
ObjectGuid m_leaderGuid
 
uint8 m_leaderFactionGroup
 
std::string m_leaderName
 
GroupFlags m_groupFlags
 
GroupCategory m_groupCategory
 
Difficulty m_dungeonDifficulty
 
Difficulty m_raidDifficulty
 
Difficulty m_legacyRaidDifficulty
 
Battlegroundm_bgGroup
 
Battlefieldm_bfGroup
 
ObjectGuid m_targetIcons [TARGET_ICONS_COUNT]
 
LootMethod m_lootMethod
 
ItemQualities m_lootThreshold
 
ObjectGuid m_looterGuid
 
ObjectGuid m_masterLooterGuid
 
std::unordered_map< uint32, std::pair< ObjectGuid, uint32 > > m_recentInstances
 
GroupInstanceRefManager m_ownedInstancesMgr
 
uint8m_subGroupsCounts
 
ObjectGuid m_guid
 
uint32 m_dbStoreId
 
bool m_isLeaderOffline
 
TimeTracker m_leaderOfflineTimer
 
bool m_readyCheckStarted
 
Milliseconds m_readyCheckTimer
 
std::array< std::unique_ptr< RaidMarker >, RAID_MARKERS_COUNTm_markers
 
uint32 m_activeMarkers
 
std::array< std::unique_ptr< CountdownInfo >, 3 > _countdowns
 
Trinity::unique_trackable_ptr< Groupm_scriptRef
 

Detailed Description

request member stats checken

Todo:
uninvite people that not accepted invite

Definition at line 196 of file Group.h.

Member Typedef Documentation

◆ InvitesList

typedef std::set<Player*> Group::InvitesList
protected

Definition at line 235 of file Group.h.

◆ member_citerator

typedef MemberSlotList::const_iterator Group::member_citerator

Definition at line 211 of file Group.h.

◆ member_witerator

typedef MemberSlotList::iterator Group::member_witerator
protected

Definition at line 234 of file Group.h.

◆ MemberSlotList

typedef std::list<MemberSlot> Group::MemberSlotList

Definition at line 210 of file Group.h.

Constructor & Destructor Documentation

◆ Group()

Group::Group ( )

Definition at line 58 of file Group.cpp.

◆ ~Group()

Group::~Group ( )

Definition at line 73 of file Group.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _getMemberCSlot()

Group::member_citerator Group::_getMemberCSlot ( ObjectGuid  Guid) const
protected

Definition at line 1833 of file Group.cpp.

+ Here is the caller graph for this function:

◆ _getMemberWSlot()

Group::member_witerator Group::_getMemberWSlot ( ObjectGuid  Guid)
protected

Definition at line 1841 of file Group.cpp.

+ Here is the caller graph for this function:

◆ _homebindIfInstance()

void Group::_homebindIfInstance ( Player player)
protected

Definition at line 1405 of file Group.cpp.

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

◆ _initRaidSubGroupsCounter()

void Group::_initRaidSubGroupsCounter ( )
protected

Definition at line 1821 of file Group.cpp.

+ Here is the caller graph for this function:

◆ _setMembersGroup()

bool Group::_setMembersGroup ( ObjectGuid  guid,
uint8  group 
)
protected

Definition at line 993 of file Group.cpp.

+ Here is the call graph for this function:

◆ AddInvite()

bool Group::AddInvite ( Player player)

Definition at line 356 of file Group.cpp.

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

◆ AddLeaderInvite()

bool Group::AddLeaderInvite ( Player player)

Definition at line 377 of file Group.cpp.

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

◆ AddMember()

bool Group::AddMember ( Player player)

Definition at line 426 of file Group.cpp.

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

◆ AddRaidMarker()

void Group::AddRaidMarker ( uint8  markerId,
uint32  mapId,
float  positionX,
float  positionY,
float  positionZ,
ObjectGuid  transportGuid = ObjectGuid::Empty 
)

Definition at line 1586 of file Group.cpp.

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

◆ BroadcastAddonMessagePacket()

void Group::BroadcastAddonMessagePacket ( WorldPacket const *  packet,
const std::string &  prefix,
bool  ignorePlayersInBGRaid,
int  group = -1,
ObjectGuid  ignore = ObjectGuid::Empty 
) const

Definition at line 967 of file Group.cpp.

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

◆ BroadcastGroupUpdate()

void Group::BroadcastGroupUpdate ( void  )

Definition at line 1411 of file Group.cpp.

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

◆ BroadcastPacket()

void Group::BroadcastPacket ( WorldPacket const *  packet,
bool  ignorePlayersInBGRaid,
int  group = -1,
ObjectGuid  ignoredPlayer = ObjectGuid::Empty 
) const

Definition at line 980 of file Group.cpp.

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

◆ BroadcastWorker() [1/2]

template<class Worker >
void Group::BroadcastWorker ( Worker &  worker)
inline

Definition at line 365 of file Group.h.

+ Here is the call graph for this function:

◆ BroadcastWorker() [2/2]

template<class Worker >
void Group::BroadcastWorker ( Worker const &  worker) const
inline

Definition at line 372 of file Group.h.

+ Here is the call graph for this function:

◆ CanJoinBattlegroundQueue()

GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue ( BattlegroundTemplate const *  bgOrTemplate,
BattlegroundQueueTypeId  bgQueueTypeId,
uint32  MinPlayerCount,
uint32  MaxPlayerCount,
bool  isRated,
uint32  arenaSlot,
ObjectGuid errorGuid 
) const

Definition at line 1198 of file Group.cpp.

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

◆ ChangeLeader()

void Group::ChangeLeader ( ObjectGuid  guid)

Definition at line 688 of file Group.cpp.

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

◆ ChangeMembersGroup()

void Group::ChangeMembersGroup ( ObjectGuid  guid,
uint8  group 
)

Definition at line 1028 of file Group.cpp.

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

◆ ConvertToGroup()

void Group::ConvertToGroup ( )

Definition at line 325 of file Group.cpp.

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

◆ ConvertToLFG()

void Group::ConvertToLFG ( )

Definition at line 283 of file Group.cpp.

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

◆ ConvertToRaid()

void Group::ConvertToRaid ( )

Definition at line 301 of file Group.cpp.

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

◆ Create()

bool Group::Create ( Player leader)

Definition at line 141 of file Group.cpp.

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

◆ DeleteRaidMarker()

void Group::DeleteRaidMarker ( uint8  markerId)

Definition at line 1596 of file Group.cpp.

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

◆ DelinkMember()

void Group::DelinkMember ( ObjectGuid  guid)

Definition at line 1806 of file Group.cpp.

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

◆ Disband()

void Group::Disband ( bool  hideDestroy = false)

Definition at line 733 of file Group.cpp.

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

◆ EndReadyCheck()

void Group::EndReadyCheck ( void  )

Definition at line 1518 of file Group.cpp.

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

◆ GetCountdownInfo()

Group::CountdownInfo const * Group::GetCountdownInfo ( CountdownTimerType  timerType) const

Definition at line 1437 of file Group.cpp.

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

◆ GetDbStoreId()

uint32 Group::GetDbStoreId ( ) const
inline

Definition at line 304 of file Group.h.

+ Here is the caller graph for this function:

◆ GetDifficultyID()

Difficulty Group::GetDifficultyID ( MapEntry const *  mapEntry) const

Definition at line 1358 of file Group.cpp.

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

◆ GetDungeonDifficultyID()

Difficulty Group::GetDungeonDifficultyID ( ) const
inline

Definition at line 351 of file Group.h.

+ Here is the caller graph for this function:

◆ GetFirstMember() [1/2]

GroupReference * Group::GetFirstMember ( )
inline

Definition at line 325 of file Group.h.

+ Here is the caller graph for this function:

◆ GetFirstMember() [2/2]

GroupReference const * Group::GetFirstMember ( ) const
inline

Definition at line 326 of file Group.h.

◆ GetGroupCategory()

GroupCategory Group::GetGroupCategory ( ) const
inline

Definition at line 295 of file Group.h.

+ Here is the caller graph for this function:

◆ GetGroupFlags()

GroupFlags Group::GetGroupFlags ( ) const
inline

Definition at line 329 of file Group.h.

+ Here is the caller graph for this function:

◆ GetGUID()

ObjectGuid Group::GetGUID ( ) const

Definition at line 1663 of file Group.cpp.

+ Here is the caller graph for this function:

◆ GetInvited() [1/2]

Player * Group::GetInvited ( const std::string &  name) const

Definition at line 416 of file Group.cpp.

◆ GetInvited() [2/2]

Player * Group::GetInvited ( ObjectGuid  guid) const

Definition at line 406 of file Group.cpp.

+ Here is the caller graph for this function:

◆ GetInviteeCount()

uint32 Group::GetInviteeCount ( ) const
inline

Definition at line 328 of file Group.h.

+ Here is the caller graph for this function:

◆ GetLeaderGUID()

ObjectGuid Group::GetLeaderGUID ( ) const

Definition at line 1658 of file Group.cpp.

+ Here is the caller graph for this function:

◆ GetLeaderName()

char const * Group::GetLeaderName ( ) const

Definition at line 1668 of file Group.cpp.

+ Here is the caller graph for this function:

◆ GetLegacyRaidDifficultyID()

Difficulty Group::GetLegacyRaidDifficultyID ( ) const
inline

Definition at line 353 of file Group.h.

+ Here is the caller graph for this function:

◆ GetLfgRoles()

uint8 Group::GetLfgRoles ( ObjectGuid  guid)

Definition at line 1475 of file Group.cpp.

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

◆ GetLooterGuid()

ObjectGuid Group::GetLooterGuid ( ) const

Definition at line 1678 of file Group.cpp.

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

◆ GetLootMethod()

LootMethod Group::GetLootMethod ( ) const

Definition at line 1673 of file Group.cpp.

+ Here is the caller graph for this function:

◆ GetLootThreshold()

ItemQualities Group::GetLootThreshold ( ) const

Definition at line 1690 of file Group.cpp.

+ Here is the caller graph for this function:

◆ GetMasterLooterGuid()

ObjectGuid Group::GetMasterLooterGuid ( ) const

Definition at line 1685 of file Group.cpp.

+ Here is the caller graph for this function:

◆ GetMemberFlags()

uint8 Group::GetMemberFlags ( ObjectGuid  guid) const

Definition at line 1713 of file Group.cpp.

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

◆ GetMemberGroup()

uint8 Group::GetMemberGroup ( ObjectGuid  guid) const

Definition at line 1742 of file Group.cpp.

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

◆ GetMemberGUID()

ObjectGuid Group::GetMemberGUID ( const std::string &  name)

Definition at line 1705 of file Group.cpp.

◆ GetMembersCount()

uint32 Group::GetMembersCount ( ) const
inline

Definition at line 327 of file Group.h.

+ Here is the caller graph for this function:

◆ GetMemberSlots()

MemberSlotList const & Group::GetMemberSlots ( ) const
inline

Definition at line 324 of file Group.h.

+ Here is the caller graph for this function:

◆ GetRaidDifficultyID()

Difficulty Group::GetRaidDifficultyID ( ) const
inline

Definition at line 352 of file Group.h.

+ Here is the caller graph for this function:

◆ GetRecentInstanceId()

uint32 Group::GetRecentInstanceId ( uint32  mapId) const
inline

Definition at line 390 of file Group.h.

+ Here is the caller graph for this function:

◆ GetRecentInstanceOwner()

ObjectGuid Group::GetRecentInstanceOwner ( uint32  mapId) const
inline

Definition at line 384 of file Group.h.

+ Here is the caller graph for this function:

◆ GetWeakPtr()

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

Definition at line 413 of file Group.h.

◆ HasFreeSlotSubGroup()

bool Group::HasFreeSlotSubGroup ( uint8  subgroup) const

Definition at line 1737 of file Group.cpp.

+ Here is the caller graph for this function:

◆ IsAssistant()

bool Group::IsAssistant ( ObjectGuid  guid) const
inline

Definition at line 311 of file Group.h.

+ Here is the caller graph for this function:

◆ isBFGroup()

bool Group::isBFGroup ( ) const

Definition at line 1648 of file Group.cpp.

+ Here is the caller graph for this function:

◆ isBGGroup()

bool Group::isBGGroup ( ) const

Definition at line 1643 of file Group.cpp.

+ Here is the caller graph for this function:

◆ IsCreated()

bool Group::IsCreated ( ) const

Definition at line 1653 of file Group.cpp.

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

◆ IsFull()

bool Group::IsFull ( ) const

Definition at line 1628 of file Group.cpp.

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

◆ IsLeader()

bool Group::IsLeader ( ObjectGuid  guid) const

Definition at line 1700 of file Group.cpp.

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

◆ isLFGGroup()

bool Group::isLFGGroup ( ) const

Definition at line 1633 of file Group.cpp.

+ Here is the caller graph for this function:

◆ IsMember()

bool Group::IsMember ( ObjectGuid  guid) const

Definition at line 1695 of file Group.cpp.

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

◆ isRaidGroup()

bool Group::isRaidGroup ( ) const

Definition at line 1638 of file Group.cpp.

+ Here is the caller graph for this function:

◆ IsReadyCheckCompleted()

bool Group::IsReadyCheckCompleted ( void  ) const

Definition at line 1534 of file Group.cpp.

+ Here is the caller graph for this function:

◆ IsReadyCheckStarted()

bool Group::IsReadyCheckStarted ( void  ) const
inline

Definition at line 273 of file Group.h.

◆ IsRestrictPingsToAssistants()

bool Group::IsRestrictPingsToAssistants ( ) const

Definition at line 1910 of file Group.cpp.

◆ LinkMember()

void Group::LinkMember ( GroupReference pRef)

Definition at line 1801 of file Group.cpp.

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

◆ LinkOwnedInstance()

void Group::LinkOwnedInstance ( GroupInstanceReference ref)

Definition at line 1400 of file Group.cpp.

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

◆ LoadGroupFromDB()

void Group::LoadGroupFromDB ( Field field)

Definition at line 216 of file Group.cpp.

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

◆ LoadMemberFromDB()

void Group::LoadMemberFromDB ( ObjectGuid::LowType  guidLow,
uint8  memberFlags,
uint8  subgroup,
uint8  roles 
)

Definition at line 250 of file Group.cpp.

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

◆ RemoveAllInvites()

void Group::RemoveAllInvites ( )

Definition at line 397 of file Group.cpp.

+ Here is the caller graph for this function:

◆ RemoveInvite()

void Group::RemoveInvite ( Player player)

Definition at line 388 of file Group.cpp.

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

◆ RemoveMember()

bool Group::RemoveMember ( ObjectGuid  guid,
RemoveMethod  method = GROUP_REMOVEMETHOD_DEFAULT,
ObjectGuid  kicker = ObjectGuid::Empty,
const char *  reason = nullptr 
)

Definition at line 570 of file Group.cpp.

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

◆ RemoveUniqueGroupMemberFlag()

void Group::RemoveUniqueGroupMemberFlag ( GroupMemberFlags  flag)

Definition at line 1861 of file Group.cpp.

+ Here is the caller graph for this function:

◆ ResetInstances()

void Group::ResetInstances ( InstanceResetMethod  method,
Player notifyPlayer 
)

Definition at line 1374 of file Group.cpp.

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

◆ ResetMemberReadyChecked()

void Group::ResetMemberReadyChecked ( void  )

Definition at line 1580 of file Group.cpp.

+ Here is the caller graph for this function:

◆ SameSubGroup() [1/3]

bool Group::SameSubGroup ( ObjectGuid  guid1,
MemberSlot const *  slot2 
) const

Definition at line 1729 of file Group.cpp.

+ Here is the call graph for this function:

◆ SameSubGroup() [2/3]

bool Group::SameSubGroup ( ObjectGuid  guid1,
ObjectGuid  guid2 
) const

Definition at line 1721 of file Group.cpp.

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

◆ SameSubGroup() [3/3]

bool Group::SameSubGroup ( Player const *  member1,
Player const *  member2 
) const

Definition at line 1016 of file Group.cpp.

+ Here is the call graph for this function:

◆ SelectNewPartyOrRaidLeader()

void Group::SelectNewPartyOrRaidLeader ( )

Definition at line 105 of file Group.cpp.

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

◆ SendRaidMarkersChanged()

void Group::SendRaidMarkersChanged ( WorldSession session = nullptr)

Definition at line 1611 of file Group.cpp.

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

◆ SendTargetIconList()

void Group::SendTargetIconList ( WorldSession session)

Definition at line 821 of file Group.cpp.

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

◆ SendUpdate()

void Group::SendUpdate ( )

Definition at line 834 of file Group.cpp.

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

◆ SendUpdateDestroyGroupToPlayer()

void Group::SendUpdateDestroyGroupToPlayer ( Player player) const

Definition at line 937 of file Group.cpp.

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

◆ SendUpdateToPlayer()

void Group::SendUpdateToPlayer ( ObjectGuid  playerGUID,
MemberSlot slot = nullptr 
)

Definition at line 840 of file Group.cpp.

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

◆ SetBattlefieldGroup()

void Group::SetBattlefieldGroup ( Battlefield bf)

Definition at line 1755 of file Group.cpp.

+ Here is the caller graph for this function:

◆ SetBattlegroundGroup()

void Group::SetBattlegroundGroup ( Battleground bg)

Definition at line 1750 of file Group.cpp.

+ Here is the caller graph for this function:

◆ SetDungeonDifficultyID()

void Group::SetDungeonDifficultyID ( Difficulty  difficulty)

Definition at line 1286 of file Group.cpp.

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

◆ SetEveryoneIsAssistant()

void Group::SetEveryoneIsAssistant ( bool  apply)

Definition at line 1887 of file Group.cpp.

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

◆ SetGroupMemberFlag()

void Group::SetGroupMemberFlag ( ObjectGuid  guid,
bool  apply,
GroupMemberFlags  flag 
)

Definition at line 1760 of file Group.cpp.

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

◆ SetLegacyRaidDifficultyID()

void Group::SetLegacyRaidDifficultyID ( Difficulty  difficulty)

Definition at line 1334 of file Group.cpp.

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

◆ SetLfgRoles()

void Group::SetLfgRoles ( ObjectGuid  guid,
uint8  roles 
)

Definition at line 1465 of file Group.cpp.

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

◆ SetLooterGuid()

void Group::SetLooterGuid ( ObjectGuid  guid)

Definition at line 1450 of file Group.cpp.

+ Here is the caller graph for this function:

◆ SetLootMethod()

void Group::SetLootMethod ( LootMethod  method)

Definition at line 1445 of file Group.cpp.

◆ SetLootThreshold()

void Group::SetLootThreshold ( ItemQualities  threshold)

Definition at line 1460 of file Group.cpp.

◆ SetMasterLooterGuid()

void Group::SetMasterLooterGuid ( ObjectGuid  guid)

Definition at line 1455 of file Group.cpp.

◆ SetMemberReadyCheck() [1/2]

void Group::SetMemberReadyCheck ( MemberSlot slot,
bool  ready 
)

Definition at line 1552 of file Group.cpp.

+ Here is the call graph for this function:

◆ SetMemberReadyCheck() [2/2]

void Group::SetMemberReadyCheck ( ObjectGuid  guid,
bool  ready 
)

Definition at line 1542 of file Group.cpp.

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

◆ SetMemberReadyChecked()

void Group::SetMemberReadyChecked ( MemberSlot slot)

Definition at line 1573 of file Group.cpp.

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

◆ SetOfflineMembersReadyChecked()

void Group::SetOfflineMembersReadyChecked ( void  )

Definition at line 1563 of file Group.cpp.

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

◆ SetRaidDifficultyID()

void Group::SetRaidDifficultyID ( Difficulty  difficulty)

Definition at line 1310 of file Group.cpp.

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

◆ SetRecentInstance()

void Group::SetRecentInstance ( uint32  mapId,
ObjectGuid  instanceOwner,
uint32  instanceId 
)
inline

Definition at line 396 of file Group.h.

+ Here is the caller graph for this function:

◆ SetRestrictPingsToAssistants()

void Group::SetRestrictPingsToAssistants ( bool  restrictPingsToAssistants)

Definition at line 1915 of file Group.cpp.

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

◆ SetTargetIcon()

void Group::SetTargetIcon ( uint8  symbol,
ObjectGuid  target,
ObjectGuid  changedBy 
)

Definition at line 800 of file Group.cpp.

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

◆ StartCountdown()

void Group::StartCountdown ( CountdownTimerType  timerType,
Seconds  duration,
Optional< time_t >  startTime = { } 
)

Definition at line 1426 of file Group.cpp.

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

◆ StartLeaderOfflineTimer()

void Group::StartLeaderOfflineTimer ( )

Definition at line 1876 of file Group.cpp.

+ Here is the call graph for this function:

◆ StartReadyCheck()

void Group::StartReadyCheck ( ObjectGuid  starterGuid,
Milliseconds  duration = Milliseconds(READYCHECK_DURATION) 
)

Definition at line 1494 of file Group.cpp.

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

◆ StopLeaderOfflineTimer()

void Group::StopLeaderOfflineTimer ( )

Definition at line 1882 of file Group.cpp.

◆ SubGroupCounterDecrease()

void Group::SubGroupCounterDecrease ( uint8  subgroup)
protected

Definition at line 1855 of file Group.cpp.

+ Here is the caller graph for this function:

◆ SubGroupCounterIncrease()

void Group::SubGroupCounterIncrease ( uint8  subgroup)
protected

Definition at line 1849 of file Group.cpp.

+ Here is the caller graph for this function:

◆ SwapMembersGroups()

void Group::SwapMembersGroups ( ObjectGuid  firstGuid,
ObjectGuid  secondGuid 
)

Definition at line 1080 of file Group.cpp.

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

◆ ToggleGroupMemberFlag()

void Group::ToggleGroupMemberFlag ( member_witerator  slot,
uint8  flag,
bool  apply 
)
protected

Definition at line 1868 of file Group.cpp.

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

◆ Update()

void Group::Update ( uint32  diff)

Definition at line 90 of file Group.cpp.

+ Here is the call graph for this function:

◆ UpdateLooterGuid()

void Group::UpdateLooterGuid ( WorldObject pLootedObject,
bool  ifneed = false 
)

Definition at line 1136 of file Group.cpp.

+ Here is the call graph for this function:

◆ UpdatePlayerOutOfRange()

void Group::UpdatePlayerOutOfRange ( Player player)

Definition at line 949 of file Group.cpp.

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

◆ UpdateReadyCheck()

void Group::UpdateReadyCheck ( uint32  diff)

Definition at line 1484 of file Group.cpp.

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

Member Data Documentation

◆ _countdowns

std::array<std::unique_ptr<CountdownInfo>, 3> Group::_countdowns
protected

Definition at line 460 of file Group.h.

◆ m_activeMarkers

uint32 Group::m_activeMarkers
protected

Definition at line 458 of file Group.h.

◆ m_bfGroup

Battlefield* Group::m_bfGroup
protected

Definition at line 438 of file Group.h.

◆ m_bgGroup

Battleground* Group::m_bgGroup
protected

Definition at line 437 of file Group.h.

◆ m_dbStoreId

uint32 Group::m_dbStoreId
protected

Definition at line 448 of file Group.h.

◆ m_dungeonDifficulty

Difficulty Group::m_dungeonDifficulty
protected

Definition at line 434 of file Group.h.

◆ m_groupCategory

GroupCategory Group::m_groupCategory
protected

Definition at line 433 of file Group.h.

◆ m_groupFlags

GroupFlags Group::m_groupFlags
protected

Definition at line 432 of file Group.h.

◆ m_guid

ObjectGuid Group::m_guid
protected

Definition at line 447 of file Group.h.

◆ m_invitees

InvitesList Group::m_invitees
protected

Definition at line 428 of file Group.h.

◆ m_isLeaderOffline

bool Group::m_isLeaderOffline
protected

Definition at line 449 of file Group.h.

◆ m_leaderFactionGroup

uint8 Group::m_leaderFactionGroup
protected

Definition at line 430 of file Group.h.

◆ m_leaderGuid

ObjectGuid Group::m_leaderGuid
protected

Definition at line 429 of file Group.h.

◆ m_leaderName

std::string Group::m_leaderName
protected

Definition at line 431 of file Group.h.

◆ m_leaderOfflineTimer

TimeTracker Group::m_leaderOfflineTimer
protected

Definition at line 450 of file Group.h.

◆ m_legacyRaidDifficulty

Difficulty Group::m_legacyRaidDifficulty
protected

Definition at line 436 of file Group.h.

◆ m_looterGuid

ObjectGuid Group::m_looterGuid
protected

Definition at line 442 of file Group.h.

◆ m_lootMethod

LootMethod Group::m_lootMethod
protected

Definition at line 440 of file Group.h.

◆ m_lootThreshold

ItemQualities Group::m_lootThreshold
protected

Definition at line 441 of file Group.h.

◆ m_markers

std::array<std::unique_ptr<RaidMarker>, RAID_MARKERS_COUNT> Group::m_markers
protected

Definition at line 457 of file Group.h.

◆ m_masterLooterGuid

ObjectGuid Group::m_masterLooterGuid
protected

Definition at line 443 of file Group.h.

◆ m_memberMgr

GroupRefManager Group::m_memberMgr
protected

Definition at line 427 of file Group.h.

◆ m_memberSlots

MemberSlotList Group::m_memberSlots
protected

Definition at line 426 of file Group.h.

◆ m_ownedInstancesMgr

GroupInstanceRefManager Group::m_ownedInstancesMgr
protected

Definition at line 445 of file Group.h.

◆ m_raidDifficulty

Difficulty Group::m_raidDifficulty
protected

Definition at line 435 of file Group.h.

◆ m_readyCheckStarted

bool Group::m_readyCheckStarted
protected

Definition at line 453 of file Group.h.

◆ m_readyCheckTimer

Milliseconds Group::m_readyCheckTimer
protected

Definition at line 454 of file Group.h.

◆ m_recentInstances

std::unordered_map<uint32 , std::pair<ObjectGuid , uint32 > > Group::m_recentInstances
protected

Definition at line 444 of file Group.h.

◆ m_scriptRef

Trinity::unique_trackable_ptr<Group> Group::m_scriptRef
protected

Definition at line 463 of file Group.h.

◆ m_subGroupsCounts

uint8* Group::m_subGroupsCounts
protected

Definition at line 446 of file Group.h.

◆ m_targetIcons

ObjectGuid Group::m_targetIcons[TARGET_ICONS_COUNT]
protected

Definition at line 439 of file Group.h.


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