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

#include <Group.h>

Classes

struct  MemberSlot
 
struct  NoopGroupDeleter
 

Public Types

typedef std::list< MemberSlot > MemberSlotList
 
typedef MemberSlotList::const_iterator member_citerator
 
typedef std::unordered_map< uint32, InstanceGroupBind > BoundInstancesMap
 

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 const &method=GROUP_REMOVEMETHOD_DEFAULT, ObjectGuid kicker=ObjectGuid::Empty, char const *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)
 
bool IsFull () const
 
bool isLFGGroup () const
 
bool isRaidGroup () const
 
bool isBGGroup () const
 
bool isBFGroup () const
 
bool IsCreated () 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
 
Player * GetInvited (ObjectGuid guid) const
 
Player * GetInvited (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
 
GroupReference * GetFirstMember ()
 
GroupReference const * GetFirstMember () const
 
uint32 GetMembersCount () const
 
uint32 GetInviteeCount () const
 
GroupType GetGroupType () const
 
uint8 GetMemberGroup (ObjectGuid guid) const
 
void ConvertToLFG ()
 
void ConvertToRaid ()
 
void SetBattlegroundGroup (Battleground *bg)
 
void SetBattlefieldGroup (Battlefield *bf)
 
GroupJoinBattlegroundResult CanJoinBattlegroundQueue (Battleground const *bgOrTemplate, BattlegroundQueueTypeId bgQueueTypeId, uint32 MinPlayerCount, uint32 MaxPlayerCount, bool isRated, uint32 arenaSlot, ObjectGuid &errorGuid) const
 
void ChangeMembersGroup (ObjectGuid guid, uint8 group)
 
void SetTargetIcon (uint8 id, ObjectGuid whoGuid, ObjectGuid targetGuid)
 
void SetGroupMemberFlag (ObjectGuid guid, bool apply, GroupMemberFlags flag)
 
void RemoveUniqueGroupMemberFlag (GroupMemberFlags flag)
 
void SetDungeonDifficultyID (Difficulty difficulty)
 
void SetRaidDifficultyID (Difficulty difficulty)
 
Difficulty GetDifficultyID (MapEntry const *mapEntry) const
 
Difficulty GetDungeonDifficultyID () const
 
Difficulty GetRaidDifficultyID () const
 
void ResetInstances (uint8 method, bool isRaid, Player *SendMsgTo)
 
void SendTargetIconList (WorldSession *session)
 
void SendUpdate ()
 
void SendUpdateToPlayer (Player const *player, MemberSlot const *slot=nullptr)
 
void SendOriginalGroupUpdateToPlayer (Player const *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)
 
void BroadcastReadyCheck (WorldPacket const *packet)
 
void OfflineReadyCheck ()
 
bool isRollLootActive () const
 
void SendLootStartRoll (uint32 CountDown, uint32 mapid, Roll const &r)
 
void SendLootStartRollToPlayer (uint32 countDown, uint32 mapId, Player *p, bool canNeed, Roll const &r)
 
void SendLootRoll (ObjectGuid SourceGuid, ObjectGuid TargetGuid, uint8 RollNumber, uint8 RollType, Roll const &r, bool autoPass=false)
 
void SendLootRollWon (ObjectGuid SourceGuid, ObjectGuid TargetGuid, uint8 RollNumber, uint8 RollType, Roll const &r)
 
void SendLootAllPassed (Roll const &roll)
 
void SendLooter (Creature *creature, Player *pLooter)
 
void GroupLoot (Loot *loot, WorldObject *pLootedObject)
 
void NeedBeforeGreed (Loot *loot, WorldObject *pLootedObject)
 
void MasterLoot (Loot *loot, WorldObject *pLootedObject)
 
Rolls::iterator GetRoll (ObjectGuid Guid)
 
void CountTheRoll (Rolls::iterator roll, Map *allowedMap)
 
bool CountRollVote (ObjectGuid playerGUID, ObjectGuid Guid, uint8 Choise)
 
void EndRoll (Loot *loot, Map *allowedMap)
 
void ResetMaxEnchantingLevel ()
 
void LinkMember (GroupReference *pRef)
 
void DelinkMember (ObjectGuid guid)
 
InstanceGroupBind * BindToInstance (InstanceSave *save, bool permanent, bool load=false)
 
void UnbindInstance (uint32 mapid, uint8 difficulty, bool unload=false)
 
InstanceGroupBind * GetBoundInstance (Player *player)
 
InstanceGroupBind * GetBoundInstance (Map *aMap)
 
InstanceGroupBind * GetBoundInstance (MapEntry const *mapEntry)
 
InstanceGroupBind * GetBoundInstance (Difficulty difficulty, uint32 mapId)
 
BoundInstancesMap & GetBoundInstances (Difficulty difficulty)
 
void StartLeaderOfflineTimer ()
 
void StopLeaderOfflineTimer ()
 
void SelectNewPartyOrRaidLeader ()
 
void BroadcastGroupUpdate (void)
 
Trinity::unique_weak_ptr< Group > GetWeakPtr () const
 

Static Public Member Functions

static void ConvertLeaderInstancesToGroup (Player *player, Group *group, bool switchLeader)
 convert the player's binds to the group
 

Protected Types

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

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
 
std::string m_leaderName
 
GroupType m_groupType
 
Difficulty m_dungeonDifficulty
 
Difficulty m_raidDifficulty
 
Battleground * m_bgGroup
 
Battlefield * m_bfGroup
 
ObjectGuid m_targetIcons [TARGET_ICONS_COUNT]
 
LootMethod m_lootMethod
 
ItemQualities m_lootThreshold
 
ObjectGuid m_looterGuid
 
ObjectGuid m_masterLooterGuid
 
Rolls RollId
 
BoundInstancesMap m_boundInstances [MAX_DIFFICULTY]
 
uint8 * m_subGroupsCounts
 
ObjectGuid m_guid
 
uint32 m_counter
 
uint32 m_maxEnchantingLevel
 
uint32 m_dbStoreId
 
bool m_isLeaderOffline
 
TimeTracker m_leaderOfflineTimer
 
Trinity::unique_trackable_ptr< Group > m_scriptRef
 

Detailed Description

request member stats checken

Todo:
uninvite people that not accepted invite

Definition at line 164 of file Group.h.

Member Typedef Documentation

◆ BoundInstancesMap

typedef std::unordered_map< uint32 , InstanceGroupBind> Group::BoundInstancesMap

Definition at line 178 of file Group.h.

◆ InvitesList

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

Definition at line 181 of file Group.h.

◆ member_citerator

typedef MemberSlotList::const_iterator Group::member_citerator

Definition at line 176 of file Group.h.

◆ member_witerator

typedef MemberSlotList::iterator Group::member_witerator
protected

Definition at line 180 of file Group.h.

◆ MemberSlotList

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

Definition at line 175 of file Group.h.

◆ Rolls

typedef std::vector<Roll*> Group::Rolls
protected

Definition at line 183 of file Group.h.

Constructor & Destructor Documentation

◆ Group()

Group::Group ( )

Definition at line 62 of file Group.cpp.

References m_targetIcons, and TARGET_ICONS_COUNT.

◆ ~Group()

Member Function Documentation

◆ _getMemberCSlot()

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

◆ _getMemberWSlot()

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

◆ _homebindIfInstance()

void Group::_homebindIfInstance ( Player *  player)
protected

◆ _initRaidSubGroupsCounter()

void Group::_initRaidSubGroupsCounter ( )
protected

Definition at line 2599 of file Group.cpp.

References m_memberSlots, m_subGroupsCounts, and MAX_RAID_SUBGROUPS.

Referenced by ConvertToRaid(), Create(), and LoadGroupFromDB().

◆ _setMembersGroup()

◆ AddInvite()

◆ AddLeaderInvite()

bool Group::AddLeaderInvite ( Player *  player)

◆ AddMember()

bool Group::AddMember ( Player *  player)

Definition at line 386 of file Group.cpp.

References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), CHAR_INS_GROUP_MEMBER, CharacterDatabase, Player::CheckInstanceValidity(), Group::MemberSlot::flags, ObjectGuid::GetCounter(), GetFirstMember(), Player::GetGroup(), Object::GetGUID(), WorldObject::GetName(), Player::GetSkillValue(), Group::MemberSlot::group, GROUP_UPDATE_FULL, Group::MemberSlot::guid, UpdateData::HasData(), Player::HaveAtClient(), INSTANCE_RESET_GROUP_JOIN, isBFGroup(), isBGGroup(), IsLeader(), isRaidGroup(), m_dbStoreId, Player::m_InstanceValid, m_maxEnchantingLevel, m_memberSlots, m_subGroupsCounts, m_targetIcons, MAX_GROUP_SIZE, MAX_RAID_SUBGROUPS, Group::MemberSlot::name, GroupReference::next(), Object::RemoveFieldNotifyFlag(), Player::ResetInstances(), Group::MemberSlot::roles, Player::SendDirectMessage(), SendUpdate(), Player::SetBattlegroundOrBattlefieldRaid(), Object::SetFieldNotifyFlag(), Player::SetGroup(), Player::SetGroupInvite(), Player::SetGroupUpdateFlag(), Player::SetOriginalGroup(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), SKILL_ENCHANTING, sScriptMgr, SubGroupCounterIncrease(), TARGET_ICONS_COUNT, UF_FLAG_PARTY_MEMBER, UpdatePlayerOutOfRange(), and Player::UpdateVisibleGameobjectsOrSpellClicks().

Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Create(), group_commandscript::HandleGroupJoinCommand(), and lfg::LFGMgr::MakeNewGroup().

