![]() |
TrinityCore
|
#include <Group.h>
Classes | |
| class | CountdownInfo |
| struct | MemberSlot |
| struct | NoopGroupDeleter |
Public Types | |
| typedef std::list< MemberSlot > | MemberSlotList |
| typedef MemberSlotList::const_iterator | member_citerator |
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) |
request member stats checken
|
protected |
| typedef MemberSlotList::const_iterator Group::member_citerator |
|
protected |
| typedef std::list<MemberSlot> Group::MemberSlotList |
| Group::Group | ( | ) |
Definition at line 58 of file Group.cpp.
References m_countdowns, m_markers, m_targetIcons, RAID_MARKERS_COUNT, and TARGET_ICONS_COUNT.
| Group::~Group | ( | ) |
Definition at line 73 of file Group.cpp.
References ALLIANCE, Battleground::GetBgRaid(), HORDE, m_bgGroup, m_subGroupsCounts, Battleground::SetBgRaid(), TC_LOG_DEBUG, and TC_LOG_ERROR.
|
protected |
Definition at line 1786 of file Group.cpp.
References Group::MemberSlot::guid, and m_memberSlots.
Referenced by GetLfgRoles(), GetMemberFlags(), GetMemberGroup(), IsMember(), SameSubGroup(), SameSubGroup(), SendUpdateToPlayer(), and UpdateLooterGuid().
|
protected |
Definition at line 1791 of file Group.cpp.
References Group::MemberSlot::guid, and m_memberSlots.
Referenced by _setMembersGroup(), ChangeLeader(), ChangeMembersGroup(), RemoveMember(), SetGroupMemberFlag(), SetLfgRoles(), SetMemberReadyCheck(), StartReadyCheck(), and SwapMembersGroups().
|
protected |
Definition at line 1365 of file Group.cpp.
References WorldLocation::GetMapId(), Player::IsGameMaster(), Player::m_InstanceValid, and sMapStore.
Referenced by Disband(), and RemoveMember().
|
protected |
Definition at line 1774 of file Group.cpp.
References m_memberSlots, m_subGroupsCounts, and MAX_RAID_SUBGROUPS.
Referenced by ConvertToRaid(), Create(), and LoadGroupFromDB().
|
protected |
Definition at line 971 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_SUBGROUP, CharacterDatabase, ObjectGuid::GetCounter(), isBFGroup(), isBGGroup(), m_memberSlots, PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and SubGroupCounterIncrease().
| bool Group::AddInvite | ( | Player * | player | ) |
Definition at line 354 of file Group.cpp.
References Player::GetGroup(), Player::GetGroupInvite(), BaseEntity::GetGUID(), Player::GetOriginalGroup(), isBFGroup(), isBGGroup(), m_invitees, RemoveInvite(), Player::SetGroupInvite(), and sScriptMgr.
Referenced by AddLeaderInvite(), and WorldSession::HandlePartyInviteOpcode().
| bool Group::AddLeaderInvite | ( | Player * | player | ) |
Definition at line 375 of file Group.cpp.
References AddInvite(), Player::GetFactionGroupForRace(), BaseEntity::GetGUID(), WorldObject::GetName(), Unit::GetRace(), m_leaderFactionGroup, m_leaderGuid, and m_leaderName.
Referenced by WorldSession::HandlePartyInviteOpcode().
| bool Group::AddMember | ( | Player * | player | ) |
Definition at line 424 of file Group.cpp.
References Group::MemberSlot::_class, UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayerWithFlag(), CHAR_INS_GROUP_MEMBER, CharacterDatabase, Player::CheckInstanceValidity(), Player::FailCriteria(), Group::MemberSlot::flags, Unit::GetClass(), ObjectGuid::GetCounter(), Player::GetGroup(), BaseEntity::GetGUID(), WorldLocation::GetMapId(), GetMembers(), WorldObject::GetName(), Player::GetPet(), Unit::GetRace(), Group::MemberSlot::group, GROUP_TYPE_NORMAL, GROUP_UPDATE_FULL, GROUP_UPDATE_PET_FULL, Group::MemberSlot::guid, UpdateData::HasData(), Player::HaveAtClient(), isBFGroup(), isBGGroup(), isRaidGroup(), m_dbStoreId, m_groupCategory, Player::m_InstanceValid, m_memberSlots, m_subGroupsCounts, m_targetIcons, MAX_GROUP_SIZE, MAX_RAID_SUBGROUPS, ModifyPartyStatus, Group::MemberSlot::name, UF::PartyMember, Group::MemberSlot::race, Group::MemberSlot::readyChecked, Player::ResetGroupUpdateSequenceIfNeeded(), Group::MemberSlot::roles, Player::SendDirectMessage(), SendUpdate(), Player::SetBattlegroundOrBattlefieldRaid(), Player::SetGroup(), Player::SetGroupInvite(), Player::SetGroupUpdateFlag(), Player::SetOriginalGroup(), Player::SetPartyType(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sScriptMgr, SubGroupCounterIncrease(), TARGET_ICONS_COUNT, UpdatePlayerOutOfRange(), and Player::UpdateVisibleObjectInteractions().
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Create(), group_commandscript::HandleGroupJoinCommand(), WorldSession::HandlePartyInviteResponseOpcode(), and lfg::LFGMgr::MakeNewGroup().
| void Group::AddRaidMarker | ( | uint8 | markerId, |
| uint32 | mapId, | ||
| float | positionX, | ||
| float | positionY, | ||
| float | positionZ, | ||
| ObjectGuid | transportGuid = ObjectGuid::Empty |
||
| ) |
Definition at line 1546 of file Group.cpp.
References m_activeMarkers, m_markers, RAID_MARKERS_COUNT, and SendRaidMarkersChanged().
Referenced by Spell::EffectChangeRaidMarker().
| void Group::BroadcastAddonMessagePacket | ( | WorldPacket const * | packet, |
| const std::string & | prefix, | ||
| bool | ignorePlayersInBGRaid, | ||
| int | group = -1, |
||
| ObjectGuid | ignore = ObjectGuid::Empty |
||
| ) | const |
Definition at line 945 of file Group.cpp.
References Player::GetGroup(), BaseEntity::GetGUID(), GetMembers(), Player::GetSession(), WorldSession::IsAddonRegistered(), ObjectGuid::IsEmpty(), and Player::SendDirectMessage().
Referenced by WorldSession::HandleChatAddonMessage().
| void Group::BroadcastGroupUpdate | ( | void | ) |
Definition at line 1371 of file Group.cpp.
References UF::UnitData::FactionTemplate, ObjectAccessor::FindPlayer(), m_memberSlots, Unit::m_unitData, UF::UnitData::PvpFlags, and TC_LOG_DEBUG.
Referenced by group_commandscript::HandleGroupJoinCommand(), WorldSession::HandlePartyInviteResponseOpcode(), and RemoveMember().
| void Group::BroadcastPacket | ( | WorldPacket const * | packet, |
| bool | ignorePlayersInBGRaid, | ||
| int | group = -1, |
||
| ObjectGuid | ignoredPlayer = ObjectGuid::Empty |
||
| ) | const |
Definition at line 958 of file Group.cpp.
References Player::GetGroup(), BaseEntity::GetGUID(), GetMembers(), ObjectGuid::IsEmpty(), and Player::SendDirectMessage().
Referenced by ChangeLeader(), EndReadyCheck(), WorldSession::HandleChatMessage(), WorldSession::HandleInitiateRolePoll(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandleSetRoleOpcode(), Player::SendNewItem(), Player::SendQuestUpdateAddItem(), SendRaidMarkersChanged(), SetMemberReadyCheck(), SetTargetIcon(), and StartReadyCheck().
|
inline |
| GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue | ( | BattlegroundTemplate const * | bgOrTemplate, |
| BattlegroundQueueTypeId | bgQueueTypeId, | ||
| uint32 | MinPlayerCount, | ||
| uint32 | MaxPlayerCount, | ||
| bool | isRated, | ||
| uint32 | arenaSlot, | ||
| ObjectGuid & | errorGuid | ||
| ) | const |
Definition at line 1176 of file Group.cpp.
References Battleground, BATTLEGROUND_AA, BATTLEGROUND_RANDOM_EPIC, BATTLEGROUND_RB, RefManager< ReferenceType >::begin(), BattlegroundMgr::BGQueueTypeId(), Player::CanJoinToBattleground(), ObjectGuid::Empty, RefManager< ReferenceType >::end(), ERR_ARENA_TEAM_PARTY_SIZE, ERR_BATTLEGROUND_JOIN_FAILED, ERR_BATTLEGROUND_JOIN_MERCENARY, ERR_BATTLEGROUND_JOIN_RANGE_INDEX, ERR_BATTLEGROUND_JOIN_TIMED_OUT, ERR_BATTLEGROUND_NONE, ERR_BATTLEGROUND_TOO_MANY_QUEUES, ERR_GROUP_JOIN_BATTLEGROUND_DESERTERS, ERR_IN_NON_RANDOM_BG, ERR_IN_RANDOM_BG, ERR_LFG_CANT_USE_BATTLEGROUND, Player::GetArenaTeamId(), DB2Manager::GetBattlegroundBracketByLevel(), BaseEntity::GetGUID(), Unit::GetLevel(), GetMembers(), GetMembersCount(), Player::GetTeam(), Unit::HasAura(), Player::HasFreeBattlegroundQueueId(), BattlegroundTemplate::Id, Player::InBattlegroundQueue(), Player::InBattlegroundQueueForBattlegroundQueueType(), BattlegroundTemplate::IsArena(), Player::IsDeserter(), isLFGGroup(), BattlegroundMgr::IsRandomBattleground(), Player::isUsingLfg(), PVPDifficultyEntry::MapID, BattlegroundTemplate::MapIDs, BattlemasterListEntry::MaxGroupSize, sBattlemasterListStore, SPELL_MERCENARY_CONTRACT_ALLIANCE, and SPELL_MERCENARY_CONTRACT_HORDE.
Referenced by WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
| void Group::ChangeLeader | ( | ObjectGuid | guid | ) |
Definition at line 663 of file Group.cpp.
References _getMemberWSlot(), BroadcastPacket(), CHAR_UPD_GROUP_LEADER, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), Player::GetFactionGroupForRace(), GetGroupCategory(), BaseEntity::GetGUID(), WorldObject::GetName(), Unit::GetRace(), isBFGroup(), isBGGroup(), m_dbStoreId, m_leaderFactionGroup, m_leaderGuid, m_leaderName, m_memberSlots, MEMBER_FLAG_ASSISTANT, WorldPackets::Party::GroupNewLeader::Name, WorldPackets::Party::GroupNewLeader::PartyIndex, PLAYER_FLAGS_GROUP_LEADER, Player::SetPlayerFlag(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), sScriptMgr, ToggleGroupMemberFlag(), and WorldPackets::Party::GroupNewLeader::Write().
Referenced by Battleground::AddOrSetPlayerToCorrectBgGroup(), group_commandscript::HandleGroupLeaderCommand(), WorldSession::HandleSetPartyLeaderOpcode(), RemoveMember(), and SelectNewPartyOrRaidLeader().
| void Group::ChangeMembersGroup | ( | ObjectGuid | guid, |
| uint8 | group | ||
| ) |
Definition at line 1006 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_SUBGROUP, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), isBFGroup(), isBGGroup(), isRaidGroup(), m_memberSlots, SendUpdate(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), SubGroupCounterDecrease(), and SubGroupCounterIncrease().
Referenced by WorldSession::HandleChangeSubGroupOpcode().
| void Group::ConvertToGroup | ( | ) |
Definition at line 323 of file Group.cpp.
References CHAR_UPD_GROUP_TYPE, CharacterDatabase, ObjectAccessor::FindPlayer(), GROUP_FLAG_RAID, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupFlags, m_memberSlots, m_subGroupsCounts, SendUpdate(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
Referenced by WorldSession::HandleConvertRaidOpcode().
| void Group::ConvertToLFG | ( | ) |
Definition at line 281 of file Group.cpp.
References CHAR_UPD_GROUP_TYPE, CharacterDatabase, GROUP_CATEGORY_INSTANCE, GROUP_FLAG_LFG, GROUP_FLAG_LFG_RESTRICTED, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupCategory, m_groupFlags, m_lootMethod, PERSONAL_LOOT, SendUpdate(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
Referenced by lfg::LFGMgr::MakeNewGroup().
| void Group::ConvertToRaid | ( | ) |
Definition at line 299 of file Group.cpp.
References _initRaidSubGroupsCounter(), CHAR_UPD_GROUP_TYPE, CharacterDatabase, ObjectAccessor::FindPlayer(), GROUP_FLAG_RAID, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupFlags, m_memberSlots, SendUpdate(), PreparedStatementBase::setUInt16(), and PreparedStatementBase::setUInt32().
Referenced by WorldSession::HandleConvertRaidOpcode().
| bool Group::Create | ( | Player * | leader | ) |
Definition at line 141 of file Group.cpp.
References _initRaidSubGroupsCounter(), AddMember(), ASSERT, CHAR_INS_GROUP, CharacterDatabase, ObjectGuid::Clear(), DIFFICULTY_10_N, DIFFICULTY_NORMAL, DIFFICULTY_NORMAL_RAID, ObjectGuid::GetCounter(), Player::GetDungeonDifficultyID(), Player::GetFactionGroupForRace(), BaseEntity::GetGUID(), Player::GetLegacyRaidDifficultyID(), WorldObject::GetMap(), WorldObject::GetName(), Unit::GetRace(), Player::GetRaidDifficultyID(), ObjectGuid::GetRawValue(), GROUP_CATEGORY_INSTANCE, GROUP_FLAG_RAID, GROUP_MASK_BGRAID, isBFGroup(), isBGGroup(), ITEM_QUALITY_UNCOMMON, m_dbStoreId, m_dungeonDifficulty, m_groupCategory, m_groupFlags, m_guid, m_leaderFactionGroup, m_leaderGuid, m_leaderName, m_legacyRaidDifficulty, m_looterGuid, m_lootMethod, m_lootThreshold, m_masterLooterGuid, m_pingRestriction, m_raidDifficulty, m_targetIcons, PLAYER_FLAGS_GROUP_LEADER, PreparedStatementBase::setBinary(), PreparedStatementBase::setInt8(), Player::SetPlayerFlag(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), sGroupMgr, TARGET_ICONS_COUNT, and Map::ToInstanceMap().
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandlePartyInviteResponseOpcode(), and lfg::LFGMgr::MakeNewGroup().
| void Group::DeleteRaidMarker | ( | uint8 | markerId | ) |
Definition at line 1556 of file Group.cpp.
References m_activeMarkers, m_markers, RAID_MARKERS_COUNT, and SendRaidMarkersChanged().
Referenced by WorldSession::HandleClearRaidMarker().
| void Group::DelinkMember | ( | ObjectGuid | guid | ) |
Definition at line 1767 of file Group.cpp.
References RefManager< ReferenceType >::end(), GetGUID(), Reference< TO, FROM, Derived >::GetSource(), and m_memberMgr.
Referenced by RemoveMember().
| void Group::Disband | ( | bool | hideDestroy = false | ) |
Definition at line 708 of file Group.cpp.
References _homebindIfInstance(), CHAR_DEL_GROUP, CHAR_DEL_GROUP_MEMBER_ALL, CHAR_DEL_LFG_DATA, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), Player::GetOriginalGroup(), GROUP_TYPE_NONE, isBFGroup(), isBGGroup(), isRaidGroup(), m_dbStoreId, m_groupCategory, m_memberSlots, RemoveAllInvites(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), Player::SendDirectMessage(), SendUpdateDestroyGroupToPlayer(), Player::SetGroup(), Player::SetOriginalGroup(), Player::SetPartyType(), PreparedStatementBase::setUInt32(), sGroupMgr, sScriptMgr, and Player::UpdateVisibleObjectInteractions().
Referenced by group_commandscript::HandleGroupDisbandCommand(), WorldSession::HandleLeaveGroupOpcode(), lfg::LFGPlayerScript::OnMapChanged(), RemoveMember(), and Player::UninviteFromGroup().
| void Group::EndReadyCheck | ( | void | ) |
Definition at line 1478 of file Group.cpp.
References BroadcastPacket(), m_guid, m_readyCheckStarted, m_readyCheckTimer, WorldPackets::Party::ReadyCheckCompleted::PartyGUID, WorldPackets::Party::ReadyCheckCompleted::PartyIndex, ResetMemberReadyChecked(), and WorldPackets::Party::ReadyCheckCompleted::Write().
Referenced by SetMemberReadyChecked(), and UpdateReadyCheck().
| Group::CountdownInfo const * Group::GetCountdownInfo | ( | CountdownTimerType | timerType | ) | const |
Definition at line 1397 of file Group.cpp.
References AsUnderlyingType(), and m_countdowns.
Referenced by WorldSession::HandleQueryCountdownTimer().
|
inline |
Definition at line 316 of file Group.h.
Referenced by GroupMgr::FreeGroupDbStoreId(), GroupMgr::LoadGroups(), and lfg::LFGMgr::MakeNewGroup().
| Difficulty Group::GetDifficultyID | ( | MapEntry const * | mapEntry | ) | const |
Definition at line 1318 of file Group.cpp.
References DIFFICULTY_FLAG_LEGACY, MapDifficultyEntry::DifficultyID, DifficultyEntry::Flags, MapEntry::ID, MapEntry::IsRaid(), m_dungeonDifficulty, m_legacyRaidDifficulty, m_raidDifficulty, sDB2Manager, and sDifficultyStore.
Referenced by MapManager::CreateMap(), MapManager::FindInstanceIdForPlayer(), Player::GetInstanceEntrance(), DisableMgr::IsDisabledFor(), Map::PlayerCannotEnter(), and Player::Satisfy().
|
inline |
Definition at line 363 of file Group.h.
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode().
|
inline |
Definition at line 307 of file Group.h.
Referenced by ChangeLeader(), Player::GetGroup(), WorldSession::HandleInitiateRolePoll(), WorldSession::HandlePartyInviteResponseOpcode(), WorldSession::HandleSetRoleOpcode(), Player::ResetGroupUpdateSequenceIfNeeded(), SendRaidMarkersChanged(), SendTargetIconList(), SetTargetIcon(), and StartReadyCheck().
|
inline |
Definition at line 341 of file Group.h.
Referenced by CriteriaHandler::ModifierSatisfied().
| ObjectGuid Group::GetGUID | ( | ) | const |
Definition at line 1623 of file Group.cpp.
References m_guid.
Referenced by GroupMgr::AddGroup(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), Player::CanUninviteFromGroup(), DelinkMember(), Spell::EffectSummonType(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLfgSetRolesOpcode(), lfg::LFGMgr::JoinLfg(), LoadGroupFromDB(), LoadMemberFromDB(), lfg::LFGMgr::MakeNewGroup(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGGroupScript::OnChangeLeader(), lfg::LFGGroupScript::OnDisband(), lfg::LFGGroupScript::OnInviteMember(), lfg::LFGPlayerScript::OnMapChanged(), lfg::LFGGroupScript::OnRemoveMember(), GroupMgr::RemoveGroup(), RemoveMember(), Player::ResetGroupUpdateSequenceIfNeeded(), and lfg::LFGMgr::TeleportPlayer().
| Player * Group::GetInvited | ( | const std::string & | name | ) | const |
Definition at line 414 of file Group.cpp.
References m_invitees.
| Player * Group::GetInvited | ( | ObjectGuid | guid | ) | const |
Definition at line 404 of file Group.cpp.
References m_invitees.
Referenced by WorldSession::HandlePartyUninviteOpcode().
|
inline |
Definition at line 340 of file Group.h.
Referenced by Player::UninviteFromGroup().
| ObjectGuid Group::GetLeaderGUID | ( | ) | const |
Definition at line 1618 of file Group.cpp.
References m_leaderGuid.
Referenced by WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), group_commandscript::HandleGroupLeaderCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleLeaveGroupOpcode(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandlePartyInviteResponseOpcode(), IsLeader(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGGroupScript::OnInviteMember(), RemoveMember(), and Player::Satisfy().
| char const * Group::GetLeaderName | ( | ) | const |
Definition at line 1628 of file Group.cpp.
References m_leaderName.
Referenced by ChatLogScript::OnChat().
|
inline |
Definition at line 365 of file Group.h.
Referenced by WorldSession::HandleSetRaidDifficultyOpcode().
| uint8 Group::GetLfgRoles | ( | ObjectGuid | guid | ) | const |
Definition at line 1435 of file Group.cpp.
References _getMemberCSlot(), and m_memberSlots.
Referenced by WorldSession::HandleSetRoleOpcode().
| ObjectGuid Group::GetLooterGuid | ( | ) | const |
Definition at line 1638 of file Group.cpp.
References ObjectGuid::Empty, FREE_FOR_ALL, GetLootMethod(), and m_looterGuid.
Referenced by Unit::Kill(), and UpdateLooterGuid().
| LootMethod Group::GetLootMethod | ( | ) | const |
Definition at line 1633 of file Group.cpp.
References m_lootMethod.
Referenced by GetLooterGuid(), and UpdateLooterGuid().
| ItemQualities Group::GetLootThreshold | ( | ) | const |
Definition at line 1650 of file Group.cpp.
References m_lootThreshold.
Referenced by Loot::FillLoot().
| ObjectGuid Group::GetMasterLooterGuid | ( | ) | const |
Definition at line 1645 of file Group.cpp.
References m_masterLooterGuid.
Referenced by WorldSession::HandleLootMasterGiveOpcode().
| uint8 Group::GetMemberFlags | ( | ObjectGuid | guid | ) | const |
Definition at line 1674 of file Group.cpp.
References _getMemberCSlot(), and m_memberSlots.
Referenced by group_commandscript::GroupFlagCommand().
| uint8 Group::GetMemberGroup | ( | ObjectGuid | guid | ) | const |
Definition at line 1703 of file Group.cpp.
References _getMemberCSlot(), m_memberSlots, and MAX_RAID_SUBGROUPS.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), and WorldSession::HandleChatMessage().
| ObjectGuid Group::GetMemberGUID | ( | std::string const & | name | ) | const |
Definition at line 1665 of file Group.cpp.
References ObjectGuid::Empty, m_memberSlots, and Group::MemberSlot::name.
|
inline |
Definition at line 336 of file Group.h.
Referenced by KillRewarder::_RewardGroup(), BattlegroundQueue::AddGroup(), AddMember(), BroadcastAddonMessagePacket(), BroadcastPacket(), CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Loot::FillLoot(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupRepairCommand(), group_commandscript::HandleGroupReviveCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleSendPingCooldown(), WorldSession::HandleSendPingUnit(), WorldSession::HandleSendPingWorldPoint(), tele_commandscript::HandleTeleGroupCommand(), lfg::LFGMgr::JoinLfg(), CriteriaHandler::ModifierSatisfied(), RemoveMember(), WorldSession::SendLfgPartyLockInfo(), lfg::LFGMgr::TeleportPlayer(), PetAI::UpdateAllies(), and UpdatePlayerOutOfRange().
|
inline |
|
inline |
Definition at line 339 of file Group.h.
Referenced by CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleConvertRaidOpcode(), IsCreated(), lfg::LFGMgr::JoinLfg(), CriteriaHandler::ModifierSatisfied(), lfg::LFGPlayerScript::OnMapChanged(), RemoveMember(), SendUpdateToPlayer(), Player::UninviteFromGroup(), and PetAI::UpdateAllies().
|
inline |
Definition at line 338 of file Group.h.
Referenced by group_commandscript::HandleGroupListCommand(), lfg_commandscript::HandleLfgGroupInfoCommand(), and lfg::LFGPlayerScript::OnMapChanged().
|
inline |
Definition at line 364 of file Group.h.
Referenced by WorldSession::HandleSetRaidDifficultyOpcode().
Definition at line 394 of file Group.h.
Referenced by MapManager::CreateMap(), and MapManager::FindInstanceIdForPlayer().
|
inline |
Definition at line 388 of file Group.h.
Referenced by MapManager::CreateMap(), MapManager::FindInstanceIdForPlayer(), and Player::GetInstanceEntrance().
| RestrictPingsTo Group::GetRestrictPings | ( | ) | const |
Definition at line 1857 of file Group.cpp.
References m_pingRestriction.
|
inline |
| bool Group::HasFreeSlotSubGroup | ( | uint8 | subgroup | ) | const |
Definition at line 1698 of file Group.cpp.
References m_subGroupsCounts, and MAX_GROUP_SIZE.
Referenced by WorldSession::HandleChangeSubGroupOpcode().
|
inline |
Definition at line 323 of file Group.h.
References MEMBER_FLAG_ASSISTANT.
Referenced by Player::CanUninviteFromGroup(), Spell::EffectChangeRaidMarker(), WorldSession::HandleChangeSubGroupOpcode(), WorldSession::HandleChatMessage(), WorldSession::HandleClearRaidMarker(), WorldSession::HandleDoReadyCheckOpcode(), WorldSession::HandleInitiateRolePoll(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandleSetPartyAssignment(), WorldSession::HandleSwapSubGroupsOpcode(), and WorldSession::HandleUpdateRaidTargetOpcode().
| bool Group::isBFGroup | ( | ) | const |
Definition at line 1608 of file Group.cpp.
References m_bfGroup.
Referenced by _setMembersGroup(), AddInvite(), AddMember(), ChangeLeader(), ChangeMembersGroup(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), RemoveMember(), SetDungeonDifficultyID(), SetEveryoneIsAssistant(), SetLegacyRaidDifficultyID(), SetRaidDifficultyID(), SetRestrictPingsTo(), and SwapMembersGroups().
| bool Group::isBGGroup | ( | ) | const |
Definition at line 1603 of file Group.cpp.
References m_bgGroup.
Referenced by _setMembersGroup(), AddInvite(), AddMember(), ChangeLeader(), ChangeMembersGroup(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), WorldSession::HandleChatMessage(), RemoveMember(), SetDungeonDifficultyID(), SetEveryoneIsAssistant(), SetLegacyRaidDifficultyID(), SetRaidDifficultyID(), SetRestrictPingsTo(), and SwapMembersGroups().
| bool Group::IsCreated | ( | ) | const |
Definition at line 1613 of file Group.cpp.
References GetMembersCount().
Referenced by WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyInviteResponseOpcode(), SendUpdateToPlayer(), and Player::UninviteFromGroup().
| bool Group::IsFull | ( | ) | const |
Definition at line 1588 of file Group.cpp.
References isRaidGroup(), m_memberSlots, MAX_GROUP_SIZE, and MAX_RAID_SIZE.
Referenced by group_commandscript::HandleGroupJoinCommand(), WorldSession::HandlePartyInviteOpcode(), and WorldSession::HandlePartyInviteResponseOpcode().
| bool Group::IsLeader | ( | ObjectGuid | guid | ) | const |
Definition at line 1660 of file Group.cpp.
References GetLeaderGUID().
Referenced by Player::CanUninviteFromGroup(), Spell::EffectChangeRaidMarker(), group_commandscript::GroupFlagCommand(), WorldSession::HandleChangeSubGroupOpcode(), WorldSession::HandleChatMessage(), WorldSession::HandleClearRaidMarker(), WorldSession::HandleConvertRaidOpcode(), WorldSession::HandleDoReadyCheckOpcode(), WorldSession::HandleInitiateRolePoll(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandleSetAssistantLeaderOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetEveryoneIsAssistant(), WorldSession::HandleSetPartyAssignment(), WorldSession::HandleSetPartyLeaderOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), WorldSession::HandleSetRestrictPingsToAssistants(), WorldSession::HandleSwapSubGroupsOpcode(), and WorldSession::HandleUpdateRaidTargetOpcode().
| bool Group::isLFGGroup | ( | ) | const |
Definition at line 1593 of file Group.cpp.
References GROUP_FLAG_LFG, and m_groupFlags.
Referenced by CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), lfg::LFGMgr::JoinLfg(), lfg::LFGGroupScript::OnRemoveMember(), RemoveMember(), SendUpdateToPlayer(), and lfg::LFGMgr::TeleportPlayer().
| bool Group::IsMember | ( | ObjectGuid | guid | ) | const |
Definition at line 1655 of file Group.cpp.
References _getMemberCSlot(), and m_memberSlots.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ArenaTeam::GetAverageMMR(), WorldSession::HandlePartyUninviteOpcode(), and GameObject::Use().
| bool Group::isRaidGroup | ( | ) | const |
Definition at line 1598 of file Group.cpp.
References GROUP_FLAG_RAID, and m_groupFlags.
Referenced by KillRewarder::_RewardGroup(), AddMember(), QuestObjectiveCriteriaMgr::CanUpdateCriteriaTree(), ChangeMembersGroup(), Player::CheckInstanceValidity(), Disband(), Spell::EffectChangeRaidMarker(), Player::GetQuestObjectiveForItem(), group_commandscript::GroupFlagCommand(), WorldSession::HandleChatMessage(), WorldSession::HandleClearRaidMarker(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleUpdateRaidTargetOpcode(), Player::HasQuestForCurrency(), IsFull(), MeetsGroupStatusCondition(), CriteriaHandler::ModifierSatisfied(), Map::PlayerCannotEnter(), SelectNewPartyOrRaidLeader(), SetGroupMemberFlag(), SwapMembersGroups(), PetAI::UpdateAllies(), and Player::UpdateQuestObjectiveProgress().
| bool Group::IsReadyCheckCompleted | ( | void | ) | const |
Definition at line 1494 of file Group.cpp.
References m_memberSlots.
Referenced by SetMemberReadyChecked().
| void Group::LinkMember | ( | GroupReference * | pRef | ) |
Definition at line 1762 of file Group.cpp.
References m_memberMgr, and LinkedListHead::push_front().
Referenced by GroupReference::targetObjectBuildLink().
| void Group::LinkOwnedInstance | ( | GroupInstanceReference * | ref | ) |
Definition at line 1360 of file Group.cpp.
References m_ownedInstancesMgr, and LinkedListHead::push_back().
Referenced by GroupInstanceReference::targetObjectBuildLink().
| void Group::LoadGroupFromDB | ( | Field * | field | ) |
Definition at line 211 of file Group.cpp.
References _initRaidSubGroupsCounter(), ObjectGuid::BytesSize, Player::CheckLoadedDungeonDifficultyID(), Player::CheckLoadedLegacyRaidDifficultyID(), Player::CheckLoadedRaidDifficultyID(), ObjectGuid::Empty, Player::GetFactionGroupForRace(), GetGUID(), Field::GetUInt32(), Field::GetUInt64(), GROUP_FLAG_LFG, GROUP_FLAG_RAID, m_dbStoreId, m_dungeonDifficulty, m_groupFlags, m_guid, m_leaderFactionGroup, m_leaderGuid, m_leaderName, m_legacyRaidDifficulty, m_looterGuid, m_lootMethod, m_lootThreshold, m_masterLooterGuid, m_pingRestriction, m_raidDifficulty, m_targetIcons, CharacterCacheEntry::Name, CharacterCacheEntry::Race, sCharacterCache, ObjectGuid::SetRawValue(), sGroupMgr, sLFGMgr, and TARGET_ICONS_COUNT.
Referenced by GroupMgr::LoadGroups().
| void Group::LoadMemberFromDB | ( | ObjectGuid::LowType | guidLow, |
| uint8 | memberFlags, | ||
| uint8 | subgroup, | ||
| uint8 | roles | ||
| ) |
Definition at line 248 of file Group.cpp.
References Group::MemberSlot::_class, CHAR_DEL_GROUP_MEMBER, CharacterDatabase, CharacterCacheEntry::Class, Group::MemberSlot::flags, GetGUID(), Group::MemberSlot::group, GROUP_FLAG_EVERYONE_ASSISTANT, Group::MemberSlot::guid, m_groupFlags, m_memberSlots, MEMBER_FLAG_ASSISTANT, CharacterCacheEntry::Name, Group::MemberSlot::name, CharacterCacheEntry::Race, Group::MemberSlot::race, Group::MemberSlot::readyChecked, Group::MemberSlot::roles, sCharacterCache, PreparedStatementBase::setUInt64(), sLFGMgr, and SubGroupCounterIncrease().
Referenced by GroupMgr::LoadGroups().
| void Group::RemoveAllInvites | ( | ) |
Definition at line 395 of file Group.cpp.
References m_invitees.
Referenced by Disband(), WorldSession::HandlePartyInviteOpcode(), WorldSession::HandlePartyInviteResponseOpcode(), and Player::UninviteFromGroup().
| void Group::RemoveInvite | ( | Player * | player | ) |
Definition at line 386 of file Group.cpp.
References m_invitees, and Player::SetGroupInvite().
Referenced by AddInvite(), WorldSession::HandlePartyInviteResponseOpcode(), and Player::UninviteFromGroup().
| bool Group::RemoveMember | ( | ObjectGuid | guid, |
| RemoveMethod | method = GROUP_REMOVEMETHOD_DEFAULT, |
||
| ObjectGuid | kicker = ObjectGuid::Empty, |
||
| const char * | reason = nullptr |
||
| ) |
Definition at line 547 of file Group.cpp.
References _getMemberWSlot(), _homebindIfInstance(), BroadcastGroupUpdate(), ChangeLeader(), CHAR_DEL_GROUP_MEMBER, CharacterDatabase, DelinkMember(), Disband(), Player::FailCriteria(), ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), BaseEntity::GetGUID(), GetGUID(), GetLeaderGUID(), WorldLocation::GetMapId(), GetMembers(), GetMembersCount(), Player::GetOriginalGroup(), GROUP_REMOVEMETHOD_KICK, GROUP_REMOVEMETHOD_KICK_LFG, GROUP_TYPE_NONE, Unit::IsAlive(), isBFGroup(), isBGGroup(), isLFGGroup(), m_groupCategory, m_leaderGuid, m_memberMgr, m_memberSlots, ModifyPartyStatus, Unit::RemoveAllGroupBuffsFromCaster(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), Player::SendDirectMessage(), SendUpdate(), SendUpdateDestroyGroupToPlayer(), Player::SetGroup(), Player::SetOriginalGroup(), Player::SetPartyType(), PreparedStatementBase::setUInt64(), LinkedListHead::size(), sLFGMgr, sScriptMgr, SubGroupCounterDecrease(), Player::UpdateVisibleObjectInteractions(), and WorldPackets::Party::GroupUninvite::Write().
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), group_commandscript::HandleGroupRemoveCommand(), lfg::LFGMgr::MakeNewGroup(), and Player::RemoveFromGroup().
| void Group::RemoveUniqueGroupMemberFlag | ( | GroupMemberFlags | flag | ) |
Definition at line 1808 of file Group.cpp.
References m_memberSlots.
Referenced by WorldSession::HandleSetPartyAssignment(), and SetGroupMemberFlag().
| void Group::ResetInstances | ( | InstanceResetMethod | method, |
| Player * | notifyPlayer | ||
| ) |
Definition at line 1334 of file Group.cpp.
References CannotReset, Map::GetId(), INSTANCE_RESET_FAILED, m_ownedInstancesMgr, m_recentInstances, Manual, NotEmpty, OnChangeDifficulty, InstanceMap::Reset(), Player::SendResetInstanceFailed(), Player::SendResetInstanceSuccess(), and Success.
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and WorldSession::HandleSetRaidDifficultyOpcode().
| void Group::ResetMemberReadyChecked | ( | void | ) |
| bool Group::SameSubGroup | ( | ObjectGuid | guid1, |
| MemberSlot const * | slot2 | ||
| ) | const |
Definition at line 1690 of file Group.cpp.
References _getMemberCSlot(), Group::MemberSlot::group, and m_memberSlots.
| bool Group::SameSubGroup | ( | ObjectGuid | guid1, |
| ObjectGuid | guid2 | ||
| ) | const |
Definition at line 1682 of file Group.cpp.
References _getMemberCSlot(), m_memberSlots, and SameSubGroup().
Referenced by Player::IsInSameGroupWith(), SameSubGroup(), and PetAI::UpdateAllies().
Definition at line 994 of file Group.cpp.
References Player::GetGroup(), and Player::GetSubGroup().
| void Group::SelectNewPartyOrRaidLeader | ( | ) |
Definition at line 105 of file Group.cpp.
References ChangeLeader(), ObjectAccessor::FindPlayer(), BaseEntity::GetGUID(), isRaidGroup(), m_memberSlots, MEMBER_FLAG_ASSISTANT, and SendUpdate().
Referenced by Update().
| void Group::SendRaidMarkersChanged | ( | WorldSession * | session = nullptr | ) | const |
Definition at line 1571 of file Group.cpp.
References WorldPackets::Party::RaidMarkersChanged::ActiveMarkers, BroadcastPacket(), GetGroupCategory(), m_activeMarkers, m_markers, WorldPackets::Party::RaidMarkersChanged::PartyIndex, RAID_MARKERS_COUNT, WorldPackets::Party::RaidMarkersChanged::RaidMarkers, WorldSession::SendPacket(), and WorldPackets::Party::RaidMarkersChanged::Write().
Referenced by AddRaidMarker(), DeleteRaidMarker(), and WorldSession::HandleRequestPartyJoinUpdates().
| void Group::SendTargetIconList | ( | WorldSession * | session | ) | const |
Definition at line 796 of file Group.cpp.
References GetGroupCategory(), m_targetIcons, WorldPackets::Party::SendRaidTargetUpdateAll::PartyIndex, WorldSession::SendPacket(), TARGET_ICONS_COUNT, WorldPackets::Party::SendRaidTargetUpdateAll::TargetIcons, and WorldPackets::Party::SendRaidTargetUpdateAll::Write().
Referenced by WorldSession::HandleRequestPartyJoinUpdates(), and WorldSession::HandleUpdateRaidTargetOpcode().
| void Group::SendUpdate | ( | ) | const |
Definition at line 809 of file Group.cpp.
References ObjectAccessor::FindConnectedPlayer(), m_memberSlots, and SendUpdateToPlayer().
Referenced by AddMember(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeMembersGroup(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), group_commandscript::HandleGroupLeaderCommand(), WorldSession::HandleSetPartyAssignment(), WorldSession::HandleSetPartyLeaderOpcode(), lfg::LFGMgr::MakeNewGroup(), RemoveMember(), SelectNewPartyOrRaidLeader(), SetDungeonDifficultyID(), SetEveryoneIsAssistant(), SetGroupMemberFlag(), SetLegacyRaidDifficultyID(), SetLfgRoles(), SetRaidDifficultyID(), SetRestrictPingsTo(), SwapMembersGroups(), and UpdateLooterGuid().
| void Group::SendUpdateDestroyGroupToPlayer | ( | Player * | player | ) | const |
Definition at line 916 of file Group.cpp.
References GROUP_FLAG_DESTROYED, GROUP_TYPE_NONE, m_groupCategory, m_guid, WorldPackets::Party::PartyUpdate::MyIndex, Player::NextGroupUpdateSequenceNumber(), WorldPackets::Party::PartyUpdate::PartyFlags, WorldPackets::Party::PartyUpdate::PartyGUID, WorldPackets::Party::PartyUpdate::PartyIndex, WorldPackets::Party::PartyUpdate::PartyType, Player::SendDirectMessage(), WorldPackets::Party::PartyUpdate::SequenceNum, and WorldPackets::Party::PartyUpdate::Write().
Referenced by Disband(), and RemoveMember().
| void Group::SendUpdateToPlayer | ( | Player * | player, |
| MemberSlot const * | slot = nullptr |
||
| ) | const |
Definition at line 821 of file Group.cpp.
References _getMemberCSlot(), Player::CanRewardQuest(), WorldPackets::Party::PartyPlayerInfo::Class, WorldPackets::Party::PartyPlayerInfo::Connected, WorldPackets::Party::PartyUpdate::DifficultySettings, ObjectGuid::Empty, WorldPackets::Party::PartyPlayerInfo::FactionGroup, ObjectAccessor::FindConnectedPlayer(), WorldPackets::Party::PartyPlayerInfo::Flags, Player::GetFactionGroupForRace(), Player::GetGroup(), BaseEntity::GetGUID(), Unit::GetLevel(), GetMembersCount(), Player::GetSession(), GROUP_TYPE_NONE, GROUP_TYPE_NORMAL, Group::MemberSlot::guid, WorldPackets::Party::PartyPlayerInfo::GUID, IsCreated(), isLFGGroup(), WorldPackets::Party::PartyUpdate::LeaderFactionGroup, WorldPackets::Party::PartyUpdate::LeaderGUID, lfg::LFG_STATE_FINISHED_DUNGEON, WorldPackets::Party::PartyUpdate::LfgInfos, WorldPackets::Party::PartyUpdate::LootSettings, m_dungeonDifficulty, m_groupCategory, m_groupFlags, m_guid, m_leaderFactionGroup, m_leaderGuid, m_legacyRaidDifficulty, m_lootMethod, m_lootThreshold, m_masterLooterGuid, m_memberSlots, m_pingRestriction, m_raidDifficulty, MASTER_LOOT, WorldPackets::Party::PartyUpdate::MyIndex, WorldPackets::Party::PartyPlayerInfo::Name, Player::NextGroupUpdateSequenceNumber(), WorldPackets::Party::PartyUpdate::PartyFlags, WorldPackets::Party::PartyUpdate::PartyGUID, WorldPackets::Party::PartyUpdate::PartyIndex, WorldPackets::Party::PartyUpdate::PartyType, WorldPackets::Party::PartyUpdate::PingRestriction, WorldPackets::Party::PartyUpdate::PlayerList, WorldSession::PlayerLogout(), WorldPackets::Party::PartyPlayerInfo::RolesAssigned, Player::SendDirectMessage(), WorldPackets::Party::PartyUpdate::SequenceNum, sLFGMgr, sObjectMgr, WorldPackets::Party::PartyPlayerInfo::Subgroup, and WorldPackets::Party::PartyUpdate::Write().
Referenced by SendUpdate().
| void Group::SetBattlefieldGroup | ( | Battlefield * | bf | ) |
Definition at line 1716 of file Group.cpp.
References m_bfGroup.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup().
| void Group::SetBattlegroundGroup | ( | Battleground * | bg | ) |
Definition at line 1711 of file Group.cpp.
References m_bgGroup.
Referenced by Battleground::SetBgRaid().
| void Group::SetDungeonDifficultyID | ( | Difficulty | difficulty | ) |
Definition at line 1270 of file Group.cpp.
References CHAR_UPD_GROUP_DIFFICULTY, CharacterDatabase, isBFGroup(), isBGGroup(), m_dbStoreId, m_dungeonDifficulty, SendUpdate(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and lfg::LFGMgr::MakeNewGroup().
| void Group::SetEveryoneIsAssistant | ( | bool | apply | ) |
Definition at line 1834 of file Group.cpp.
References CHAR_UPD_GROUP_TYPE, CharacterDatabase, GROUP_FLAG_EVERYONE_ASSISTANT, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupFlags, m_memberSlots, MEMBER_FLAG_ASSISTANT, SendUpdate(), PreparedStatementBase::setUInt16(), PreparedStatementBase::setUInt32(), and ToggleGroupMemberFlag().
Referenced by WorldSession::HandleSetEveryoneIsAssistant().
| void Group::SetGroupMemberFlag | ( | ObjectGuid | guid, |
| bool | apply, | ||
| GroupMemberFlags | flag | ||
| ) |
Definition at line 1721 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_FLAG, CharacterDatabase, ObjectGuid::GetCounter(), isRaidGroup(), m_memberSlots, MEMBER_FLAG_ASSISTANT, MEMBER_FLAG_MAINASSIST, MEMBER_FLAG_MAINTANK, RemoveUniqueGroupMemberFlag(), SendUpdate(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and ToggleGroupMemberFlag().
Referenced by group_commandscript::GroupFlagCommand(), WorldSession::HandleSetAssistantLeaderOpcode(), and WorldSession::HandleSetPartyAssignment().
| void Group::SetLegacyRaidDifficultyID | ( | Difficulty | difficulty | ) |
Definition at line 1302 of file Group.cpp.
References CHAR_UPD_GROUP_LEGACY_RAID_DIFFICULTY, CharacterDatabase, isBFGroup(), isBGGroup(), m_dbStoreId, m_legacyRaidDifficulty, SendUpdate(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by WorldSession::HandleSetRaidDifficultyOpcode().
| void Group::SetLfgRoles | ( | ObjectGuid | guid, |
| uint8 | roles | ||
| ) |
Definition at line 1425 of file Group.cpp.
References _getMemberWSlot(), m_memberSlots, and SendUpdate().
Referenced by WorldSession::HandleSetRoleOpcode(), and lfg::LFGMgr::MakeNewGroup().
| void Group::SetLooterGuid | ( | ObjectGuid | guid | ) |
Definition at line 1410 of file Group.cpp.
References m_looterGuid.
Referenced by UpdateLooterGuid().
| void Group::SetLootMethod | ( | LootMethod | method | ) |
Definition at line 1405 of file Group.cpp.
References m_lootMethod.
| void Group::SetLootThreshold | ( | ItemQualities | threshold | ) |
Definition at line 1420 of file Group.cpp.
References m_lootThreshold.
| void Group::SetMasterLooterGuid | ( | ObjectGuid | guid | ) |
Definition at line 1415 of file Group.cpp.
References m_masterLooterGuid.
| void Group::SetMemberReadyCheck | ( | MemberSlot * | slot, |
| bool | ready | ||
| ) |
Definition at line 1512 of file Group.cpp.
References BroadcastPacket(), Group::MemberSlot::guid, WorldPackets::Party::ReadyCheckResponse::IsReady, m_guid, WorldPackets::Party::ReadyCheckResponse::PartyGUID, WorldPackets::Party::ReadyCheckResponse::Player, SetMemberReadyChecked(), and WorldPackets::Party::ReadyCheckResponse::Write().
| void Group::SetMemberReadyCheck | ( | ObjectGuid | guid, |
| bool | ready | ||
| ) |
Definition at line 1502 of file Group.cpp.
References _getMemberWSlot(), m_memberSlots, m_readyCheckStarted, and SetMemberReadyCheck().
Referenced by WorldSession::HandleReadyCheckResponseOpcode(), SetMemberReadyCheck(), and SetOfflineMembersReadyChecked().
| void Group::SetMemberReadyChecked | ( | MemberSlot * | slot | ) |
Definition at line 1533 of file Group.cpp.
References EndReadyCheck(), IsReadyCheckCompleted(), and Group::MemberSlot::readyChecked.
Referenced by SetMemberReadyCheck(), and StartReadyCheck().
| void Group::SetOfflineMembersReadyChecked | ( | void | ) |
Definition at line 1523 of file Group.cpp.
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), m_memberSlots, and SetMemberReadyCheck().
Referenced by StartReadyCheck().
| void Group::SetRaidDifficultyID | ( | Difficulty | difficulty | ) |
Definition at line 1286 of file Group.cpp.
References CHAR_UPD_GROUP_RAID_DIFFICULTY, CharacterDatabase, isBFGroup(), isBGGroup(), m_dbStoreId, m_raidDifficulty, SendUpdate(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by WorldSession::HandleSetRaidDifficultyOpcode().
|
inline |
Definition at line 400 of file Group.h.
Referenced by MapManager::CreateMap().
| void Group::SetRestrictPingsTo | ( | RestrictPingsTo | restrictTo | ) |
Definition at line 1862 of file Group.cpp.
References CHAR_UPD_GROUP_PING_RESTRICTION, CharacterDatabase, isBFGroup(), isBGGroup(), m_dbStoreId, m_pingRestriction, SendUpdate(), PreparedStatementBase::setInt8(), and PreparedStatementBase::setUInt32().
Referenced by WorldSession::HandleSetRestrictPingsToAssistants().
| void Group::SetTargetIcon | ( | uint8 | symbol, |
| ObjectGuid | target, | ||
| ObjectGuid | changedBy | ||
| ) |
Definition at line 775 of file Group.cpp.
References BroadcastPacket(), WorldPackets::Party::SendRaidTargetUpdateSingle::ChangedBy, ObjectGuid::Empty, GetGroupCategory(), ObjectGuid::IsEmpty(), m_targetIcons, WorldPackets::Party::SendRaidTargetUpdateSingle::PartyIndex, SetTargetIcon(), WorldPackets::Party::SendRaidTargetUpdateSingle::Symbol, WorldPackets::Party::SendRaidTargetUpdateSingle::Target, TARGET_ICONS_COUNT, and WorldPackets::Party::SendRaidTargetUpdateSingle::Write().
Referenced by WorldSession::HandleUpdateRaidTargetOpcode(), and SetTargetIcon().
| void Group::StartCountdown | ( | CountdownTimerType | timerType, |
| Seconds | duration, | ||
| Optional< time_t > | startTime = { } |
||
| ) |
Definition at line 1386 of file Group.cpp.
References AsUnderlyingType(), and m_countdowns.
Referenced by Battleground::AddOrSetPlayerToCorrectBgGroup().
| void Group::StartLeaderOfflineTimer | ( | ) |
Definition at line 1823 of file Group.cpp.
References IN_MILLISECONDS, m_isLeaderOffline, m_leaderOfflineTimer, MINUTE, and TimeTracker::Reset().
| void Group::StartReadyCheck | ( | ObjectGuid | starterGuid, |
| Milliseconds | duration = Milliseconds(READYCHECK_DURATION) |
||
| ) |
Definition at line 1454 of file Group.cpp.
References _getMemberWSlot(), BroadcastPacket(), WorldPackets::Party::ReadyCheckStarted::Duration, GetGroupCategory(), WorldPackets::Party::ReadyCheckStarted::InitiatorGUID, m_guid, m_memberSlots, m_readyCheckStarted, m_readyCheckTimer, WorldPackets::Party::ReadyCheckStarted::PartyGUID, WorldPackets::Party::ReadyCheckStarted::PartyIndex, SetMemberReadyChecked(), SetOfflineMembersReadyChecked(), and WorldPackets::Party::ReadyCheckStarted::Write().
Referenced by WorldSession::HandleDoReadyCheckOpcode().
| void Group::StopLeaderOfflineTimer | ( | ) |
Definition at line 1829 of file Group.cpp.
References m_isLeaderOffline.
|
protected |
Definition at line 1802 of file Group.cpp.
References m_subGroupsCounts.
Referenced by ChangeMembersGroup(), and RemoveMember().
|
protected |
Definition at line 1796 of file Group.cpp.
References m_subGroupsCounts.
Referenced by _setMembersGroup(), AddMember(), ChangeMembersGroup(), and LoadMemberFromDB().
| void Group::SwapMembersGroups | ( | ObjectGuid | firstGuid, |
| ObjectGuid | secondGuid | ||
| ) |
Definition at line 1058 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_SUBGROUP, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), isBFGroup(), isBGGroup(), isRaidGroup(), m_memberSlots, SendUpdate(), PreparedStatementBase::setUInt64(), and PreparedStatementBase::setUInt8().
Referenced by WorldSession::HandleSwapSubGroupsOpcode().
|
protected |
Definition at line 1815 of file Group.cpp.
Referenced by ChangeLeader(), SetEveryoneIsAssistant(), and SetGroupMemberFlag().
| void Group::Update | ( | uint32 | diff | ) |
Definition at line 90 of file Group.cpp.
References m_isLeaderOffline, m_leaderOfflineTimer, TimeTracker::Passed(), SelectNewPartyOrRaidLeader(), TimeTracker::Update(), and UpdateReadyCheck().
Referenced by GroupMgr::Update().
| void Group::UpdateLooterGuid | ( | WorldObject * | pLootedObject, |
| bool | ifneed = false |
||
| ) |
Definition at line 1114 of file Group.cpp.
References _getMemberCSlot(), ObjectGuid::Empty, ObjectAccessor::FindPlayer(), FREE_FOR_ALL, BaseEntity::GetGUID(), GetLooterGuid(), GetLootMethod(), Player::IsAtGroupRewardDistance(), m_memberSlots, SendUpdate(), and SetLooterGuid().
| void Group::UpdatePlayerOutOfRange | ( | Player const * | player | ) | const |
Definition at line 928 of file Group.cpp.
References GetMembers(), WorldPackets::Packet::GetRawPacket(), WorldObject::GetSightRange(), WorldPackets::Party::PartyMemberFullState::Initialize(), WorldObject::IsInMap(), BaseEntity::IsInWorld(), WorldObject::IsWithinDist(), Player::SendDirectMessage(), and WorldPackets::Party::PartyMemberFullState::Write().
Referenced by AddMember().
| void Group::UpdateReadyCheck | ( | uint32 | diff | ) |
Definition at line 1444 of file Group.cpp.
References EndReadyCheck(), m_readyCheckStarted, and m_readyCheckTimer.
Referenced by Update().
|
protected |
Definition at line 462 of file Group.h.
Referenced by AddRaidMarker(), DeleteRaidMarker(), and SendRaidMarkersChanged().
|
protected |
Definition at line 442 of file Group.h.
Referenced by isBFGroup(), and SetBattlefieldGroup().
|
protected |
Definition at line 441 of file Group.h.
Referenced by isBGGroup(), SetBattlegroundGroup(), and ~Group().
|
protected |
Definition at line 464 of file Group.h.
Referenced by GetCountdownInfo(), Group(), and StartCountdown().
|
protected |
Definition at line 452 of file Group.h.
Referenced by AddMember(), ChangeLeader(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), LoadGroupFromDB(), SetDungeonDifficultyID(), SetEveryoneIsAssistant(), SetLegacyRaidDifficultyID(), SetRaidDifficultyID(), and SetRestrictPingsTo().
|
protected |
Definition at line 438 of file Group.h.
Referenced by Create(), GetDifficultyID(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetDungeonDifficultyID().
|
protected |
Definition at line 437 of file Group.h.
Referenced by AddMember(), ConvertToLFG(), Create(), Disband(), RemoveMember(), SendUpdateDestroyGroupToPlayer(), and SendUpdateToPlayer().
|
protected |
Definition at line 436 of file Group.h.
Referenced by ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), Create(), isLFGGroup(), isRaidGroup(), LoadGroupFromDB(), LoadMemberFromDB(), SendUpdateToPlayer(), and SetEveryoneIsAssistant().
|
protected |
Definition at line 451 of file Group.h.
Referenced by Create(), EndReadyCheck(), GetGUID(), LoadGroupFromDB(), SendUpdateDestroyGroupToPlayer(), SendUpdateToPlayer(), SetMemberReadyCheck(), and StartReadyCheck().
|
protected |
Definition at line 432 of file Group.h.
Referenced by AddInvite(), GetInvited(), GetInvited(), RemoveAllInvites(), and RemoveInvite().
|
protected |
Definition at line 453 of file Group.h.
Referenced by StartLeaderOfflineTimer(), StopLeaderOfflineTimer(), and Update().
|
protected |
Definition at line 434 of file Group.h.
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), LoadGroupFromDB(), and SendUpdateToPlayer().
|
protected |
Definition at line 433 of file Group.h.
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeaderGUID(), LoadGroupFromDB(), RemoveMember(), and SendUpdateToPlayer().
|
protected |
Definition at line 435 of file Group.h.
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeaderName(), and LoadGroupFromDB().
|
protected |
Definition at line 454 of file Group.h.
Referenced by StartLeaderOfflineTimer(), and Update().
|
protected |
Definition at line 440 of file Group.h.
Referenced by Create(), GetDifficultyID(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetLegacyRaidDifficultyID().
|
protected |
Definition at line 446 of file Group.h.
Referenced by Create(), GetLooterGuid(), LoadGroupFromDB(), and SetLooterGuid().
|
protected |
Definition at line 444 of file Group.h.
Referenced by ConvertToLFG(), Create(), GetLootMethod(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetLootMethod().
|
protected |
Definition at line 445 of file Group.h.
Referenced by Create(), GetLootThreshold(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetLootThreshold().
|
protected |
Definition at line 461 of file Group.h.
Referenced by AddRaidMarker(), DeleteRaidMarker(), Group(), and SendRaidMarkersChanged().
|
protected |
Definition at line 447 of file Group.h.
Referenced by Create(), GetMasterLooterGuid(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetMasterLooterGuid().
|
protected |
Definition at line 431 of file Group.h.
Referenced by DelinkMember(), LinkMember(), and RemoveMember().
|
protected |
Definition at line 430 of file Group.h.
Referenced by _getMemberCSlot(), _getMemberWSlot(), _initRaidSubGroupsCounter(), _setMembersGroup(), AddMember(), BroadcastGroupUpdate(), ChangeLeader(), ChangeMembersGroup(), ConvertToGroup(), ConvertToRaid(), Disband(), GetLfgRoles(), GetMemberFlags(), GetMemberGroup(), GetMemberGUID(), IsFull(), IsMember(), IsReadyCheckCompleted(), LoadMemberFromDB(), RemoveMember(), RemoveUniqueGroupMemberFlag(), ResetMemberReadyChecked(), SameSubGroup(), SameSubGroup(), SelectNewPartyOrRaidLeader(), SendUpdate(), SendUpdateToPlayer(), SetEveryoneIsAssistant(), SetGroupMemberFlag(), SetLfgRoles(), SetMemberReadyCheck(), SetOfflineMembersReadyChecked(), StartReadyCheck(), SwapMembersGroups(), and UpdateLooterGuid().
|
protected |
Definition at line 449 of file Group.h.
Referenced by LinkOwnedInstance(), and ResetInstances().
|
protected |
Definition at line 466 of file Group.h.
Referenced by Create(), GetRestrictPings(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetRestrictPingsTo().
|
protected |
Definition at line 439 of file Group.h.
Referenced by Create(), GetDifficultyID(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetRaidDifficultyID().
|
protected |
Definition at line 457 of file Group.h.
Referenced by EndReadyCheck(), SetMemberReadyCheck(), StartReadyCheck(), and UpdateReadyCheck().
|
protected |
Definition at line 458 of file Group.h.
Referenced by EndReadyCheck(), StartReadyCheck(), and UpdateReadyCheck().
|
protected |
Definition at line 448 of file Group.h.
Referenced by ResetInstances().
|
protected |
|
protected |
Definition at line 450 of file Group.h.
Referenced by _initRaidSubGroupsCounter(), AddMember(), ConvertToGroup(), HasFreeSlotSubGroup(), SubGroupCounterDecrease(), SubGroupCounterIncrease(), and ~Group().
|
protected |
Definition at line 443 of file Group.h.
Referenced by AddMember(), Create(), Group(), LoadGroupFromDB(), SendTargetIconList(), and SetTargetIcon().