![]() |
TrinityCore
|
#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 |
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) |
request member stats checken
| typedef std::unordered_map< uint32 , InstanceGroupBind> Group::BoundInstancesMap |
|
protected |
| typedef MemberSlotList::const_iterator Group::member_citerator |
|
protected |
| typedef std::list<MemberSlot> Group::MemberSlotList |
|
protected |
| Group::Group | ( | ) |
Definition at line 62 of file Group.cpp.
References m_targetIcons, and TARGET_ICONS_COUNT.
| Group::~Group | ( | ) |
Definition at line 72 of file Group.cpp.
References ALLIANCE, Battleground::GetBgRaid(), HORDE, m_bgGroup, m_boundInstances, m_subGroupsCounts, MAX_DIFFICULTY, RollId, Battleground::SetBgRaid(), TC_LOG_DEBUG, and TC_LOG_ERROR.
|
protected |
Definition at line 2611 of file Group.cpp.
References m_memberSlots.
Referenced by GetMemberFlags(), GetMemberGroup(), IsMember(), SameSubGroup(), SameSubGroup(), SendUpdateToPlayer(), and UpdateLooterGuid().
|
protected |
Definition at line 2619 of file Group.cpp.
References m_memberSlots.
Referenced by _setMembersGroup(), ChangeLeader(), ChangeMembersGroup(), RemoveMember(), SetGroupMemberFlag(), and SetLfgRoles().
|
protected |
Definition at line 2328 of file Group.cpp.
References WorldLocation::GetMapId(), Player::IsGameMaster(), Player::m_InstanceValid, and sMapStore.
Referenced by Disband(), and RemoveMember().
|
protected |
Definition at line 2599 of file Group.cpp.
References m_memberSlots, m_subGroupsCounts, and MAX_RAID_SUBGROUPS.
Referenced by ConvertToRaid(), Create(), and LoadGroupFromDB().
|
protected |
Definition at line 1827 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_SUBGROUP, CharacterDatabase, ObjectGuid::GetCounter(), isBFGroup(), isBGGroup(), m_memberSlots, PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), and SubGroupCounterIncrease().
| bool Group::AddInvite | ( | Player * | player | ) |
Definition at line 317 of file Group.cpp.
References Player::GetGroup(), Player::GetGroupInvite(), Object::GetGUID(), Player::GetOriginalGroup(), isBFGroup(), isBGGroup(), m_invitees, RemoveInvite(), Player::SetGroupInvite(), and sScriptMgr.
Referenced by AddLeaderInvite(), and WorldSession::HandleGroupInviteOpcode().
| bool Group::AddLeaderInvite | ( | Player * | player | ) |
Definition at line 338 of file Group.cpp.
References AddInvite(), Object::GetGUID(), WorldObject::GetName(), m_leaderGuid, and m_leaderName.
Referenced by WorldSession::HandleGroupInviteOpcode().
| 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().
| InstanceGroupBind * Group::BindToInstance | ( | InstanceSave * | save, |
| bool | permanent, | ||
| bool | load = false |
||
| ) |
Definition at line 2275 of file Group.cpp.
References InstanceSave::AddGroup(), CHAR_REP_GROUP_INSTANCE, CharacterDatabase, InstanceSave::GetDifficultyID(), GetGUID(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), isBFGroup(), isBGGroup(), m_boundInstances, m_dbStoreId, InstanceGroupBind::perm, InstanceSave::RemoveGroup(), InstanceGroupBind::save, PreparedStatementBase::setBool(), PreparedStatementBase::setUInt32(), and TC_LOG_DEBUG.
Referenced by InstanceMap::AddPlayerToMap(), ConvertLeaderInstancesToGroup(), and GroupMgr::LoadGroups().
| void Group::BroadcastGroupUpdate | ( | void | ) |
Definition at line 2334 of file Group.cpp.
References ObjectAccessor::FindPlayer(), Object::ForceValuesUpdateAtIndex(), WorldObject::GetName(), m_memberSlots, TC_LOG_DEBUG, UNIT_FIELD_BYTES_2, and UNIT_FIELD_FACTIONTEMPLATE.
Referenced by group_commandscript::HandleGroupJoinCommand(), and RemoveMember().
| void Group::BroadcastPacket | ( | WorldPacket const * | packet, |
| bool | ignorePlayersInBGRaid, | ||
| int | group = -1, |
||
| ObjectGuid | ignoredPlayer = ObjectGuid::Empty |
||
| ) |
Definition at line 1788 of file Group.cpp.
References GetFirstMember(), Player::GetGroup(), Object::GetGUID(), Player::GetSession(), ObjectGuid::IsEmpty(), GroupReference::next(), and Player::SendDirectMessage().
Referenced by ChangeLeader(), WorldSession::HandleChatMessage(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), Unit::Kill(), SendLooter(), Player::SendNewItem(), and SetTargetIcon().
| void Group::BroadcastReadyCheck | ( | WorldPacket const * | packet | ) |
Definition at line 1801 of file Group.cpp.
References GetFirstMember(), Object::GetGUID(), Player::GetSession(), IsAssistant(), IsLeader(), GroupReference::next(), and Player::SendDirectMessage().
Referenced by WorldSession::HandleRaidReadyCheckOpcode(), and OfflineReadyCheck().
|
inline |
Definition at line 283 of file Group.h.
References GroupReference::next().
|
inline |
Definition at line 290 of file Group.h.
References GroupReference::next().
| GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue | ( | Battleground const * | bgOrTemplate, |
| BattlegroundQueueTypeId | bgQueueTypeId, | ||
| uint32 | MinPlayerCount, | ||
| uint32 | MaxPlayerCount, | ||
| bool | isRated, | ||
| uint32 | arenaSlot, | ||
| ObjectGuid & | errorGuid | ||
| ) | const |
Definition at line 1988 of file Group.cpp.
References ASSERT_NOTNULL, BATTLEGROUND_AA, BATTLEGROUND_RB, BattlegroundMgr::BGQueueTypeId(), Player::CanJoinToBattleground(), ObjectGuid::Empty, ERR_ARENA_TEAM_PARTY_SIZE, ERR_BATTLEGROUND_JOIN_FAILED, ERR_BATTLEGROUND_JOIN_RANGE_INDEX, ERR_BATTLEGROUND_JOIN_TIMED_OUT, ERR_BATTLEGROUND_NONE, ERR_BATTLEGROUND_TOO_MANY_QUEUES, ERR_GROUP_JOIN_BATTLEGROUND_DESERTERS, ERR_GROUP_JOIN_BATTLEGROUND_FAIL, ERR_IN_NON_RANDOM_BG, ERR_IN_RANDOM_BG, ERR_LFG_CANT_USE_BATTLEGROUND, Player::GetArenaTeamId(), GetBattlegroundBracketByLevel(), PvPDifficultyEntry::GetBracketId(), GetFirstMember(), Object::GetGUID(), Unit::GetLevel(), Battleground::GetMapId(), GetMembersCount(), Player::GetTeam(), Battleground::GetTypeID(), Unit::HasAura(), Player::HasFreeBattlegroundQueueId(), Player::InBattlegroundQueue(), Player::InBattlegroundQueueForBattlegroundQueueType(), Battleground::isArena(), Player::IsDeserter(), isLFGGroup(), Player::isUsingLfg(), PvPDifficultyEntry::MapID, BattlemasterListEntry::MaxGroupSize, GroupReference::next(), and sBattlemasterListStore.
Referenced by WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
| void Group::ChangeLeader | ( | ObjectGuid | guid | ) |
Definition at line 684 of file Group.cpp.
References _getMemberWSlot(), BroadcastPacket(), CHAR_DEL_GROUP_INSTANCE_PERM_BINDING, CHAR_UPD_GROUP_LEADER, CharacterDatabase, ConvertLeaderInstancesToGroup(), ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), Object::GetGUID(), WorldObject::GetName(), isBFGroup(), isBGGroup(), m_boundInstances, m_dbStoreId, m_leaderGuid, m_leaderName, m_memberSlots, MAX_DIFFICULTY, MEMBER_FLAG_ASSISTANT, PLAYER_FLAGS, PLAYER_FLAGS_GROUP_LEADER, Object::SetFlag(), PreparedStatementBase::setUInt32(), sMapMgr, SMSG_GROUP_SET_LEADER, sScriptMgr, and ToggleGroupMemberFlag().
Referenced by Battleground::AddOrSetPlayerToCorrectBgGroup(), group_commandscript::HandleGroupLeaderCommand(), WorldSession::HandleGroupSetLeaderOpcode(), RemoveMember(), and SelectNewPartyOrRaidLeader().
| void Group::ChangeMembersGroup | ( | ObjectGuid | guid, |
| uint8 | group | ||
| ) |
Definition at line 1862 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_SUBGROUP, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), GetMemberGroup(), isBFGroup(), isBGGroup(), isRaidGroup(), m_memberSlots, SendUpdate(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt8(), SubGroupCounterDecrease(), and SubGroupCounterIncrease().
Referenced by WorldSession::HandleGroupChangeSubGroupOpcode().
|
static |
convert the player's binds to the group
Definition at line 753 of file Group.cpp.
References BindToInstance(), WorldObject::FindMap(), GetBoundInstance(), WorldObject::GetName(), Player::m_boundInstances, MAX_DIFFICULTY, sInstanceSaveMgr, TC_LOG_DEBUG, and Player::UnbindInstance().
Referenced by ChangeLeader(), and Create().
| void Group::ConvertToLFG | ( | ) |
Definition at line 276 of file Group.cpp.
References CHAR_UPD_GROUP_TYPE, CharacterDatabase, GROUPTYPE_LFG, GROUPTYPE_LFG_RESTRICTED, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupType, m_lootMethod, NEED_BEFORE_GREED, SendUpdate(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by lfg::LFGMgr::MakeNewGroup().
| void Group::ConvertToRaid | ( | ) |
Definition at line 293 of file Group.cpp.
References _initRaidSubGroupsCounter(), CHAR_UPD_GROUP_TYPE, CharacterDatabase, ObjectAccessor::FindPlayer(), GROUPTYPE_RAID, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupType, m_memberSlots, SendUpdate(), PreparedStatementBase::setUInt32(), and PreparedStatementBase::setUInt8().
Referenced by WorldSession::HandleGroupRaidConvertOpcode().
| bool Group::CountRollVote | ( | ObjectGuid | playerGUID, |
| ObjectGuid | Guid, | ||
| uint8 | Choise | ||
| ) |
Definition at line 1396 of file Group.cpp.
References CountTheRoll(), DISENCHANT, ObjectGuid::Empty, Roll::getLoot(), GetRoll(), GREED, Loot::items, NEED, NOT_EMITED_YET, PASS, Roll::playerVote, ROLL_DISENCHANT, ROLL_GREED, ROLL_NEED, ROLL_PASS, RollId, SendLootRoll(), Roll::totalGreed, Roll::totalNeed, Roll::totalPass, and Roll::totalPlayersRolling.
Referenced by WorldSession::HandleLootRoll(), and RemoveMember().
| void Group::CountTheRoll | ( | Rolls::iterator | roll, |
| Map * | allowedMap | ||
| ) |
Definition at line 1456 of file Group.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL, ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT, ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT, ASSERT, Player::AutoStoreLoot(), Player::CanStoreNewItem(), LootItem::count, DISENCHANT, ItemTemplate::DisenchantID, ObjectGuid::Empty, EQUIP_ERR_OK, Loot::FillLoot(), ObjectAccessor::FindConnectedPlayer(), WorldObject::FindMap(), ObjectAccessor::FindPlayer(), LootItem::GetAllowedLooters(), Object::GetGUID(), Roll::getLoot(), Loot::GetMaxSlotInLootFor(), Player::GetSession(), GREED, LootItem::is_blocked, LootItem::is_looted, ObjectGuid::IsEmpty(), Reference< TO, FROM >::isValid(), Roll::itemid, LootItem::itemid, Loot::items, Roll::itemSlot, Loot::LootItemInSlot(), LootTemplates_Disenchant, NEED, NOT_VALID, Loot::NotifyItemRemoved(), NULL_BAG, NULL_SLOT, Roll::playerVote, Loot::quest_items, LootItem::randomPropertyId, ROLL_NEED, RollId, LootItem::rollWinnerGUID, Player::SendEquipError(), Player::SendItemRetrievalMail(), SendLootAllPassed(), SendLootRoll(), SendLootRollWon(), sObjectMgr, Player::StoreNewItem(), Roll::totalGreed, Roll::totalNeed, Loot::unlootedCount, Player::UpdateAchievementCriteria(), and urand().
Referenced by CountRollVote(), and EndRoll().
| bool Group::Create | ( | Player * | leader | ) |
Definition at line 151 of file Group.cpp.
References _initRaidSubGroupsCounter(), AddMember(), ASSERT, CHAR_INS_GROUP, CharacterDatabase, ObjectGuid::Clear(), ConvertLeaderInstancesToGroup(), DUNGEON_DIFFICULTY_NORMAL, ObjectGuid::GetCounter(), Player::GetDungeonDifficultyID(), Object::GetGUID(), WorldObject::GetName(), Player::GetRaidDifficultyID(), GROUP_LOOT, GROUPTYPE_BGRAID, GROUPTYPE_RAID, isBFGroup(), isBGGroup(), isLFGGroup(), ITEM_QUALITY_UNCOMMON, m_dbStoreId, m_dungeonDifficulty, m_groupType, m_guid, m_leaderGuid, m_leaderName, m_looterGuid, m_lootMethod, m_lootThreshold, m_masterLooterGuid, m_raidDifficulty, m_targetIcons, PLAYER_FLAGS, PLAYER_FLAGS_GROUP_LEADER, RAID_DIFFICULTY_10MAN_NORMAL, Object::SetFlag(), PreparedStatementBase::setUInt32(), PreparedStatementBase::setUInt64(), PreparedStatementBase::setUInt8(), and sGroupMgr.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), and lfg::LFGMgr::MakeNewGroup().
| void Group::DelinkMember | ( | ObjectGuid | guid | ) |
Definition at line 2579 of file Group.cpp.
References GroupRefManager::getFirst(), Object::GetGUID(), Reference< TO, FROM >::GetSource(), m_memberMgr, GroupReference::next(), and Reference< TO, FROM >::unlink().
Referenced by RemoveMember().
| void Group::Disband | ( | bool | hideDestroy = false | ) |
Definition at line 789 of file Group.cpp.
References _homebindIfInstance(), CHAR_DEL_GROUP, CHAR_DEL_GROUP_MEMBER_ALL, CHAR_DEL_LFG_DATA, CharacterDatabase, ObjectGuid::Empty, ObjectAccessor::FindConnectedPlayer(), Player::GetGroup(), Player::GetOriginalGroup(), Player::GetSession(), WorldPacket::Initialize(), INSTANCE_RESET_GROUP_DISBAND, isBFGroup(), isBGGroup(), isRaidGroup(), m_counter, m_dbStoreId, m_guid, m_memberSlots, RemoveAllInvites(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), ResetInstances(), Player::SendDirectMessage(), Player::SetGroup(), Player::SetOriginalGroup(), PreparedStatementBase::setUInt32(), sGroupMgr, SMSG_GROUP_DESTROYED, SMSG_GROUP_LIST, SMSG_REAL_GROUP_UPDATE, sScriptMgr, and Player::UpdateVisibleGameobjectsOrSpellClicks().
Referenced by group_commandscript::HandleGroupDisbandCommand(), WorldSession::HandleGroupDisbandOpcode(), lfg::LFGPlayerScript::OnMapChanged(), RemoveMember(), and Player::UninviteFromGroup().
Definition at line 1443 of file Group.cpp.
References CountTheRoll(), and RollId.
| InstanceGroupBind * Group::GetBoundInstance | ( | Difficulty | difficulty, |
| uint32 | mapId | ||
| ) |
Definition at line 2263 of file Group.cpp.
References GetDownscaledMapDifficultyData(), and m_boundInstances.
| InstanceGroupBind * Group::GetBoundInstance | ( | Map * | aMap | ) |
Definition at line 2249 of file Group.cpp.
References GetBoundInstance(), and Map::GetEntry().
| InstanceGroupBind * Group::GetBoundInstance | ( | MapEntry const * | mapEntry | ) |
Definition at line 2254 of file Group.cpp.
References GetBoundInstance(), GetDifficultyID(), MapEntry::ID, and MapEntry::IsDungeon().
| InstanceGroupBind * Group::GetBoundInstance | ( | Player * | player | ) |
Definition at line 2242 of file Group.cpp.
References GetBoundInstance(), WorldLocation::GetMapId(), and sMapStore.
Referenced by InstanceMap::AddPlayerToMap(), ConvertLeaderInstancesToGroup(), MapInstanced::CreateInstanceForPlayer(), GetBoundInstance(), GetBoundInstance(), GetBoundInstance(), misc_commandscript::HandleAppearCommand(), and MapManager::PlayerCannotEnter().
| Group::BoundInstancesMap & Group::GetBoundInstances | ( | Difficulty | difficulty | ) |
Definition at line 2594 of file Group.cpp.
References m_boundInstances.
|
inline |
Definition at line 226 of file Group.h.
Referenced by GroupMgr::FreeGroupDbStoreId(), GroupMgr::LoadGroups(), and lfg::LFGMgr::MakeNewGroup().
| Difficulty Group::GetDifficultyID | ( | MapEntry const * | mapEntry | ) | const |
Definition at line 2116 of file Group.cpp.
References MapEntry::IsRaid(), m_dungeonDifficulty, and m_raidDifficulty.
Referenced by MapInstanced::CreateInstanceForPlayer(), GetBoundInstance(), WorldSession::HandleAreaTriggerOpcode(), DisableMgr::IsDisabledFor(), MapManager::PlayerCannotEnter(), and Player::Satisfy().
|
inline |
Definition at line 270 of file Group.h.
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and ResetInstances().
|
inline |
Definition at line 247 of file Group.h.
Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardGroup(), BattlegroundQueue::AddGroup(), AddMember(), BroadcastPacket(), BroadcastReadyCheck(), CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Loot::FillLoot(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), GroupLoot(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), group_commandscript::HandleGroupLevelCommand(), group_commandscript::HandleGroupRepairCommand(), group_commandscript::HandleGroupReviveCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), tele_commandscript::HandleTeleGroupCommand(), lfg::LFGMgr::JoinLfg(), MasterLoot(), NeedBeforeGreed(), lfg::LFGPlayerScript::OnMapChanged(), RemoveMember(), WorldSession::SendLfgPartyLockInfo(), lfg::LFGMgr::TeleportPlayer(), PetAI::UpdateAllies(), and UpdatePlayerOutOfRange().
|
inline |
| ObjectGuid Group::GetGUID | ( | ) | const |
Definition at line 2427 of file Group.cpp.
References m_guid.
Referenced by Player::_LoadBoundInstances(), GroupMgr::AddGroup(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), BindToInstance(), Player::CanUninviteFromGroup(), ArenaTeam::DelMember(), GroupLoot(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), lfg::LFGMgr::JoinLfg(), LoadGroupFromDB(), LoadMemberFromDB(), lfg::LFGMgr::MakeNewGroup(), NeedBeforeGreed(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGGroupScript::OnChangeLeader(), lfg::LFGGroupScript::OnDisband(), lfg::LFGGroupScript::OnInviteMember(), lfg::LFGPlayerScript::OnMapChanged(), lfg::LFGGroupScript::OnRemoveMember(), GroupMgr::RemoveGroup(), RemoveMember(), GameObject::SetLootRecipient(), and lfg::LFGMgr::TeleportPlayer().
| Player * Group::GetInvited | ( | const std::string & | name | ) | const |
Definition at line 376 of file Group.cpp.
References m_invitees.
| Player * Group::GetInvited | ( | ObjectGuid | guid | ) | const |
Definition at line 366 of file Group.cpp.
References m_invitees.
Referenced by WorldSession::HandleGroupUninviteGuidOpcode(), and WorldSession::HandleGroupUninviteOpcode().
|
inline |
Definition at line 250 of file Group.h.
Referenced by Player::UninviteFromGroup().
| ObjectGuid Group::GetLeaderGUID | ( | ) | const |
Definition at line 2422 of file Group.cpp.
References m_leaderGuid.
Referenced by InstanceMap::AddPlayerToMap(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleGroupDeclineOpcode(), WorldSession::HandleGroupDisbandOpcode(), group_commandscript::HandleGroupLeaderCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleLfgLeaveOpcode(), IsLeader(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGGroupScript::OnInviteMember(), RemoveMember(), and Player::Satisfy().
| char const * Group::GetLeaderName | ( | ) | const |
Definition at line 2432 of file Group.cpp.
References m_leaderName.
Referenced by ChatLogScript::OnChat().
| 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().
| LootMethod Group::GetLootMethod | ( | ) | const |
Definition at line 2437 of file Group.cpp.
References m_lootMethod.
Referenced by LootItem::AllowedForPlayer(), Loot::FillQuestLoot(), GetLooterGuid(), WorldSession::HandleLootMasterGiveOpcode(), Player::isAllowedToLoot(), Player::SendLoot(), SendLooter(), and UpdateLooterGuid().
| ItemQualities Group::GetLootThreshold | ( | ) | const |
Definition at line 2454 of file Group.cpp.
References m_lootThreshold.
Referenced by Loot::FillLoot().
| ObjectGuid Group::GetMasterLooterGuid | ( | ) | const |
Definition at line 2449 of file Group.cpp.
References m_masterLooterGuid.
Referenced by LootItem::AllowedForPlayer(), Loot::BuildLootResponse(), Loot::FillQuestLoot(), WorldSession::HandleLootMasterGiveOpcode(), Player::SendLoot(), and SendLooter().
| uint8 Group::GetMemberFlags | ( | ObjectGuid | guid | ) | const |
Definition at line 2477 of file Group.cpp.
References _getMemberCSlot(), and m_memberSlots.
Referenced by group_commandscript::GroupFlagCommand().
| uint8 Group::GetMemberGroup | ( | ObjectGuid | guid | ) | const |
Definition at line 2506 of file Group.cpp.
References _getMemberCSlot(), m_memberSlots, and MAX_RAID_SUBGROUPS.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeMembersGroup(), WorldSession::HandleChatMessage(), and Unit::Kill().
| 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().
|
inline |
Definition at line 249 of file Group.h.
Referenced by CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleGroupRaidConvertOpcode(), IsCreated(), lfg::LFGMgr::JoinLfg(), MasterLoot(), lfg::LFGPlayerScript::OnMapChanged(), RemoveMember(), SendOriginalGroupUpdateToPlayer(), SendUpdateToPlayer(), Player::UninviteFromGroup(), and PetAI::UpdateAllies().
|
inline |
Definition at line 246 of file Group.h.
Referenced by group_commandscript::HandleGroupListCommand(), lfg_commandscript::HandleLfgGroupInfoCommand(), and ResetInstances().
|
inline |
Definition at line 271 of file Group.h.
Referenced by WorldSession::HandleSetRaidDifficultyOpcode(), and ResetInstances().
| Group::Rolls::iterator Group::GetRoll | ( | ObjectGuid | Guid | ) |
|
inline |
| void Group::GroupLoot | ( | Loot * | loot, |
| WorldObject * | pLootedObject | ||
| ) |
Definition at line 1045 of file Group.cpp.
References CanRollOnItem(), ItemTemplate::DisenchantID, ObjectAccessor::FindConnectedPlayer(), GetFirstMember(), GetGUID(), Object::GetGUID(), WorldLocation::GetMapId(), Player::GetPassOnGroupLoot(), ItemTemplate::GetQuality(), ItemTemplate::GetRequiredDisenchantSkill(), Player::GetSession(), Player::IsAtGroupRewardDistance(), Item, Loot::items, Roll::itemSlot, m_lootThreshold, m_maxEnchantingLevel, GroupReference::next(), NOT_EMITED_YET, PASS, Roll::playerVote, Loot::quest_items, ROLL_FLAG_TYPE_DISENCHANT, ROLL_PASS, RollId, Roll::rollVoteMask, SendLootRoll(), SendLootStartRoll(), Roll::setLoot(), sObjectMgr, Object::ToCreature(), Object::ToGameObject(), Roll::totalPass, and Roll::totalPlayersRolling.
| 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().
|
inline |
Definition at line 233 of file Group.h.
References MEMBER_FLAG_ASSISTANT.
Referenced by BroadcastReadyCheck(), Player::CanUninviteFromGroup(), WorldSession::HandleChatMessage(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandlePartyAssignmentOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), and WorldSession::HandleRaidTargetUpdateOpcode().
| bool Group::isBFGroup | ( | ) | const |
Definition at line 2412 of file Group.cpp.
References m_bfGroup.
Referenced by _setMembersGroup(), AddInvite(), AddMember(), BindToInstance(), ChangeLeader(), ChangeMembersGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), RemoveMember(), ResetInstances(), SendUpdateToPlayer(), SetDungeonDifficultyID(), and SetRaidDifficultyID().
| bool Group::isBGGroup | ( | ) | const |
Definition at line 2407 of file Group.cpp.
References m_bgGroup.
Referenced by _setMembersGroup(), AddInvite(), AddMember(), BindToInstance(), ChangeLeader(), ChangeMembersGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), WorldSession::HandleChatMessage(), WorldSession::HandleGroupInviteOpcode(), RemoveMember(), ResetInstances(), SendUpdateToPlayer(), SetDungeonDifficultyID(), and SetRaidDifficultyID().
| bool Group::IsCreated | ( | ) | const |
Definition at line 2417 of file Group.cpp.
References GetMembersCount().
Referenced by WorldSession::HandleGroupInviteOpcode(), and Player::UninviteFromGroup().
| bool Group::IsFull | ( | ) | const |
Definition at line 2392 of file Group.cpp.
References isRaidGroup(), m_memberSlots, MAX_GROUP_SIZE, and MAX_RAID_SIZE.
Referenced by WorldSession::HandleGroupInviteOpcode(), and group_commandscript::HandleGroupJoinCommand().
| bool Group::IsLeader | ( | ObjectGuid | guid | ) | const |
Definition at line 2464 of file Group.cpp.
References GetLeaderGUID().
Referenced by AddMember(), BroadcastReadyCheck(), Player::CanUninviteFromGroup(), group_commandscript::GroupFlagCommand(), WorldSession::HandleChatMessage(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandlePartyAssignmentOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), and WorldSession::HandleSetRaidDifficultyOpcode().
| bool Group::isLFGGroup | ( | ) | const |
Definition at line 2397 of file Group.cpp.
References GROUPTYPE_LFG, and m_groupType.
Referenced by InstanceMap::AddPlayerToMap(), CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Create(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), lfg::LFGMgr::JoinLfg(), lfg::LFGGroupScript::OnRemoveMember(), MapManager::PlayerCannotEnter(), RemoveMember(), SendUpdateToPlayer(), and lfg::LFGMgr::TeleportPlayer().
| bool Group::IsMember | ( | ObjectGuid | guid | ) | const |
Definition at line 2459 of file Group.cpp.
References _getMemberCSlot(), and m_memberSlots.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ArenaTeam::GetAverageMMR(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleLootMethodOpcode(), npc_sironas::npc_sironasAI::JustDied(), Trinity::MostHPMissingGroupInRange::operator()(), and GameObject::Use().
| bool Group::isRaidGroup | ( | ) | const |
Definition at line 2402 of file Group.cpp.
References GROUPTYPE_RAID, and m_groupType.
Referenced by KillRewarder::_RewardGroup(), AddMember(), ChangeMembersGroup(), Disband(), group_commandscript::GroupFlagCommand(), WorldSession::HandleChatMessage(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleRaidTargetUpdateOpcode(), IsFull(), MeetsGroupStatusCondition(), MapManager::PlayerCannotEnter(), SetGroupMemberFlag(), and PetAI::UpdateAllies().
|
inline |
Definition at line 304 of file Group.h.
Referenced by Player::CanUninviteFromGroup().
| void Group::LinkMember | ( | GroupReference * | pRef | ) |
Definition at line 2574 of file Group.cpp.
References LinkedListHead::insertFirst(), and m_memberMgr.
Referenced by GroupReference::targetObjectBuildLink().
| void Group::LoadGroupFromDB | ( | Field * | field | ) |
Definition at line 221 of file Group.cpp.
References _initRaidSubGroupsCounter(), Player::CheckLoadedDungeonDifficultyID(), Player::CheckLoadedRaidDifficultyID(), ObjectGuid::Empty, GetGUID(), Field::GetUInt32(), GROUPTYPE_LFG, GROUPTYPE_RAID, m_dbStoreId, m_dungeonDifficulty, m_groupType, m_guid, m_leaderGuid, m_leaderName, m_looterGuid, m_lootMethod, m_lootThreshold, m_masterLooterGuid, m_raidDifficulty, m_targetIcons, sCharacterCache, 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 251 of file Group.cpp.
References CHAR_DEL_GROUP_MEMBER, CharacterDatabase, Group::MemberSlot::flags, GetGUID(), Group::MemberSlot::group, Group::MemberSlot::guid, m_memberSlots, Group::MemberSlot::name, Group::MemberSlot::roles, sCharacterCache, PreparedStatementBase::setUInt32(), sLFGMgr, and SubGroupCounterIncrease().
Referenced by GroupMgr::LoadGroups().
| void Group::MasterLoot | ( | Loot * | loot, |
| WorldObject * | pLootedObject | ||
| ) |
Definition at line 1348 of file Group.cpp.
References GetFirstMember(), Object::GetGUID(), GetMembersCount(), Player::IsAtGroupRewardDistance(), Object::IsInWorld(), Loot::items, GroupReference::next(), ByteBuffer::put(), Loot::quest_items, Player::SendDirectMessage(), SMSG_LOOT_MASTER_LIST, and TC_LOG_DEBUG.
| void Group::NeedBeforeGreed | ( | Loot * | loot, |
| WorldObject * | pLootedObject | ||
| ) |
Definition at line 1200 of file Group.cpp.
References ASSERT, Player::CanRollForItemInLFG(), CanRollOnItem(), ItemTemplate::DisenchantID, EQUIP_ERR_OK, ObjectAccessor::FindConnectedPlayer(), GetFirstMember(), GetGUID(), Object::GetGUID(), WorldLocation::GetMapId(), Player::GetPassOnGroupLoot(), ItemTemplate::GetQuality(), ItemTemplate::GetRequiredDisenchantSkill(), Player::GetSession(), ItemTemplate::HasFlag(), Player::IsAtGroupRewardDistance(), Item, ITEM_FLAG2_CAN_ONLY_ROLL_GREED, Loot::items, Roll::itemSlot, m_lootThreshold, m_maxEnchantingLevel, GroupReference::next(), NOT_EMITED_YET, PASS, Roll::playerVote, Loot::quest_items, ROLL_FLAG_TYPE_DISENCHANT, ROLL_PASS, RollId, Roll::rollVoteMask, SendLootRoll(), SendLootStartRollToPlayer(), Roll::setLoot(), sObjectMgr, Object::ToCreature(), Object::ToGameObject(), Roll::totalPass, and Roll::totalPlayersRolling.
| void Group::OfflineReadyCheck | ( | ) |
Definition at line 1812 of file Group.cpp.
References BroadcastReadyCheck(), ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), m_memberSlots, and MSG_RAID_READY_CHECK_CONFIRM.
Referenced by WorldSession::HandleRaidReadyCheckOpcode().
| void Group::RemoveAllInvites | ( | ) |
Definition at line 357 of file Group.cpp.
References m_invitees.
Referenced by Disband(), WorldSession::HandleGroupInviteOpcode(), and Player::UninviteFromGroup().
| void Group::RemoveInvite | ( | Player * | player | ) |
Definition at line 348 of file Group.cpp.
References m_invitees, and Player::SetGroupInvite().
Referenced by AddInvite(), WorldSession::HandleGroupAcceptOpcode(), and Player::UninviteFromGroup().
| bool Group::RemoveMember | ( | ObjectGuid | guid, |
| RemoveMethod const & | method = GROUP_REMOVEMETHOD_DEFAULT, |
||
| ObjectGuid | kicker = ObjectGuid::Empty, |
||
| char const * | reason = nullptr |
||
| ) |
Definition at line 518 of file Group.cpp.
References _getMemberWSlot(), _homebindIfInstance(), BroadcastGroupUpdate(), ChangeLeader(), CHAR_DEL_GROUP_MEMBER, CharacterDatabase, CountRollVote(), DelinkMember(), Disband(), DISENCHANT, ObjectGuid::Empty, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), GetFirstMember(), Player::GetGroup(), GetGUID(), GetLeaderGUID(), WorldLocation::GetMapId(), GetMembersCount(), Player::GetOriginalGroup(), LinkedListHead::getSize(), Player::GetSkillValue(), GREED, GROUP_REMOVEMETHOD_KICK, GROUP_REMOVEMETHOD_KICK_LFG, WorldPacket::Initialize(), Unit::IsAlive(), isBFGroup(), isBGGroup(), isLFGGroup(), Roll::itemGUID, m_counter, m_guid, m_leaderGuid, m_memberMgr, m_memberSlots, MAX_ROLL_TYPE, NEED, GroupReference::next(), NOT_VALID, PASS, Roll::playerVote, Unit::RemoveAllGroupBuffsFromCaster(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), ResetMaxEnchantingLevel(), RollId, Player::SendDirectMessage(), SendUpdate(), Player::SetGroup(), Player::SetOriginalGroup(), PreparedStatementBase::setUInt32(), SKILL_ENCHANTING, sLFGMgr, SMSG_GROUP_LIST, SMSG_GROUP_UNINVITE, SMSG_REAL_GROUP_UPDATE, sScriptMgr, SubGroupCounterDecrease(), Roll::totalGreed, Roll::totalNeed, Roll::totalPass, Roll::totalPlayersRolling, and Player::UpdateVisibleGameobjectsOrSpellClicks().
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), group_commandscript::HandleGroupRemoveCommand(), lfg::LFGMgr::MakeNewGroup(), and Player::RemoveFromGroup().
| void Group::RemoveUniqueGroupMemberFlag | ( | GroupMemberFlags | flag | ) |
Definition at line 2639 of file Group.cpp.
References m_memberSlots.
Referenced by WorldSession::HandlePartyAssignmentOpcode(), and SetGroupMemberFlag().
Definition at line 2121 of file Group.cpp.
References InstanceSave::CanReset(), CHAR_DEL_GROUP_INSTANCE_BY_INSTANCE, CHAR_UPD_CHARACTER_POSITION_BY_MAPID, CharacterDatabase, CONFIG_INSTANCES_RESET_ANNOUNCE, WorldSafeLocsEntry::Continent, InstanceSave::DeleteFromDB(), DUNGEON_DIFFICULTY_HEROIC, ObjectAccessor::FindConnectedPlayer(), GetDungeonDifficultyID(), Player::GetGroup(), Map::GetId(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), GetMemberSlots(), GetRaidDifficultyID(), Player::GetTeam(), Map::HavePlayers(), INSTANCE_RESET_ALL, INSTANCE_RESET_CHANGE_DIFFICULTY, INSTANCE_RESET_GROUP_DISBAND, MapEntry::InstanceType, isBFGroup(), isBGGroup(), Map::IsDungeon(), MapEntry::IsRaid(), WorldSafeLocsEntry::Loc, m_boundInstances, MAP_RAID, GroupReference::next(), PHASEMASK_NORMAL, InstanceSave::RemoveGroup(), Player::SendResetInstanceFailed(), Player::SendResetInstanceSuccess(), PreparedStatementBase::setFloat(), PreparedStatementBase::setUInt32(), sMapMgr, sMapStore, sObjectMgr, sWorld, AreaTriggerTeleport::target_mapId, AreaTriggerTeleport::target_Orientation, AreaTriggerTeleport::target_X, AreaTriggerTeleport::target_Y, AreaTriggerTeleport::target_Z, TC_LOG_DEBUG, DBCPosition3D::X, DBCPosition3D::Y, and DBCPosition3D::Z.
Referenced by Disband(), WorldSession::HandleSetDungeonDifficultyOpcode(), and WorldSession::HandleSetRaidDifficultyOpcode().
| void Group::ResetMaxEnchantingLevel | ( | ) |
Definition at line 2350 of file Group.cpp.
References ObjectAccessor::FindPlayer(), Player::GetSkillValue(), m_maxEnchantingLevel, m_memberSlots, and SKILL_ENCHANTING.
Referenced by RemoveMember().
| 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.
| bool Group::SameSubGroup | ( | ObjectGuid | guid1, |
| ObjectGuid | guid2 | ||
| ) | const |
Definition at line 2485 of file Group.cpp.
References _getMemberCSlot(), m_memberSlots, and SameSubGroup().
Referenced by Player::IsInSameGroupWith(), SameSubGroup(), and PetAI::UpdateAllies().
Definition at line 1850 of file Group.cpp.
References Player::GetGroup(), and Player::GetSubGroup().
| void Group::SelectNewPartyOrRaidLeader | ( | ) |
Definition at line 115 of file Group.cpp.
References ChangeLeader(), ObjectAccessor::FindPlayer(), Object::GetGUID(), GROUPTYPE_RAID, m_groupType, m_memberSlots, MEMBER_FLAG_ASSISTANT, and SendUpdate().
Referenced by Update().
| void Group::SendLootAllPassed | ( | Roll const & | roll | ) |
Definition at line 987 of file Group.cpp.
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), Roll::itemGUID, Roll::itemid, Roll::itemRandomPropertySeed, Roll::itemRandomPropId, Roll::itemSlot, NOT_VALID, Roll::playerVote, Player::SendDirectMessage(), and SMSG_LOOT_ALL_PASSED.
Referenced by CountTheRoll().
Definition at line 1008 of file Group.cpp.
References ASSERT, BroadcastPacket(), Object::GetGUID(), GetLootMethod(), GetMasterLooterGuid(), Object::GetPackGUID(), Loot::hasOverThresholdItem(), Creature::loot, MASTER_LOOT, SMSG_LOOT_LIST, and ObjectGuid::WriteAsPacked().
Referenced by Unit::Kill().
| void Group::SendLootRoll | ( | ObjectGuid | SourceGuid, |
| ObjectGuid | TargetGuid, | ||
| uint8 | RollNumber, | ||
| uint8 | RollType, | ||
| Roll const & | r, | ||
| bool | autoPass = false |
||
| ) |
Definition at line 940 of file Group.cpp.
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), Roll::itemid, Roll::itemRandomPropertySeed, Roll::itemRandomPropId, Roll::itemSlot, NOT_VALID, Roll::playerVote, Player::SendDirectMessage(), and SMSG_LOOT_ROLL.
Referenced by CountRollVote(), CountTheRoll(), GroupLoot(), and NeedBeforeGreed().
| void Group::SendLootRollWon | ( | ObjectGuid | SourceGuid, |
| ObjectGuid | TargetGuid, | ||
| uint8 | RollNumber, | ||
| uint8 | RollType, | ||
| Roll const & | r | ||
| ) |
Definition at line 964 of file Group.cpp.
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), Roll::itemid, Roll::itemRandomPropertySeed, Roll::itemRandomPropId, Roll::itemSlot, NOT_VALID, Roll::playerVote, Player::SendDirectMessage(), and SMSG_LOOT_ROLL_WON.
Referenced by CountTheRoll().
Definition at line 894 of file Group.cpp.
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), Roll::itemCount, Roll::itemGUID, Roll::itemid, Roll::itemRandomPropertySeed, Roll::itemRandomPropId, Roll::itemSlot, NOT_EMITED_YET, Roll::playerVote, Roll::rollVoteMask, Player::SendDirectMessage(), and SMSG_LOOT_START_ROLL.
Referenced by GroupLoot().
| void Group::SendLootStartRollToPlayer | ( | uint32 | countDown, |
| uint32 | mapId, | ||
| Player * | p, | ||
| bool | canNeed, | ||
| Roll const & | r | ||
| ) |
Definition at line 918 of file Group.cpp.
References Player::GetSession(), Roll::itemCount, Roll::itemGUID, Roll::itemid, Roll::itemRandomPropertySeed, Roll::itemRandomPropId, Roll::itemSlot, Roll::rollVoteMask, Player::SendDirectMessage(), and SMSG_LOOT_START_ROLL.
Referenced by NeedBeforeGreed().
| void Group::SendOriginalGroupUpdateToPlayer | ( | Player const * | player | ) | const |
Definition at line 1762 of file Group.cpp.
References GetMembersCount(), m_groupType, m_leaderGuid, Player::SendDirectMessage(), and SMSG_REAL_GROUP_UPDATE.
Referenced by SendUpdateToPlayer().
| void Group::SendTargetIconList | ( | WorldSession * | session | ) |
Definition at line 1657 of file Group.cpp.
References m_targetIcons, MSG_RAID_TARGET_UPDATE, WorldSession::SendPacket(), and TARGET_ICONS_COUNT.
Referenced by WorldSession::HandleRaidTargetUpdateOpcode().
| void Group::SendUpdate | ( | ) |
Definition at line 1677 of file Group.cpp.
References ObjectAccessor::FindConnectedPlayer(), m_memberSlots, and SendUpdateToPlayer().
Referenced by AddMember(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeMembersGroup(), ConvertToLFG(), ConvertToRaid(), group_commandscript::HandleGroupLeaderCommand(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandlePartyAssignmentOpcode(), lfg::LFGMgr::MakeNewGroup(), RemoveMember(), SelectNewPartyOrRaidLeader(), SetDungeonDifficultyID(), SetGroupMemberFlag(), SetLfgRoles(), SetRaidDifficultyID(), and UpdateLooterGuid().
| void Group::SendUpdateToPlayer | ( | Player const * | player, |
| MemberSlot const * | slot = nullptr |
||
| ) |
Definition at line 1689 of file Group.cpp.
References _getMemberCSlot(), ObjectGuid::Empty, ObjectAccessor::FindConnectedPlayer(), Group::MemberSlot::flags, Player::GetGroup(), Object::GetGUID(), GetMembersCount(), Player::GetOriginalGroup(), Player::GetSession(), Group::MemberSlot::group, Group::MemberSlot::guid, isBFGroup(), isBGGroup(), isLFGGroup(), lfg::LFG_STATE_FINISHED_DUNGEON, m_counter, m_dungeonDifficulty, m_groupType, m_guid, m_leaderGuid, m_lootMethod, m_lootThreshold, m_masterLooterGuid, m_memberSlots, m_raidDifficulty, MASTER_LOOT, MEMBER_STATUS_OFFLINE, MEMBER_STATUS_ONLINE, MEMBER_STATUS_PVP, WorldSession::PlayerLogout(), RAID_DIFFICULTY_10MAN_HEROIC, Group::MemberSlot::roles, Player::SendDirectMessage(), SendOriginalGroupUpdateToPlayer(), sLFGMgr, and SMSG_GROUP_LIST.
Referenced by SendUpdate().
| void Group::SetBattlefieldGroup | ( | Battlefield * | bf | ) |
Definition at line 2519 of file Group.cpp.
References m_bfGroup.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup().
| void Group::SetBattlegroundGroup | ( | Battleground * | bg | ) |
Definition at line 2514 of file Group.cpp.
References m_bgGroup.
Referenced by Battleground::SetBgRaid().
| void Group::SetDungeonDifficultyID | ( | Difficulty | difficulty | ) |
Definition at line 2084 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::SetGroupMemberFlag | ( | ObjectGuid | guid, |
| bool | apply, | ||
| GroupMemberFlags | flag | ||
| ) |
Definition at line 2524 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::setUInt32(), PreparedStatementBase::setUInt8(), and ToggleGroupMemberFlag().
Referenced by group_commandscript::GroupFlagCommand(), WorldSession::HandleGroupAssistantLeaderOpcode(), and WorldSession::HandlePartyAssignmentOpcode().
| 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().
| void Group::SetLooterGuid | ( | ObjectGuid | guid | ) |
Definition at line 2367 of file Group.cpp.
References m_looterGuid.
Referenced by UpdateLooterGuid().
| void Group::SetLootMethod | ( | LootMethod | method | ) |
Definition at line 2362 of file Group.cpp.
References m_lootMethod.
Referenced by WorldSession::HandleLootMethodOpcode().
| void Group::SetLootThreshold | ( | ItemQualities | threshold | ) |
Definition at line 2377 of file Group.cpp.
References m_lootThreshold.
Referenced by WorldSession::HandleLootMethodOpcode().
| void Group::SetMasterLooterGuid | ( | ObjectGuid | guid | ) |
Definition at line 2372 of file Group.cpp.
References m_masterLooterGuid.
Referenced by WorldSession::HandleLootMethodOpcode().
| void Group::SetRaidDifficultyID | ( | Difficulty | difficulty | ) |
Definition at line 2100 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().
| void Group::SetTargetIcon | ( | uint8 | id, |
| ObjectGuid | whoGuid, | ||
| ObjectGuid | targetGuid | ||
| ) |
Definition at line 1636 of file Group.cpp.
References BroadcastPacket(), ObjectGuid::Empty, ObjectGuid::IsEmpty(), m_targetIcons, MSG_RAID_TARGET_UPDATE, SetTargetIcon(), and TARGET_ICONS_COUNT.
Referenced by WorldSession::HandleRaidTargetUpdateOpcode(), and SetTargetIcon().
| void Group::StartLeaderOfflineTimer | ( | ) |
Definition at line 2654 of file Group.cpp.
References IN_MILLISECONDS, m_isLeaderOffline, m_leaderOfflineTimer, MINUTE, and TimeTracker::Reset().
| void Group::StopLeaderOfflineTimer | ( | ) |
Definition at line 2660 of file Group.cpp.
References m_isLeaderOffline.
|
protected |
Definition at line 2633 of file Group.cpp.
References m_subGroupsCounts.
Referenced by ChangeMembersGroup(), and RemoveMember().
|
protected |
Definition at line 2627 of file Group.cpp.
References m_subGroupsCounts.
Referenced by _setMembersGroup(), AddMember(), ChangeMembersGroup(), and LoadMemberFromDB().
|
protected |
Definition at line 2646 of file Group.cpp.
Referenced by ChangeLeader(), and SetGroupMemberFlag().
Definition at line 2308 of file Group.cpp.
References CHAR_DEL_GROUP_INSTANCE_BY_GUID, CharacterDatabase, m_boundInstances, m_dbStoreId, and PreparedStatementBase::setUInt32().
Referenced by InstanceSaveManager::_ResetSave().
| void Group::Update | ( | uint32 | diff | ) |
Definition at line 102 of file Group.cpp.
References GROUPTYPE_NORMAL, GROUPTYPE_RAID, m_groupType, m_isLeaderOffline, m_leaderOfflineTimer, TimeTracker::Passed(), SelectNewPartyOrRaidLeader(), and TimeTracker::Update().
Referenced by GroupMgr::Update().
| void Group::UpdateLooterGuid | ( | WorldObject * | pLootedObject, |
| bool | ifneed = false |
||
| ) |
Definition at line 1926 of file Group.cpp.
References _getMemberCSlot(), ObjectGuid::Empty, ObjectAccessor::FindPlayer(), FREE_FOR_ALL, Object::GetGUID(), GetLooterGuid(), GetLootMethod(), Player::IsAtGroupRewardDistance(), m_memberSlots, SendUpdate(), and SetLooterGuid().
Referenced by Unit::Kill(), and Player::SendLoot().
| void Group::UpdatePlayerOutOfRange | ( | Player * | player | ) |
Definition at line 1771 of file Group.cpp.
References WorldSession::BuildPartyMemberStatsChangedPacket(), GetFirstMember(), Player::GetSession(), WorldObject::GetSightRange(), WorldObject::IsInMap(), Object::IsInWorld(), WorldObject::IsWithinDist(), GroupReference::next(), and Player::SendDirectMessage().
Referenced by AddMember().
|
protected |
Definition at line 362 of file Group.h.
Referenced by isBFGroup(), and SetBattlefieldGroup().
|
protected |
Definition at line 361 of file Group.h.
Referenced by isBGGroup(), SetBattlegroundGroup(), and ~Group().
|
protected |
Definition at line 369 of file Group.h.
Referenced by BindToInstance(), ChangeLeader(), GetBoundInstance(), GetBoundInstances(), ResetInstances(), UnbindInstance(), and ~Group().
|
protected |
Definition at line 372 of file Group.h.
Referenced by Disband(), RemoveMember(), and SendUpdateToPlayer().
|
protected |
Definition at line 374 of file Group.h.
Referenced by AddMember(), BindToInstance(), ChangeLeader(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), LoadGroupFromDB(), SetDungeonDifficultyID(), SetRaidDifficultyID(), and UnbindInstance().
|
protected |
Definition at line 359 of file Group.h.
Referenced by Create(), GetDifficultyID(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetDungeonDifficultyID().
|
protected |
Definition at line 358 of file Group.h.
Referenced by ConvertToLFG(), ConvertToRaid(), Create(), isLFGGroup(), isRaidGroup(), LoadGroupFromDB(), SelectNewPartyOrRaidLeader(), SendOriginalGroupUpdateToPlayer(), SendUpdateToPlayer(), and Update().
|
protected |
Definition at line 371 of file Group.h.
Referenced by Create(), Disband(), GetGUID(), LoadGroupFromDB(), RemoveMember(), and SendUpdateToPlayer().
|
protected |
Definition at line 355 of file Group.h.
Referenced by AddInvite(), GetInvited(), GetInvited(), RemoveAllInvites(), and RemoveInvite().
|
protected |
Definition at line 375 of file Group.h.
Referenced by StartLeaderOfflineTimer(), StopLeaderOfflineTimer(), and Update().
|
protected |
Definition at line 356 of file Group.h.
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeaderGUID(), LoadGroupFromDB(), RemoveMember(), SendOriginalGroupUpdateToPlayer(), and SendUpdateToPlayer().
|
protected |
Definition at line 357 of file Group.h.
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeaderName(), and LoadGroupFromDB().
|
protected |
Definition at line 376 of file Group.h.
Referenced by StartLeaderOfflineTimer(), and Update().
|
protected |
Definition at line 366 of file Group.h.
Referenced by Create(), GetLooterGuid(), LoadGroupFromDB(), and SetLooterGuid().
|
protected |
Definition at line 364 of file Group.h.
Referenced by ConvertToLFG(), Create(), GetLootMethod(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetLootMethod().
|
protected |
Definition at line 365 of file Group.h.
Referenced by Create(), GetLootThreshold(), GroupLoot(), LoadGroupFromDB(), NeedBeforeGreed(), SendUpdateToPlayer(), and SetLootThreshold().
|
protected |
Definition at line 367 of file Group.h.
Referenced by Create(), GetMasterLooterGuid(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetMasterLooterGuid().
|
protected |
Definition at line 373 of file Group.h.
Referenced by AddMember(), GroupLoot(), NeedBeforeGreed(), and ResetMaxEnchantingLevel().
|
protected |
Definition at line 354 of file Group.h.
Referenced by DelinkMember(), LinkMember(), and RemoveMember().
|
protected |
Definition at line 353 of file Group.h.
Referenced by _getMemberCSlot(), _getMemberWSlot(), _initRaidSubGroupsCounter(), _setMembersGroup(), AddMember(), BroadcastGroupUpdate(), ChangeLeader(), ChangeMembersGroup(), ConvertToRaid(), Disband(), GetMemberFlags(), GetMemberGroup(), GetMemberGUID(), IsFull(), IsMember(), LoadMemberFromDB(), OfflineReadyCheck(), RemoveMember(), RemoveUniqueGroupMemberFlag(), ResetMaxEnchantingLevel(), SameSubGroup(), SameSubGroup(), SelectNewPartyOrRaidLeader(), SendUpdate(), SendUpdateToPlayer(), SetGroupMemberFlag(), SetLfgRoles(), and UpdateLooterGuid().
|
protected |
Definition at line 360 of file Group.h.
Referenced by Create(), GetDifficultyID(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetRaidDifficultyID().
|
protected |
|
protected |
Definition at line 370 of file Group.h.
Referenced by _initRaidSubGroupsCounter(), AddMember(), HasFreeSlotSubGroup(), SubGroupCounterDecrease(), SubGroupCounterIncrease(), and ~Group().
|
protected |
Definition at line 363 of file Group.h.
Referenced by AddMember(), Create(), Group(), LoadGroupFromDB(), SendTargetIconList(), and SetTargetIcon().
|
protected |
Definition at line 368 of file Group.h.
Referenced by CountRollVote(), CountTheRoll(), EndRoll(), GetRoll(), GroupLoot(), NeedBeforeGreed(), RemoveMember(), and ~Group().