◆ BindToInstance()

◆ BroadcastGroupUpdate()

◆ BroadcastPacket()

◆ BroadcastReadyCheck()

◆ BroadcastWorker() [1/2]

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

Definition at line 283 of file Group.h.

References GroupReference::next().

◆ BroadcastWorker() [2/2]

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

Definition at line 290 of file Group.h.

References GroupReference::next().

◆ CanJoinBattlegroundQueue()

◆ ChangeLeader()

◆ ChangeMembersGroup()

◆ ConvertLeaderInstancesToGroup()

void Group::ConvertLeaderInstancesToGroup ( Player *  player,
Group *  group,
bool  switchLeader 
)
static

◆ ConvertToLFG()

◆ ConvertToRaid()

◆ CountRollVote()

◆ CountTheRoll()

◆ Create()

◆ DelinkMember()

◆ Disband()

◆ EndRoll()

void Group::EndRoll ( Loot *  loot,
Map *  allowedMap 
)

Definition at line 1443 of file Group.cpp.

References CountTheRoll(), and RollId.

◆ GetBoundInstance() [1/4]

InstanceGroupBind * Group::GetBoundInstance ( Difficulty  difficulty,
uint32  mapId 
)

Definition at line 2263 of file Group.cpp.

References GetDownscaledMapDifficultyData(), and m_boundInstances.

◆ GetBoundInstance() [2/4]

InstanceGroupBind * Group::GetBoundInstance ( Map *  aMap)

Definition at line 2249 of file Group.cpp.

References GetBoundInstance(), and Map::GetEntry().

◆ GetBoundInstance() [3/4]

InstanceGroupBind * Group::GetBoundInstance ( MapEntry const *  mapEntry)

Definition at line 2254 of file Group.cpp.

References GetBoundInstance(), GetDifficultyID(), MapEntry::ID, and MapEntry::IsDungeon().

◆ GetBoundInstance() [4/4]

◆ GetBoundInstances()

Group::BoundInstancesMap & Group::GetBoundInstances ( Difficulty  difficulty)

Definition at line 2594 of file Group.cpp.

References m_boundInstances.

◆ GetDbStoreId()

uint32 Group::GetDbStoreId ( ) const
inline

◆ GetDifficultyID()

◆ GetDungeonDifficultyID()

Difficulty Group::GetDungeonDifficultyID ( ) const
inline

Definition at line 270 of file Group.h.

Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and ResetInstances().

◆ GetFirstMember() [1/2]

◆ GetFirstMember() [2/2]

GroupReference const * Group::GetFirstMember ( ) const
inline

Definition at line 248 of file Group.h.

◆ GetGroupType()

GroupType Group::GetGroupType ( ) const
inline

Definition at line 251 of file Group.h.

◆ GetGUID()

◆ GetInvited() [1/2]

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

Definition at line 376 of file Group.cpp.

References m_invitees.

◆ GetInvited() [2/2]

Player * Group::GetInvited ( ObjectGuid  guid) const

◆ GetInviteeCount()

uint32 Group::GetInviteeCount ( ) const
inline

Definition at line 250 of file Group.h.

Referenced by Player::UninviteFromGroup().

◆ GetLeaderGUID()

◆ GetLeaderName()

char const * Group::GetLeaderName ( ) const

Definition at line 2432 of file Group.cpp.

References m_leaderName.

Referenced by ChatLogScript::OnChat().

◆ GetLooterGuid()

ObjectGuid Group::GetLooterGuid ( ) const

Definition at line 2442 of file Group.cpp.

References ObjectGuid::Empty, FREE_FOR_ALL, GetLootMethod(), and m_looterGuid.

Referenced by Unit::Kill(), and UpdateLooterGuid().

◆ GetLootMethod()

◆ GetLootThreshold()

ItemQualities Group::GetLootThreshold ( ) const

Definition at line 2454 of file Group.cpp.

References m_lootThreshold.

Referenced by Loot::FillLoot().

◆ GetMasterLooterGuid()

◆ GetMemberFlags()

uint8 Group::GetMemberFlags ( ObjectGuid  guid) const

Definition at line 2477 of file Group.cpp.

References _getMemberCSlot(), and m_memberSlots.

Referenced by group_commandscript::GroupFlagCommand().

◆ GetMemberGroup()

◆ GetMemberGUID()

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

Definition at line 2469 of file Group.cpp.

References ObjectGuid::Empty, and m_memberSlots.

Referenced by WorldSession::HandleGroupUninviteOpcode().

◆ GetMembersCount()

◆ GetMemberSlots()

MemberSlotList const & Group::GetMemberSlots ( ) const
inline

◆ GetRaidDifficultyID()

Difficulty Group::GetRaidDifficultyID ( ) const
inline

Definition at line 271 of file Group.h.

Referenced by WorldSession::HandleSetRaidDifficultyOpcode(), and ResetInstances().

◆ GetRoll()

Group::Rolls::iterator Group::GetRoll ( ObjectGuid  Guid)

Definition at line 2565 of file Group.cpp.

References RollId.

Referenced by CountRollVote().

◆ GetWeakPtr()

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

Definition at line 340 of file Group.h.

◆ GroupLoot()

◆ HasFreeSlotSubGroup()

bool Group::HasFreeSlotSubGroup ( uint8  subgroup) const

Definition at line 2501 of file Group.cpp.

References m_subGroupsCounts, and MAX_GROUP_SIZE.

Referenced by WorldSession::HandleGroupChangeSubGroupOpcode().

◆ IsAssistant()

◆ isBFGroup()

◆ isBGGroup()

◆ IsCreated()

bool Group::IsCreated ( ) const

Definition at line 2417 of file Group.cpp.

References GetMembersCount().

Referenced by WorldSession::HandleGroupInviteOpcode(), and Player::UninviteFromGroup().

◆ IsFull()

bool Group::IsFull ( ) const

◆ IsLeader()

◆ isLFGGroup()

◆ IsMember()

◆ isRaidGroup()

◆ isRollLootActive()

bool Group::isRollLootActive ( ) const
inline

Definition at line 304 of file Group.h.

Referenced by Player::CanUninviteFromGroup().

◆ LinkMember()

void Group::LinkMember ( GroupReference *  pRef)

Definition at line 2574 of file Group.cpp.

References LinkedListHead::insertFirst(), and m_memberMgr.

Referenced by GroupReference::targetObjectBuildLink().

◆ LoadGroupFromDB()

◆ LoadMemberFromDB()

◆ MasterLoot()

◆ NeedBeforeGreed()

◆ OfflineReadyCheck()

◆ RemoveAllInvites()

void Group::RemoveAllInvites ( )

Definition at line 357 of file Group.cpp.

References m_invitees.

Referenced by Disband(), WorldSession::HandleGroupInviteOpcode(), and Player::UninviteFromGroup().

◆ RemoveInvite()

void Group::RemoveInvite ( Player *  player)

◆ RemoveMember()

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

◆ RemoveUniqueGroupMemberFlag()

void Group::RemoveUniqueGroupMemberFlag ( GroupMemberFlags  flag)

Definition at line 2639 of file Group.cpp.

References m_memberSlots.

Referenced by WorldSession::HandlePartyAssignmentOpcode(), and SetGroupMemberFlag().

◆ ResetInstances()

◆ ResetMaxEnchantingLevel()

void Group::ResetMaxEnchantingLevel ( )

◆ SameSubGroup() [1/3]

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

Definition at line 2493 of file Group.cpp.

References _getMemberCSlot(), Group::MemberSlot::group, and m_memberSlots.

◆ SameSubGroup() [2/3]

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

◆ SameSubGroup() [3/3]

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

Definition at line 1850 of file Group.cpp.

References Player::GetGroup(), and Player::GetSubGroup().

◆ SelectNewPartyOrRaidLeader()

void Group::SelectNewPartyOrRaidLeader ( )

◆ SendLootAllPassed()

◆ SendLooter()

◆ SendLootRoll()

void Group::SendLootRoll ( ObjectGuid  SourceGuid,
ObjectGuid  TargetGuid,
uint8  RollNumber,
uint8  RollType,
Roll const &  r,
bool  autoPass = false 
)

◆ SendLootRollWon()

void Group::SendLootRollWon ( ObjectGuid  SourceGuid,
ObjectGuid  TargetGuid,
uint8  RollNumber,
uint8  RollType,
Roll const &  r 
)

◆ SendLootStartRoll()

◆ SendLootStartRollToPlayer()

void Group::SendLootStartRollToPlayer ( uint32  countDown,
uint32  mapId,
Player *  p,
bool  canNeed,
Roll const &  r 
)

◆ SendOriginalGroupUpdateToPlayer()

void Group::SendOriginalGroupUpdateToPlayer ( Player const *  player) const

◆ SendTargetIconList()

void Group::SendTargetIconList ( WorldSession *  session)

◆ SendUpdate()

◆ SendUpdateToPlayer()

◆ SetBattlefieldGroup()

void Group::SetBattlefieldGroup ( Battlefield *  bf)

Definition at line 2519 of file Group.cpp.

References m_bfGroup.

Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup().

◆ SetBattlegroundGroup()

void Group::SetBattlegroundGroup ( Battleground *  bg)

Definition at line 2514 of file Group.cpp.

References m_bgGroup.

Referenced by Battleground::SetBgRaid().

◆ SetDungeonDifficultyID()

◆ SetGroupMemberFlag()

◆ SetLfgRoles()

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

Definition at line 2382 of file Group.cpp.

References _getMemberWSlot(), m_memberSlots, and SendUpdate().

Referenced by lfg::LFGMgr::MakeNewGroup().

◆ SetLooterGuid()

void Group::SetLooterGuid ( ObjectGuid  guid)

Definition at line 2367 of file Group.cpp.

References m_looterGuid.

Referenced by UpdateLooterGuid().

◆ SetLootMethod()

void Group::SetLootMethod ( LootMethod  method)

Definition at line 2362 of file Group.cpp.

References m_lootMethod.

Referenced by WorldSession::HandleLootMethodOpcode().

◆ SetLootThreshold()

void Group::SetLootThreshold ( ItemQualities  threshold)

Definition at line 2377 of file Group.cpp.

References m_lootThreshold.

Referenced by WorldSession::HandleLootMethodOpcode().

◆ SetMasterLooterGuid()

void Group::SetMasterLooterGuid ( ObjectGuid  guid)

Definition at line 2372 of file Group.cpp.

References m_masterLooterGuid.

Referenced by WorldSession::HandleLootMethodOpcode().

◆ SetRaidDifficultyID()

◆ SetTargetIcon()

void Group::SetTargetIcon ( uint8  id,
ObjectGuid  whoGuid,
ObjectGuid  targetGuid 
)

◆ StartLeaderOfflineTimer()

void Group::StartLeaderOfflineTimer ( )

◆ StopLeaderOfflineTimer()

void Group::StopLeaderOfflineTimer ( )

Definition at line 2660 of file Group.cpp.

References m_isLeaderOffline.

◆ SubGroupCounterDecrease()

void Group::SubGroupCounterDecrease ( uint8  subgroup)
protected

Definition at line 2633 of file Group.cpp.

References m_subGroupsCounts.

Referenced by ChangeMembersGroup(), and RemoveMember().

◆ SubGroupCounterIncrease()

void Group::SubGroupCounterIncrease ( uint8  subgroup)
protected

Definition at line 2627 of file Group.cpp.

References m_subGroupsCounts.

Referenced by _setMembersGroup(), AddMember(), ChangeMembersGroup(), and LoadMemberFromDB().

◆ ToggleGroupMemberFlag()

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

Definition at line 2646 of file Group.cpp.

Referenced by ChangeLeader(), and SetGroupMemberFlag().

◆ UnbindInstance()

void Group::UnbindInstance ( uint32  mapid,
uint8  difficulty,
bool  unload = false 
)

◆ Update()

◆ UpdateLooterGuid()

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

◆ UpdatePlayerOutOfRange()

Member Data Documentation

◆ m_bfGroup

Battlefield* Group::m_bfGroup
protected

Definition at line 362 of file Group.h.

Referenced by isBFGroup(), and SetBattlefieldGroup().

◆ m_bgGroup

Battleground* Group::m_bgGroup
protected

Definition at line 361 of file Group.h.

Referenced by isBGGroup(), SetBattlegroundGroup(), and ~Group().

◆ m_boundInstances

BoundInstancesMap Group::m_boundInstances[MAX_DIFFICULTY]
protected

◆ m_counter

uint32 Group::m_counter
protected

Definition at line 372 of file Group.h.

Referenced by Disband(), RemoveMember(), and SendUpdateToPlayer().

◆ m_dbStoreId

◆ m_dungeonDifficulty

Difficulty Group::m_dungeonDifficulty
protected

◆ m_groupType

◆ m_guid

ObjectGuid Group::m_guid
protected

Definition at line 371 of file Group.h.

Referenced by Create(), Disband(), GetGUID(), LoadGroupFromDB(), RemoveMember(), and SendUpdateToPlayer().

◆ m_invitees

InvitesList Group::m_invitees
protected

Definition at line 355 of file Group.h.

Referenced by AddInvite(), GetInvited(), GetInvited(), RemoveAllInvites(), and RemoveInvite().

◆ m_isLeaderOffline

bool Group::m_isLeaderOffline
protected

Definition at line 375 of file Group.h.

Referenced by StartLeaderOfflineTimer(), StopLeaderOfflineTimer(), and Update().

◆ m_leaderGuid

◆ m_leaderName

std::string Group::m_leaderName
protected

Definition at line 357 of file Group.h.

Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeaderName(), and LoadGroupFromDB().

◆ m_leaderOfflineTimer

TimeTracker Group::m_leaderOfflineTimer
protected

Definition at line 376 of file Group.h.

Referenced by StartLeaderOfflineTimer(), and Update().

◆ m_looterGuid

ObjectGuid Group::m_looterGuid
protected

Definition at line 366 of file Group.h.

Referenced by Create(), GetLooterGuid(), LoadGroupFromDB(), and SetLooterGuid().

◆ m_lootMethod

LootMethod Group::m_lootMethod
protected

◆ m_lootThreshold

ItemQualities Group::m_lootThreshold
protected

◆ m_masterLooterGuid

ObjectGuid Group::m_masterLooterGuid
protected

◆ m_maxEnchantingLevel

uint32 Group::m_maxEnchantingLevel
protected

Definition at line 373 of file Group.h.

Referenced by AddMember(), GroupLoot(), NeedBeforeGreed(), and ResetMaxEnchantingLevel().

◆ m_memberMgr

GroupRefManager Group::m_memberMgr
protected

Definition at line 354 of file Group.h.

Referenced by DelinkMember(), LinkMember(), and RemoveMember().

◆ m_memberSlots

◆ m_raidDifficulty

Difficulty Group::m_raidDifficulty
protected

◆ m_scriptRef

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

Definition at line 379 of file Group.h.

◆ m_subGroupsCounts

uint8* Group::m_subGroupsCounts
protected

◆ m_targetIcons

ObjectGuid Group::m_targetIcons[TARGET_ICONS_COUNT]
protected

Definition at line 363 of file Group.h.

Referenced by AddMember(), Create(), Group(), LoadGroupFromDB(), SendTargetIconList(), and SetTargetIcon().

◆ RollId

Rolls Group::RollId
protected

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