|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Group.h>
Classes | |
| struct | MemberSlot |
Public Types | |
| typedef UNORDERED_MAP< uint32, InstanceGroupBind > | BoundInstancesMap |
| typedef MemberSlotList::const_iterator | member_citerator |
| typedef std::list< MemberSlot > | MemberSlotList |
Protected Types | |
| typedef std::set< Player * > | InvitesList |
| typedef MemberSlotList::iterator | member_witerator |
| typedef std::vector< Roll * > | Rolls |
Protected Member Functions | |
| member_citerator | _getMemberCSlot (uint64 Guid) const |
| member_witerator | _getMemberWSlot (uint64 Guid) |
| void | _homebindIfInstance (Player *player) |
| void | _initRaidSubGroupsCounter () |
| bool | _setMembersGroup (uint64 guid, uint8 group) |
| void | SubGroupCounterDecrease (uint8 subgroup) |
| void | SubGroupCounterIncrease (uint8 subgroup) |
| void | ToggleGroupMemberFlag (member_witerator slot, GroupMemberFlags flag, bool apply) |
request member stats checken
| typedef 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 43 of file Group.cpp.
References _readyCheckInProgress, DIFFICULTY_10MAN_NORMAL, DIFFICULTY_NORMAL, GROUPTYPE_NORMAL, ITEM_QUALITY_UNCOMMON, m_bfGroup, m_bgGroup, m_counter, m_dbStoreId, m_dungeonDifficulty, m_groupType, m_guid, m_leaderGuid, m_leaderName, m_looterGuid, m_lootMethod, m_lootThreshold, m_maxEnchantingLevel, m_raidDifficulty, m_subGroupsCounts, m_targetIcons, and TARGETICONCOUNT.
Referenced by AddInvite(), Disband(), and ResetInstances().
| Group::~Group | ( | ) |
Definition at line 52 of file Group.cpp.
References ALLIANCE, HORDE, m_bgGroup, m_boundInstances, m_subGroupsCounts, RollId, SF_LOG_DEBUG, and SF_LOG_ERROR.
|
protected |
Definition at line 2779 of file Group.cpp.
References m_memberSlots.
Referenced by GetMemberGroup(), GetMemberRole(), IsAssistant(), IsMember(), SameSubGroup(), SameSubGroup(), and UpdateLooterGuid().
|
protected |
Definition at line 2787 of file Group.cpp.
References m_memberSlots.
Referenced by _setMembersGroup(), ChangeLeader(), ChangeMembersGroup(), ReadyCheckMemberHasResponded(), RemoveMember(), SetGroupMemberFlag(), SetLfgRoles(), and SetMemberRole().
|
protected |
Definition at line 2479 of file Group.cpp.
References WorldLocation::GetMapId(), Player::IsGameMaster(), Player::m_InstanceValid, and sMapStore.
Referenced by Disband(), and RemoveMember().
|
protected |
Definition at line 2767 of file Group.cpp.
References m_memberSlots, m_subGroupsCounts, and MAX_RAID_SUBGROUPS.
Referenced by ConvertToRaid(), Create(), and LoadGroupFromDB().
Definition at line 1986 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_SUBGROUP, CharacterDatabase, GUID_LOPART(), isBFGroup(), isBGGroup(), m_memberSlots, PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and SubGroupCounterIncrease().
| bool Group::AddInvite | ( | Player * | player | ) |
Definition at line 284 of file Group.cpp.
References Player::GetGroup(), Player::GetGroupInvite(), Object::GetGUID(), Player::GetOriginalGroup(), Group(), isBFGroup(), isBGGroup(), m_invitees, RemoveInvite(), Player::SetGroupInvite(), and sScriptMgr.
Referenced by LuaGroup::AddInvite(), AddLeaderInvite(), and WorldSession::HandleGroupInviteOpcode().
| bool Group::AddLeaderInvite | ( | Player * | player | ) |
Definition at line 305 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 353 of file Group.cpp.
References UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), CHAR_INS_GROUP_MEMBER, CharacterDatabase, Group::MemberSlot::flags, GetBoundInstance(), GetDungeonDifficulty(), Player::GetDungeonDifficulty(), GetFirstMember(), Player::GetGroup(), Object::GetGUID(), InstanceSave::GetInstanceId(), WorldObject::GetInstanceId(), Unit::getLevel(), WorldLocation::GetMapId(), WorldObject::GetName(), GetRaidDifficulty(), Player::GetRaidDifficulty(), Player::GetSkillValue(), Group::MemberSlot::group, GROUP_UPDATE_FULL, Group::MemberSlot::guid, GUID_LOPART(), UpdateData::HasData(), Player::HaveAtClient(), INSTANCE_RESET_GROUP_JOIN, isBFGroup(), isBGGroup(), IsLeader(), isRaidGroup(), LEVELREQUIREMENT_HEROIC, m_dbStoreId, Player::m_InstanceValid, m_maxEnchantingLevel, m_memberSlots, m_subGroupsCounts, m_targetIcons, MAX_RAID_SUBGROUPS, MAXGROUPSIZE, Group::MemberSlot::name, GroupReference::next(), Object::RemoveFieldNotifyFlag(), Player::ResetInstances(), Group::MemberSlot::roles, InstanceGroupBind::save, Player::SendDirectMessage(), Player::SendDungeonDifficulty(), Player::SendRaidDifficulty(), SendUpdate(), Player::SetBattlegroundOrBattlefieldRaid(), Player::SetDungeonDifficulty(), Object::SetFieldNotifyFlag(), Player::SetGroup(), Player::SetGroupInvite(), Player::SetGroupUpdateFlag(), Player::SetOriginalGroup(), Player::SetRaidDifficulty(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), SKILL_ENCHANTING, sScriptMgr, SubGroupCounterIncrease(), TARGETICONCOUNT, UF_FLAG_PARTY_MEMBER, Player::UpdateForQuestWorldObjects(), and UpdatePlayerOutOfRange().
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Create(), WorldSession::HandleGroupInviteResponseOpcode(), group_commandscript::HandleGroupJoinCommand(), and lfg::LFGMgr::MakeNewGroup().
| InstanceGroupBind * Group::BindToInstance | ( | InstanceSave * | save, |
| bool | permanent, | ||
| bool | load = false ) |
Definition at line 2426 of file Group.cpp.
References InstanceSave::AddGroup(), CHAR_REP_GROUP_INSTANCE, CharacterDatabase, InstanceSave::GetDifficulty(), GetGUID(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), GUID_LOPART(), isBFGroup(), isBGGroup(), m_boundInstances, m_dbStoreId, InstanceGroupBind::perm, InstanceSave::RemoveGroup(), InstanceGroupBind::save, PreparedStatement::setBool(), PreparedStatement::setUInt32(), and SF_LOG_DEBUG.
Referenced by InstanceMap::AddPlayerToMap(), Player::ConvertInstancesToGroup(), GroupMgr::LoadGroups(), and InstanceMap::PermBindAllPlayers().
| void Group::BroadcastAddonMessagePacket | ( | WorldPacket * | packet, |
| const std::string & | prefix, | ||
| bool | ignorePlayersInBGRaid, | ||
| int | group = -1, | ||
| uint64 | ignore = 0 ) |
Definition at line 1892 of file Group.cpp.
References GetFirstMember(), Player::GetGroup(), Object::GetGUID(), Player::GetSession(), and GroupReference::next().
Referenced by WorldSession::HandleAddonMessagechatOpcode().
| void Group::BroadcastGroupUpdate | ( | void | ) |
Definition at line 2485 of file Group.cpp.
References ObjectAccessor::FindPlayer(), Object::ForceValuesUpdateAtIndex(), WorldObject::GetName(), Object::IsInWorld(), m_memberSlots, SF_LOG_DEBUG, UNIT_FIELD_FACTION_TEMPLATE, and UNIT_FIELD_SHAPESHIFT_FORM.
Referenced by WorldSession::HandleGroupInviteResponseOpcode(), group_commandscript::HandleGroupJoinCommand(), and RemoveMember().
| void Group::BroadcastPacket | ( | WorldPacket * | packet, |
| bool | ignorePlayersInBGRaid, | ||
| int | group = -1, | ||
| uint64 | ignore = 0 ) |
Definition at line 1907 of file Group.cpp.
References GetFirstMember(), Player::GetGroup(), Object::GetGUID(), Player::GetSession(), GroupReference::next(), and WorldSession::SendPacket().
Referenced by ChangeLeader(), WorldSession::HandleGroupSetRolesOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRandomRollOpcode(), OfflineReadyCheck(), SendLooter(), Player::SendNewItem(), LuaGroup::SendPacket(), LuaPlayer::SendPacketToGroup(), SendReadyCheckCompleted(), WorldSession::SendRolePollInform(), and SetTargetIcon().
| void Group::BroadcastReadyCheck | ( | WorldPacket * | packet | ) |
Definition at line 1920 of file Group.cpp.
References GetFirstMember(), Object::GetGUID(), Player::GetSession(), IsAssistant(), IsLeader(), GroupReference::next(), and WorldSession::SendPacket().
| GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue | ( | Battleground const * | bgOrTemplate, |
| BattlegroundQueueTypeId | bgQueueTypeId, | ||
| uint32 | MinPlayerCount, | ||
| uint32 | MaxPlayerCount, | ||
| bool | isRated, | ||
| uint32 | arenaSlot ) |
Definition at line 2158 of file Group.cpp.
References BATTLEGROUND_AA, BATTLEGROUND_RB, BattlegroundMgr::BGQueueTypeId(), Player::CanJoinToBattleground(), 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_IN_NON_RANDOM_BG, ERR_IN_RANDOM_BG, ERR_LFG_CANT_USE_BATTLEGROUND, GetBattlegroundBracketByLevel(), GetFirstMember(), Unit::getLevel(), Battleground::GetMapId(), GetMembersCount(), Reference< TO, FROM >::GetSource(), Player::GetTeam(), Battleground::GetTypeID(), Player::HasFreeBattlegroundQueueId(), Player::InBattlegroundQueue(), Player::InBattlegroundQueueForBattlegroundQueueType(), Battleground::isArena(), isLFGGroup(), Player::isUsingLfg(), PvPDifficultyEntry::mapId, BattlemasterListEntry::maxGroupSize, GroupReference::next(), and sBattlemasterListStore.
Referenced by WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
| void Group::ChangeFlagEveryoneAssistant | ( | bool | apply | ) |
Definition at line 202 of file Group.cpp.
References GROUPTYPE_EVERYONE_IS_ASSISTANT, m_groupType, and SendUpdate().
Referenced by WorldSession::HandleGroupEveryoneIsAssistantOpcode().
| void Group::ChangeLeader | ( | uint64 | guid | ) |
Definition at line 628 of file Group.cpp.
References _getMemberWSlot(), BroadcastPacket(), CHAR_DEL_GROUP_INSTANCE_PERM_BINDING, CHAR_UPD_GROUP_LEADER, CharacterDatabase, Player::ConvertInstancesToGroup(), ObjectAccessor::FindPlayer(), ByteBuffer::FlushBits(), Object::GetGUID(), Object::GetGUIDLow(), WorldObject::GetName(), isBFGroup(), isBGGroup(), m_boundInstances, m_dbStoreId, m_leaderGuid, m_leaderName, m_memberSlots, MEMBER_FLAG_ASSISTANT, PreparedStatement::setUInt32(), sMapMgr, SMSG_GROUP_SET_LEADER, sScriptMgr, ToggleGroupMemberFlag(), ByteBuffer::WriteBits(), and ByteBuffer::WriteString().
Referenced by Battleground::AddOrSetPlayerToCorrectBgGroup(), LuaGroup::ChangeLeader(), group_commandscript::HandleGroupLeaderCommand(), WorldSession::HandleGroupSetLeaderOpcode(), lfg::LFGMgr::MakeNewGroup(), and RemoveMember().
Definition at line 2074 of file Group.cpp.
References ChangeMembersGroup(), and Object::GetGUID().
Definition at line 2021 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_SUBGROUP, CharacterDatabase, ObjectAccessor::FindPlayer(), GetMemberGroup(), GUID_LOPART(), isBFGroup(), isBGGroup(), isRaidGroup(), m_memberSlots, SendUpdate(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), SubGroupCounterDecrease(), and SubGroupCounterIncrease().
Referenced by ChangeMembersGroup(), LuaGroup::ChangeMembersGroup(), and WorldSession::HandleGroupChangeSubGroupOpcode().
| void Group::ConvertToGroup | ( | ) |
Definition at line 253 of file Group.cpp.
References CHAR_UPD_GROUP_TYPE, CharacterDatabase, ObjectAccessor::FindPlayer(), GROUPTYPE_NORMAL, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupType, m_memberSlots, m_subGroupsCounts, SendUpdate(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by debug_commandscript::HandleDebugLfgGroupCommand(), and WorldSession::HandleGroupRaidConvertOpcode().
| void Group::ConvertToLFG | ( | ) |
Definition at line 212 of file Group.cpp.
References CHAR_UPD_GROUP_TYPE, CharacterDatabase, GROUPTYPE_LFG, GROUPTYPE_UNK1, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupType, m_lootMethod, NEED_BEFORE_GREED, SendUpdate(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by LuaGroup::ConvertToLFG(), and lfg::LFGMgr::MakeNewGroup().
| void Group::ConvertToRaid | ( | ) |
Definition at line 229 of file Group.cpp.
References _initRaidSubGroupsCounter(), CHAR_UPD_GROUP_TYPE, CharacterDatabase, ObjectAccessor::FindPlayer(), GROUPTYPE_RAID, isBFGroup(), isBGGroup(), m_dbStoreId, m_groupType, m_memberSlots, SendUpdate(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by LuaGroup::ConvertToRaid(), debug_commandscript::HandleDebugLfgGroupCommand(), WorldSession::HandleGroupRaidConvertOpcode(), and lfg::LFGMgr::MakeNewGroup().
Definition at line 1333 of file Group.cpp.
References CountTheRoll(), Roll::getLoot(), GetRoll(), Loot::items, 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 | ) |
Definition at line 1392 of file Group.cpp.
References ACHIEVEMENT_CRITERIA_TYPE_CAST_SPELL, ACHIEVEMENT_CRITERIA_TYPE_ROLL_GREED_ON_LOOT, ACHIEVEMENT_CRITERIA_TYPE_ROLL_NEED_ON_LOOT, Player::AutoStoreLoot(), Player::CanStoreNewItem(), LootItem::count, ItemTemplate::DisenchantID, EQUIP_ERR_OK, ObjectAccessor::FindPlayer(), LootItem::GetAllowedLooters(), Roll::getLoot(), Player::GetSession(), LootItem::is_blocked, LootItem::is_looted, Reference< TO, FROM >::isValid(), Roll::itemid, Loot::items, Roll::itemSlot, LootTemplates_Disenchant, Loot::NotifyItemRemoved(), NULL_BAG, NULL_SLOT, Roll::playerVote, Loot::quest_items, LootItem::randomPropertyId, ROLL_DISENCHANT, ROLL_GREED, ROLL_INVALID, ROLL_NEED, RollId, Player::SendEquipError(), SendLootAllPassed(), SendLootRoll(), SendLootRollWon(), sObjectMgr, Player::StoreNewItem(), Roll::totalGreed, Roll::totalNeed, Loot::unlootedCount, and Player::UpdateAchievementCriteria().
Referenced by CountRollVote(), and EndRoll().
| bool Group::Create | ( | Player * | leader | ) |
Definition at line 81 of file Group.cpp.
References _initRaidSubGroupsCounter(), AddMember(), ASSERT, CHAR_INS_GROUP, CharacterDatabase, Player::ConvertInstancesToGroup(), DIFFICULTY_10MAN_NORMAL, DIFFICULTY_NORMAL, Player::GetDungeonDifficulty(), Object::GetGUID(), WorldObject::GetName(), Player::GetRaidDifficulty(), GROUP_LOOT, GROUPTYPE_BGRAID, GROUPTYPE_RAID, GUID_LOPART(), HIGHGUID_GROUP, 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_raidDifficulty, m_targetIcons, MAKE_NEW_GUID(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and sGroupMgr.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), WorldSession::HandleGroupInviteResponseOpcode(), and lfg::LFGMgr::MakeNewGroup().
| void Group::DelinkMember | ( | uint64 | guid | ) |
Definition at line 2747 of file Group.cpp.
References 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 700 of file Group.cpp.
References _homebindIfInstance(), CHAR_DEL_GROUP, CHAR_DEL_GROUP_MEMBER_ALL, CHAR_DEL_LFG_DATA, CharacterDatabase, ObjectAccessor::FindPlayerInOrOutOfWorld(), Player::GetGroup(), GetGUID(), Object::GetGUID(), Player::GetOriginalGroup(), Player::GetSession(), Group(), WorldPacket::Initialize(), INSTANCE_RESET_GROUP_DISBAND, isBFGroup(), isBGGroup(), Object::IsInWorld(), isLFGGroup(), isRaidGroup(), m_dbStoreId, m_memberSlots, RemoveAllInvites(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), ResetInstances(), RollId, WorldSession::SendLfgClearStatus(), WorldSession::SendPacket(), SendUpdateToPlayer(), Player::SetGroup(), Player::SetOriginalGroup(), PreparedStatement::setUInt32(), sGroupMgr, sLFGMgr, SMSG_GROUP_DESTROYED, sScriptMgr, and Player::UpdateForQuestWorldObjects().
Referenced by LuaGroup::Disband(), group_commandscript::HandleGroupDisbandCommand(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleLfgLeaveOpcode(), lfg::LFGPlayerScript::OnMapChanged(), RemoveMember(), and Player::UninviteFromGroup().
| void Group::EndRoll | ( | Loot * | loot | ) |
Definition at line 1378 of file Group.cpp.
References CountTheRoll(), and RollId.
Referenced by Creature::Update(), and GameObject::Update().
| InstanceGroupBind * Group::GetBoundInstance | ( | DifficultyID | difficulty, |
| uint32 | mapId ) |
Definition at line 2414 of file Group.cpp.
References GetDownscaledMapDifficultyData(), and m_boundInstances.
| InstanceGroupBind * Group::GetBoundInstance | ( | Map * | aMap | ) |
Definition at line 2400 of file Group.cpp.
References GetBoundInstance(), and Map::GetEntry().
| InstanceGroupBind * Group::GetBoundInstance | ( | MapEntry const * | mapEntry | ) |
Definition at line 2405 of file Group.cpp.
References GetBoundInstance(), GetDifficulty(), MapEntry::IsInstance(), and MapEntry::MapID.
| InstanceGroupBind * Group::GetBoundInstance | ( | Player * | player | ) |
Definition at line 2393 of file Group.cpp.
References GetBoundInstance(), WorldLocation::GetMapId(), and sMapStore.
Referenced by AddMember(), InstanceMap::AddPlayerToMap(), MapManager::CanPlayerEnter(), Player::ConvertInstancesToGroup(), MapInstanced::CreateInstanceForPlayer(), GetBoundInstance(), GetBoundInstance(), GetBoundInstance(), and misc_commandscript::HandleAppearCommand().
| Group::BoundInstancesMap & Group::GetBoundInstances | ( | DifficultyID | difficulty | ) |
Definition at line 2762 of file Group.cpp.
References m_boundInstances.
|
inline |
Definition at line 206 of file Group.h.
References m_dbStoreId.
Referenced by GroupMgr::FreeGroupDbStoreId(), GroupMgr::LoadGroups(), lfg::LFGMgr::MakeNewGroup(), and lfg::LFGGroupScript::OnDisband().
| DifficultyID Group::GetDifficulty | ( | MapEntry const * | mapEntry | ) | const |
Definition at line 2710 of file Group.cpp.
References MapEntry::IsRaid(), m_dungeonDifficulty, and m_raidDifficulty.
Referenced by MapInstanced::CreateInstanceForPlayer(), and GetBoundInstance().
|
inline |
Definition at line 251 of file Group.h.
References m_dungeonDifficulty.
Referenced by AddMember(), and ResetInstances().
|
inline |
Definition at line 225 of file Group.h.
References m_memberMgr.
Referenced by BattlegroundQueue::AddGroup(), AddMember(), BroadcastAddonMessagePacket(), BroadcastPacket(), BroadcastReadyCheck(), CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Loot::FillLoot(), LuaGroup::GetMembers(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), GroupLoot(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), group_commandscript::HandleGroupSummonCommand(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandlePushQuestToParty(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), tele_commandscript::HandleTeleGroupCommand(), InCombatToInstance(), lfg::LFGMgr::JoinLfg(), MasterLoot(), NeedBeforeGreed(), lfg::LFGPlayerScript::OnMapChanged(), WorldSession::SendLfgPartyLockInfo(), SetDungeonDifficulty(), SetRaidDifficulty(), lfg::LFGMgr::TeleportDungeonGroupOut(), lfg::LFGMgr::TeleportPlayer(), PetAI::UpdateAllies(), and UpdatePlayerOutOfRange().
|
inline |
Definition at line 226 of file Group.h.
References m_memberMgr.
| uint64 Group::GetGUID | ( | ) | const |
Definition at line 2573 of file Group.cpp.
References m_guid.
Referenced by Player::_LoadBoundInstances(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), BindToInstance(), ChatHandler::BuildChatPacket(), Player::CanUninviteFromGroup(), Disband(), LuaGroup::GetGUID(), WorldSession::HandleGroupDisbandOpcode(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), lfg::LFGMgr::JoinLfg(), LoadGroupFromDB(), LoadMemberFromDB(), lfg::LFGMgr::MakeNewGroup(), OfflineReadyCheck(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGGroupScript::OnChangeLeader(), lfg::LFGGroupScript::OnDisband(), lfg::LFGGroupScript::OnInviteMember(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnMapChanged(), lfg::LFGGroupScript::OnRemoveMember(), RemoveMember(), lfg::LFGMgr::TeleportDungeonGroupOut(), and lfg::LFGMgr::TeleportPlayer().
| Player * Group::GetInvited | ( | const std::string & | name | ) | const |
Definition at line 343 of file Group.cpp.
References m_invitees.
Definition at line 333 of file Group.cpp.
References m_invitees.
Referenced by WorldSession::HandleGroupUninviteGuidOpcode().
| uint64 Group::GetLeaderGUID | ( | ) | const |
Definition at line 2568 of file Group.cpp.
References m_leaderGuid.
Referenced by InstanceMap::AddPlayerToMap(), LuaGroup::GetLeader(), LuaGroup::GetLeaderGUID(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleGroupInviteResponseOpcode(), group_commandscript::HandleGroupLeaderCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), misc_commandscript::HandleSummonCommand(), IsLeader(), lfg::LFGMgr::MakeNewGroup(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGGroupScript::OnInviteMember(), lfg::LFGGroupScript::OnRemoveMember(), InstanceMap::PermBindAllPlayers(), RemoveMember(), and Player::Satisfy().
| char const * Group::GetLeaderName | ( | ) | const |
Definition at line 2583 of file Group.cpp.
References m_leaderName.
Referenced by ChatLogScript::OnChat().
| uint64 Group::GetLooterGuid | ( | ) | const |
Definition at line 2593 of file Group.cpp.
References m_looterGuid.
Referenced by Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillQuestLoot(), SendLooter(), and UpdateLooterGuid().
| LootMethod Group::GetLootMethod | ( | ) | const |
Definition at line 2588 of file Group.cpp.
References m_lootMethod.
Referenced by Loot::FillNonQuestNonFFAConditionalLoot(), Loot::FillQuestLoot(), Player::isAllowedToLoot(), SendLooter(), and UpdateLooterGuid().
| ItemQualities Group::GetLootThreshold | ( | ) | const |
Definition at line 2598 of file Group.cpp.
References m_lootThreshold.
Referenced by Loot::FillLoot().
| uint32 Group::GetLowGUID | ( | ) | const |
Definition at line 2578 of file Group.cpp.
References GUID_LOPART(), and m_guid.
Referenced by GroupMgr::AddGroup(), GroupLoot(), NeedBeforeGreed(), and GroupMgr::RemoveGroup().
Definition at line 2651 of file Group.cpp.
References _getMemberCSlot(), m_memberSlots, and MAX_RAID_SUBGROUPS.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeMembersGroup(), LuaGroup::GetMemberGroup(), WorldSession::HandleAddonMessagechatOpcode(), and WorldSession::HandleMessagechatOpcode().
| uint64 Group::GetMemberGUID | ( | const std::string & | name | ) |
Definition at line 2613 of file Group.cpp.
References m_memberSlots.
Referenced by LuaGroup::GetMemberGUID().
Definition at line 2837 of file Group.cpp.
References _getMemberCSlot(), and m_memberSlots.
Referenced by WorldSession::HandleGroupSetRolesOpcode(), and lfg::LFGMgr::JoinLfg().
|
inline |
Definition at line 227 of file Group.h.
References m_memberSlots.
Referenced by AchievementMgr< T >::AdditionalRequirementsSatisfied(), CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), LuaGroup::GetMembersCount(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), WorldSession::HandleBattlemasterJoinOpcode(), debug_commandscript::HandleDebugLfgGroupCommand(), WorldSession::HandleGroupRaidConvertOpcode(), IsCreated(), lfg::LFGMgr::JoinLfg(), RemoveMember(), Player::SendInitialPacketsBeforeAddToMap(), SendUpdateToPlayer(), Player::UninviteFromGroup(), and PetAI::UpdateAllies().
|
inline |
Definition at line 224 of file Group.h.
References m_memberSlots.
Referenced by debug_commandscript::HandleDebugLfgGroupCommand(), and group_commandscript::HandleGroupListCommand().
|
inline |
Definition at line 252 of file Group.h.
References m_raidDifficulty.
Referenced by AddMember(), and ResetInstances().
| Group::Rolls::iterator Group::GetRoll | ( | uint64 | Guid | ) |
| void Group::GroupLoot | ( | Loot * | loot, |
| WorldObject * | pLootedObject ) |
Definition at line 985 of file Group.cpp.
References CONFIG_GROUP_XP_DISTANCE, ItemTemplate::DisenchantID, ObjectAccessor::FindPlayer(), GetFirstMember(), Object::GetGUID(), GetLowGUID(), WorldLocation::GetMapId(), Player::GetPassOnGroupLoot(), Player::GetSession(), HIGHGUID_ITEM, WorldObject::IsWithinDistInMap(), Loot::items, Roll::itemSlot, m_lootThreshold, m_maxEnchantingLevel, MAKE_NEW_GUID(), MAX_ROLL_TYPE, GroupReference::next(), Roll::playerVote, ItemTemplate::Quality, Loot::quest_items, ItemTemplate::RequiredDisenchantSkill, ROLL_FLAG_TYPE_DISENCHANT, ROLL_PASS, RollId, Roll::rollVoteMask, SendLootRoll(), SendLootStartRoll(), Roll::setLoot(), sObjectMgr, sWorld, Object::ToCreature(), Object::ToGameObject(), Roll::totalPass, and Roll::totalPlayersRolling.
| bool Group::HasFreeSlotSubGroup | ( | uint8 | subgroup | ) | const |
Definition at line 2645 of file Group.cpp.
References m_subGroupsCounts, and MAXGROUPSIZE.
Referenced by WorldSession::HandleGroupChangeSubGroupOpcode(), and LuaGroup::HasFreeSlotSubGroup().
| bool Group::InCombatToInstance | ( | uint32 | instanceId | ) |
Definition at line 2288 of file Group.cpp.
References CREATURE_FLAG_EXTRA_INSTANCE_BIND, Unit::getAttackers(), GetFirstMember(), WorldObject::GetInstanceId(), WorldObject::GetMap(), Map::IsRaidOrHeroicDungeon(), GroupReference::next(), and TYPEID_UNIT.
| bool Group::IsAssistant | ( | uint64 | guid | ) | const |
Definition at line 2621 of file Group.cpp.
References _getMemberCSlot(), m_memberSlots, and MEMBER_FLAG_ASSISTANT.
Referenced by BroadcastReadyCheck(), Player::CanUninviteFromGroup(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleSetPartyAssignmentOpcode(), and LuaGroup::IsAssistant().
| bool Group::isBFGroup | ( | ) | const |
Definition at line 2558 of file Group.cpp.
References m_bfGroup.
Referenced by _setMembersGroup(), AddInvite(), AddMember(), BindToInstance(), ChangeLeader(), ChangeMembersGroup(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), LuaGroup::isBFGroup(), RemoveMember(), ResetInstances(), SendUpdateToPlayer(), SetDungeonDifficulty(), and SetRaidDifficulty().
| bool Group::isBGGroup | ( | ) | const |
Definition at line 2553 of file Group.cpp.
References m_bgGroup.
Referenced by _setMembersGroup(), AddInvite(), AddMember(), BindToInstance(), ChangeLeader(), ChangeMembersGroup(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), WorldSession::HandleAddonMessagechatOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleMessagechatOpcode(), LuaGroup::isBGGroup(), RemoveMember(), ResetInstances(), SendUpdateToPlayer(), SetDungeonDifficulty(), and SetRaidDifficulty().
| bool Group::IsCreated | ( | ) | const |
Definition at line 2563 of file Group.cpp.
References GetMembersCount().
Referenced by WorldSession::HandleGroupInviteResponseOpcode(), and Player::UninviteFromGroup().
| bool Group::IsFull | ( | ) | const |
Definition at line 2538 of file Group.cpp.
References isRaidGroup(), m_memberSlots, MAXGROUPSIZE, and MAXRAIDSIZE.
Referenced by WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupInviteResponseOpcode(), group_commandscript::HandleGroupJoinCommand(), and LuaGroup::IsFull().
| bool Group::IsLeader | ( | uint64 | guid | ) | const |
Definition at line 2608 of file Group.cpp.
References GetLeaderGUID().
Referenced by AddMember(), BroadcastReadyCheck(), Player::CanUninviteFromGroup(), debug_commandscript::HandleDebugLfgGroupCommand(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupEveryoneIsAssistantOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetPartyAssignmentOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), LuaGroup::IsLeader(), lfg::LFGMgr::JoinLfg(), and Player::ReadyCheckComplete().
| bool Group::isLFGGroup | ( | ) | const |
Definition at line 2543 of file Group.cpp.
References GROUPTYPE_LFG, and m_groupType.
Referenced by InstanceMap::AddPlayerToMap(), CanJoinBattlegroundQueue(), MapManager::CanPlayerEnter(), Player::CanUninviteFromGroup(), Create(), Disband(), WorldSession::HandleGroupDisbandOpcode(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLfgLeaveOpcode(), LuaGroup::isLFGGroup(), lfg::LFGMgr::JoinLfg(), lfg::LFGGroupScript::OnDisband(), lfg::LFGPlayerScript::OnMapChanged(), lfg::LFGGroupScript::OnRemoveMember(), RemoveMember(), lfg::LFGMgr::TeleportDungeonGroupOut(), and lfg::LFGMgr::TeleportPlayer().
| bool Group::IsMember | ( | uint64 | guid | ) | const |
Definition at line 2603 of file Group.cpp.
References _getMemberCSlot(), and m_memberSlots.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ArenaTeam::GetAverageMMR(), WorldSession::HandleGroupUninviteGuidOpcode(), LuaGroup::IsMember(), and lfg::LFGMgr::MakeNewGroup().
| bool Group::isRaidGroup | ( | ) | const |
Definition at line 2548 of file Group.cpp.
References GROUPTYPE_RAID, and m_groupType.
Referenced by AddMember(), MapManager::CanPlayerEnter(), ChangeMembersGroup(), Disband(), debug_commandscript::HandleDebugLfgGroupCommand(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleMessagechatOpcode(), IsFull(), LuaGroup::isRaidGroup(), lfg::LFGMgr::MakeNewGroup(), SetGroupMemberFlag(), and PetAI::UpdateAllies().
| bool Group::isRollLootActive | ( | ) | const |
Definition at line 2728 of file Group.cpp.
References RollId.
Referenced by Player::CanUninviteFromGroup().
| void Group::LinkMember | ( | GroupReference * | pRef | ) |
Definition at line 2742 of file Group.cpp.
References m_memberMgr.
Referenced by GroupReference::targetObjectBuildLink().
| void Group::LoadGroupFromDB | ( | Field * | field | ) |
Definition at line 149 of file Group.cpp.
References _initRaidSubGroupsCounter(), Player::CheckLoadedDungeonDifficultyID(), Player::CheckLoadedRaidDifficultyID(), GetGUID(), Field::GetUInt32(), GROUPTYPE_LFG, GROUPTYPE_RAID, HIGHGUID_GROUP, HIGHGUID_PLAYER, m_dbStoreId, m_dungeonDifficulty, m_groupType, m_guid, m_leaderGuid, m_leaderName, m_looterGuid, m_lootMethod, m_lootThreshold, m_raidDifficulty, m_targetIcons, MAKE_NEW_GUID(), sGroupMgr, sLFGMgr, sObjectMgr, and TARGETICONCOUNT.
Referenced by GroupMgr::LoadGroups().
Definition at line 177 of file Group.cpp.
References CHAR_DEL_GROUP_MEMBER, CharacterDatabase, Group::MemberSlot::flags, GetGUID(), Group::MemberSlot::group, Group::MemberSlot::guid, HIGHGUID_PLAYER, m_memberSlots, MAKE_NEW_GUID(), Group::MemberSlot::name, Group::MemberSlot::roles, PreparedStatement::setUInt32(), sLFGMgr, sObjectMgr, and SubGroupCounterIncrease().
Referenced by GroupMgr::LoadGroups().
| void Group::MasterLoot | ( | Loot * | loot, |
| WorldObject * | pLootedObject ) |
Definition at line 1281 of file Group.cpp.
References CONFIG_GROUP_XP_DISTANCE, GetFirstMember(), Object::GetGUID(), Player::GetSession(), Object::IsInWorld(), WorldObject::IsWithinDistInMap(), GroupReference::next(), WorldSession::SendPacket(), SF_LOG_DEBUG, SMSG_LOOT_MASTER_LIST, sWorld, ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
| void Group::NeedBeforeGreed | ( | Loot * | loot, |
| WorldObject * | pLootedObject ) |
Definition at line 1137 of file Group.cpp.
References Player::CanRollForItemInLFG(), CONFIG_GROUP_XP_DISTANCE, ItemTemplate::DisenchantID, EQUIP_ERR_OK, ObjectAccessor::FindPlayer(), ItemTemplate::Flags2, GetFirstMember(), Object::GetGUID(), GetLowGUID(), WorldLocation::GetMapId(), Player::GetPassOnGroupLoot(), Player::GetSession(), HIGHGUID_ITEM, WorldObject::IsWithinDistInMap(), ITEM_FLAGS_EXTRA_NEED_ROLL_DISABLED, Loot::items, Roll::itemSlot, m_lootThreshold, m_maxEnchantingLevel, MAKE_NEW_GUID(), MAX_ROLL_TYPE, GroupReference::next(), Roll::playerVote, ItemTemplate::Quality, Loot::quest_items, ItemTemplate::RequiredDisenchantSkill, ROLL_FLAG_TYPE_DISENCHANT, ROLL_FLAG_TYPE_NEED, ROLL_PASS, RollId, Roll::rollVoteMask, SendLootRoll(), SendLootStartRollToPlayer(), Roll::setLoot(), sObjectMgr, sWorld, Object::ToCreature(), Object::ToGameObject(), Roll::totalPass, and Roll::totalPlayersRolling.
| void Group::OfflineReadyCheck | ( | ) |
Definition at line 1931 of file Group.cpp.
References BroadcastPacket(), ObjectAccessor::FindPlayer(), ByteBuffer::FlushBits(), GetGUID(), Player::GetSession(), m_memberSlots, ReadyCheckMemberHasResponded(), SMSG_RAID_READY_CHECK_CONFIRM, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
Referenced by WorldSession::HandleRaidReadyCheckOpcode().
|
inline |
Definition at line 258 of file Group.h.
References _readyCheckInProgress.
Referenced by WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), and Player::ReadyCheckComplete().
| bool Group::ReadyCheckAllResponded | ( | ) | const |
Definition at line 2870 of file Group.cpp.
References m_memberSlots.
Referenced by WorldSession::HandleRaidReadyCheckConfirmOpcode().
|
inline |
Definition at line 213 of file Group.h.
References _readyCheckInProgress.
Referenced by WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), and Player::ReadyCheckComplete().
| void Group::ReadyCheckMemberHasResponded | ( | uint64 | guid | ) |
Definition at line 2855 of file Group.cpp.
References _getMemberWSlot(), and m_memberSlots.
Referenced by WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), and OfflineReadyCheck().
| void Group::ReadyCheckResetResponded | ( | ) |
Definition at line 2864 of file Group.cpp.
References m_memberSlots.
Referenced by WorldSession::HandleRaidReadyCheckConfirmOpcode(), and Player::ReadyCheckComplete().
| void Group::RemoveAllInvites | ( | ) |
Definition at line 324 of file Group.cpp.
References m_invitees.
Referenced by Disband(), WorldSession::HandleGroupInviteResponseOpcode(), and Player::UninviteFromGroup().
| void Group::RemoveInvite | ( | Player * | player | ) |
Definition at line 315 of file Group.cpp.
References m_invitees, and Player::SetGroupInvite().
Referenced by AddInvite(), WorldSession::HandleGroupInviteResponseOpcode(), and Player::UninviteFromGroup().
| bool Group::RemoveMember | ( | uint64 | guid, |
| const RemoveMethod & | method = GROUP_REMOVEMETHOD_DEFAULT, | ||
| uint64 | kicker = 0, | ||
| const char * | reason = NULL ) |
Definition at line 501 of file Group.cpp.
References _getMemberWSlot(), _homebindIfInstance(), BroadcastGroupUpdate(), ChangeLeader(), CHAR_DEL_GROUP_MEMBER, CharacterDatabase, CountRollVote(), DelinkMember(), Disband(), ObjectAccessor::FindPlayer(), GetGUID(), GetLeaderGUID(), WorldLocation::GetMapId(), GetMembersCount(), Player::GetOriginalGroup(), Player::GetSession(), Player::GetSkillValue(), GROUP_REMOVEMETHOD_KICK, GROUP_REMOVEMETHOD_KICK_LFG, GUID_LOPART(), WorldPacket::Initialize(), Unit::IsAlive(), isBFGroup(), isBGGroup(), isLFGGroup(), Roll::itemGUID, m_leaderGuid, m_memberMgr, m_memberSlots, MAX_ROLL_TYPE, Roll::playerVote, Player::RemoveFromBattlegroundOrBattlefieldRaid(), ResetMaxEnchantingLevel(), ROLL_DISENCHANT, ROLL_GREED, ROLL_INVALID, ROLL_NEED, ROLL_PASS, RollId, WorldSession::SendPacket(), SendUpdate(), SendUpdateToPlayer(), Player::SetGroup(), Player::SetOriginalGroup(), PreparedStatement::setUInt32(), SKILL_ENCHANTING, sLFGMgr, SMSG_GROUP_UNINVITE, sScriptMgr, SubGroupCounterDecrease(), Roll::totalGreed, Roll::totalNeed, Roll::totalPass, Roll::totalPlayersRolling, and Player::UpdateForQuestWorldObjects().
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), group_commandscript::HandleGroupRemoveCommand(), lfg::LFGMgr::MakeNewGroup(), Player::RemoveFromGroup(), and LuaGroup::RemoveMember().
| void Group::RemoveUniqueGroupMemberFlag | ( | GroupMemberFlags | flag | ) |
Definition at line 2807 of file Group.cpp.
References m_memberSlots.
Referenced by WorldSession::HandleSetPartyAssignmentOpcode(), and SetGroupMemberFlag().
| void Group::ResetInstances | ( | InstanceResetMethod | method, |
| bool | isRaid, | ||
| Player * | SendMsgTo ) |
Definition at line 2301 of file Group.cpp.
References InstanceSave::CanReset(), CHAR_DEL_GROUP_INSTANCE_BY_INSTANCE, CharacterDatabase, CONFIG_INSTANCES_RESET_ANNOUNCE, InstanceSave::DeleteFromDB(), DIFFICULTY_HEROIC, GetDungeonDifficulty(), Player::GetGroup(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), GetRaidDifficulty(), Group(), Map::HavePlayers(), INSTANCE_RESET_ALL, INSTANCE_RESET_CHANGE_DIFFICULTY, INSTANCE_RESET_GROUP_DISBAND, isBFGroup(), isBGGroup(), Map::IsInstance(), MapEntry::IsRaid(), m_boundInstances, MAP_RAID, MapEntry::map_type, GroupReference::next(), InstanceSave::RemoveGroup(), Player::SendResetInstanceFailed(), Player::SendResetInstanceSuccess(), PreparedStatement::setUInt32(), sMapMgr, sMapStore, and sWorld.
Referenced by Disband(), WorldSession::HandleSetDungeonDifficultyOpcode(), and WorldSession::HandleSetRaidDifficultyOpcode().
| void Group::ResetMaxEnchantingLevel | ( | ) |
Definition at line 2501 of file Group.cpp.
References ObjectAccessor::FindPlayer(), Player::GetSkillValue(), m_maxEnchantingLevel, m_memberSlots, and SKILL_ENCHANTING.
Referenced by RemoveMember().
| bool Group::RoleCheckAllResponded | ( | ) | const |
Definition at line 2846 of file Group.cpp.
References m_memberSlots.
Referenced by lfg::LFGMgr::JoinLfg().
Definition at line 2009 of file Group.cpp.
References Player::GetGroup(), and Player::GetSubGroup().
| bool Group::SameSubGroup | ( | uint64 | guid1, |
| MemberSlot const * | slot2 ) const |
Definition at line 2637 of file Group.cpp.
References _getMemberCSlot(), Group::MemberSlot::group, and m_memberSlots.
Definition at line 2629 of file Group.cpp.
References _getMemberCSlot(), m_memberSlots, and SameSubGroup().
Referenced by Player::IsInSameGroupWith(), SameSubGroup(), LuaGroup::SameSubGroup(), and PetAI::UpdateAllies().
| void Group::SendLootAllPassed | ( | Roll const & | roll | ) |
Definition at line 885 of file Group.cpp.
References ObjectAccessor::FindPlayer(), Player::GetSession(), Roll::itemGUID, Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, Roll::playerVote, ROLL_INVALID, WorldSession::SendPacket(), and SMSG_LOOT_ALL_PASSED.
Referenced by CountTheRoll().
Definition at line 906 of file Group.cpp.
References ASSERT, BroadcastPacket(), ByteBuffer::FlushBits(), Object::GetGUID(), GetLooterGuid(), GetLootMethod(), MASTER_LOOT, SMSG_LOOT_LIST, ByteBuffer::WriteBit(), and ByteBuffer::WriteByteSeq().
| void Group::SendLootRoll | ( | uint64 | SourceGuid, |
| uint64 | TargetGuid, | ||
| uint8 | RollNumber, | ||
| RollType | RollType, | ||
| const Roll & | r ) |
Definition at line 838 of file Group.cpp.
References ObjectAccessor::FindPlayer(), Player::GetSession(), Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, Roll::playerVote, ROLL_INVALID, WorldSession::SendPacket(), and SMSG_LOOT_ROLL.
Referenced by CountRollVote(), CountTheRoll(), GroupLoot(), and NeedBeforeGreed().
| void Group::SendLootRollWon | ( | uint64 | SourceGuid, |
| uint64 | TargetGuid, | ||
| uint8 | RollNumber, | ||
| RollType | RollType, | ||
| const Roll & | r ) |
Definition at line 862 of file Group.cpp.
References ObjectAccessor::FindPlayer(), Player::GetSession(), Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, Roll::playerVote, ROLL_INVALID, WorldSession::SendPacket(), and SMSG_LOOT_ROLL_WON.
Referenced by CountTheRoll().
Definition at line 790 of file Group.cpp.
References ObjectAccessor::FindPlayer(), Player::GetSession(), Roll::itemCount, Roll::itemGUID, Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, MAX_ROLL_TYPE, Roll::playerVote, Roll::rollVoteMask, WorldSession::SendPacket(), SMSG_LOOT_START_ROLL, and Roll::totalPlayersRolling.
Referenced by GroupLoot().
| void Group::SendLootStartRollToPlayer | ( | uint32 | countDown, |
| uint32 | mapId, | ||
| Player * | p, | ||
| bool | canNeed, | ||
| Roll const & | r ) |
Definition at line 815 of file Group.cpp.
References Player::GetSession(), Roll::itemCount, Roll::itemGUID, Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, ROLL_FLAG_TYPE_NEED, Roll::rollVoteMask, WorldSession::SendPacket(), SMSG_LOOT_START_ROLL, and Roll::totalPlayersRolling.
Referenced by NeedBeforeGreed().
| void Group::SendReadyCheckCompleted | ( | ) |
Definition at line 1861 of file Group.cpp.
References BroadcastPacket(), m_guid, SMSG_RAID_READY_CHECK_COMPLETED, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::HandleRaidReadyCheckConfirmOpcode(), and Player::ReadyCheckComplete().
| void Group::SendTargetIconList | ( | WorldSession * | session | ) |
Definition at line 1566 of file Group.cpp.
References m_targetIcons, WorldSession::SendPacket(), SMSG_RAID_TARGET_UPDATE_ALL, TARGETICONCOUNT, ByteBuffer::WriteBits(), ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::HandleRaidTargetUpdateOpcode().
| void Group::SendUpdate | ( | ) |
Definition at line 1594 of file Group.cpp.
References m_memberSlots, and SendUpdateToPlayer().
Referenced by AddMember(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeFlagEveryoneAssistant(), ChangeMembersGroup(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), debug_commandscript::HandleDebugLfgGroupCommand(), WorldSession::HandleGroupAssistantLeaderOpcode(), group_commandscript::HandleGroupLeaderCommand(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupSetRolesOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleSetPartyAssignmentOpcode(), lfg::LFGMgr::MakeNewGroup(), RemoveMember(), SetGroupMemberFlag(), SetLfgRoles(), and UpdateLooterGuid().
| void Group::SendUpdateToPlayer | ( | uint64 | playerGUID, |
| MemberSlot * | slot = NULL ) |
Definition at line 1600 of file Group.cpp.
References ByteBuffer::append(), ObjectAccessor::FindPlayer(), ObjectAccessor::FindPlayerInOrOutOfWorld(), ByteBuffer::FlushBits(), Player::GetGroup(), GetMembersCount(), Player::GetSession(), Group::MemberSlot::group, Group::MemberSlot::guid, isBFGroup(), isBGGroup(), m_counter, m_dungeonDifficulty, m_groupType, m_guid, m_leaderGuid, m_looterGuid, m_lootMethod, m_lootThreshold, m_memberSlots, m_raidDifficulty, MEMBER_STATUS_OFFLINE, MEMBER_STATUS_ONLINE, MEMBER_STATUS_PVP, WorldSession::SendPacket(), SMSG_GROUP_LIST, ByteBuffer::WriteBit(), ByteBuffer::WriteBits(), ByteBuffer::WriteByteSeq(), and ByteBuffer::WriteString().
Referenced by Disband(), RemoveMember(), and SendUpdate().
| void Group::SetBattlefieldGroup | ( | Battlefield * | bf | ) |
Definition at line 2664 of file Group.cpp.
References m_bfGroup.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup().
| void Group::SetBattlegroundGroup | ( | Battleground * | bg | ) |
Definition at line 2659 of file Group.cpp.
References m_bgGroup.
Referenced by Battleground::SetBgRaid().
| void Group::SetDungeonDifficulty | ( | DifficultyID | difficulty | ) |
Definition at line 2240 of file Group.cpp.
References CHAR_UPD_GROUP_DIFFICULTY, CharacterDatabase, GetFirstMember(), Player::GetSession(), isBFGroup(), isBGGroup(), m_dbStoreId, m_dungeonDifficulty, GroupReference::next(), Player::SendDungeonDifficulty(), Player::SetDungeonDifficulty(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and lfg::LFGMgr::MakeNewGroup().
| void Group::SetGroupMemberFlag | ( | uint64 | guid, |
| bool | apply, | ||
| GroupMemberFlags | flag ) |
Definition at line 2669 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_FLAG, CharacterDatabase, GUID_LOPART(), isRaidGroup(), m_memberSlots, MEMBER_FLAG_ASSISTANT, MEMBER_FLAG_MAINASSIST, MEMBER_FLAG_MAINTANK, RemoveUniqueGroupMemberFlag(), SendUpdate(), PreparedStatement::setUInt32(), PreparedStatement::setUInt8(), and ToggleGroupMemberFlag().
Referenced by WorldSession::HandleGroupAssistantLeaderOpcode(), and WorldSession::HandleSetPartyAssignmentOpcode().
Definition at line 2528 of file Group.cpp.
References _getMemberWSlot(), m_memberSlots, and SendUpdate().
Referenced by lfg::LFGMgr::MakeNewGroup().
| void Group::SetLooterGuid | ( | uint64 | guid | ) |
Definition at line 2518 of file Group.cpp.
References m_looterGuid.
Referenced by WorldSession::HandleLootMethodOpcode(), and UpdateLooterGuid().
| void Group::SetLootMethod | ( | LootMethod | method | ) |
Definition at line 2513 of file Group.cpp.
References m_lootMethod.
Referenced by WorldSession::HandleLootMethodOpcode().
| void Group::SetLootThreshold | ( | ItemQualities | threshold | ) |
Definition at line 2523 of file Group.cpp.
References m_lootThreshold.
Referenced by WorldSession::HandleLootMethodOpcode().
Definition at line 2822 of file Group.cpp.
References _getMemberWSlot(), CHAR_UPD_GROUP_ROLE, CharacterDatabase, GUID_LOPART(), m_memberSlots, PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by debug_commandscript::HandleDebugLfgGroupCommand(), and WorldSession::HandleGroupSetRolesOpcode().
| void Group::SetRaidDifficulty | ( | DifficultyID | difficulty | ) |
Definition at line 2264 of file Group.cpp.
References CHAR_UPD_GROUP_RAID_DIFFICULTY, CharacterDatabase, GetFirstMember(), Player::GetSession(), isBFGroup(), isBGGroup(), m_dbStoreId, m_raidDifficulty, GroupReference::next(), Player::SendRaidDifficulty(), Player::SetRaidDifficulty(), PreparedStatement::setUInt32(), and PreparedStatement::setUInt8().
Referenced by WorldSession::HandleSetRaidDifficultyOpcode(), and lfg::LFGMgr::MakeNewGroup().
| void Group::SetTargetIcon | ( | uint8 | id, |
| ObjectGuid | whoGuid, | ||
| ObjectGuid | targetGuid, | ||
| uint8 | Index ) |
Definition at line 1525 of file Group.cpp.
References BroadcastPacket(), m_targetIcons, SetTargetIcon(), SMSG_RAID_TARGET_UPDATE_SINGLE, TARGETICONCOUNT, ByteBuffer::WriteGuidBytes(), and ByteBuffer::WriteGuidMask().
Referenced by WorldSession::HandleRaidTargetUpdateOpcode(), and SetTargetIcon().
|
protected |
Definition at line 2801 of file Group.cpp.
References m_subGroupsCounts.
Referenced by ChangeMembersGroup(), and RemoveMember().
|
protected |
Definition at line 2795 of file Group.cpp.
References m_subGroupsCounts.
Referenced by _setMembersGroup(), AddMember(), ChangeMembersGroup(), and LoadMemberFromDB().
|
protected |
Definition at line 2814 of file Group.cpp.
Referenced by ChangeLeader(), and SetGroupMemberFlag().
Definition at line 2459 of file Group.cpp.
References CHAR_DEL_GROUP_INSTANCE_BY_GUID, CharacterDatabase, m_boundInstances, m_dbStoreId, and PreparedStatement::setUInt32().
Referenced by InstanceSaveManager::_ResetSave().
| void Group::UpdateLooterGuid | ( | WorldObject * | pLootedObject, |
| bool | ifneed = false ) |
Definition at line 2090 of file Group.cpp.
References _getMemberCSlot(), CONFIG_GROUP_XP_DISTANCE, ObjectAccessor::FindPlayer(), FREE_FOR_ALL, Object::GetGUID(), GetLooterGuid(), GetLootMethod(), WorldObject::IsWithinDistInMap(), m_memberSlots, MASTER_LOOT, SendUpdate(), SetLooterGuid(), and sWorld.
Referenced by Player::SendLoot().
| void Group::UpdatePlayerOutOfRange | ( | Player * | player | ) |
Definition at line 1875 of file Group.cpp.
References WorldSession::BuildPartyMemberStatsChangedPacket(), GetFirstMember(), Player::GetSession(), WorldObject::GetSightRange(), Object::IsInWorld(), WorldObject::IsWithinDist(), GroupReference::next(), and WorldSession::SendPacket().
Referenced by AddMember().
|
protected |
Definition at line 343 of file Group.h.
Referenced by Group(), ReadyCheck(), and ReadyCheckInProgress().
|
protected |
Definition at line 331 of file Group.h.
Referenced by Group(), isBFGroup(), and SetBattlefieldGroup().
|
protected |
Definition at line 330 of file Group.h.
Referenced by Group(), isBGGroup(), SetBattlegroundGroup(), and ~Group().
|
protected |
Definition at line 337 of file Group.h.
Referenced by BindToInstance(), ChangeLeader(), GetBoundInstance(), GetBoundInstances(), ResetInstances(), UnbindInstance(), and ~Group().
|
protected |
Definition at line 340 of file Group.h.
Referenced by Group(), and SendUpdateToPlayer().
|
protected |
Definition at line 342 of file Group.h.
Referenced by AddMember(), BindToInstance(), ChangeLeader(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), GetDbStoreId(), Group(), LoadGroupFromDB(), SetDungeonDifficulty(), SetRaidDifficulty(), and UnbindInstance().
|
protected |
Definition at line 328 of file Group.h.
Referenced by Create(), GetDifficulty(), GetDungeonDifficulty(), Group(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetDungeonDifficulty().
|
protected |
Definition at line 327 of file Group.h.
Referenced by ChangeFlagEveryoneAssistant(), ConvertToGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Group(), isLFGGroup(), isRaidGroup(), LoadGroupFromDB(), and SendUpdateToPlayer().
|
protected |
Definition at line 339 of file Group.h.
Referenced by Create(), GetGUID(), GetLowGUID(), Group(), LoadGroupFromDB(), SendReadyCheckCompleted(), and SendUpdateToPlayer().
|
protected |
Definition at line 324 of file Group.h.
Referenced by AddInvite(), GetInvited(), GetInvited(), RemoveAllInvites(), and RemoveInvite().
|
protected |
Definition at line 325 of file Group.h.
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeaderGUID(), Group(), LoadGroupFromDB(), RemoveMember(), and SendUpdateToPlayer().
|
protected |
Definition at line 326 of file Group.h.
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeaderName(), Group(), and LoadGroupFromDB().
|
protected |
Definition at line 335 of file Group.h.
Referenced by Create(), GetLooterGuid(), Group(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetLooterGuid().
|
protected |
Definition at line 333 of file Group.h.
Referenced by ConvertToLFG(), Create(), GetLootMethod(), Group(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetLootMethod().
|
protected |
Definition at line 334 of file Group.h.
Referenced by Create(), GetLootThreshold(), Group(), GroupLoot(), LoadGroupFromDB(), NeedBeforeGreed(), SendUpdateToPlayer(), and SetLootThreshold().
|
protected |
Definition at line 341 of file Group.h.
Referenced by AddMember(), Group(), GroupLoot(), NeedBeforeGreed(), and ResetMaxEnchantingLevel().
|
protected |
Definition at line 323 of file Group.h.
Referenced by DelinkMember(), GetFirstMember(), GetFirstMember(), LinkMember(), and RemoveMember().
|
protected |
Definition at line 322 of file Group.h.
Referenced by _getMemberCSlot(), _getMemberWSlot(), _initRaidSubGroupsCounter(), _setMembersGroup(), AddMember(), BroadcastGroupUpdate(), ChangeLeader(), ChangeMembersGroup(), ConvertToGroup(), ConvertToRaid(), Disband(), GetMemberGroup(), GetMemberGUID(), GetMemberRole(), GetMembersCount(), GetMemberSlots(), IsAssistant(), IsFull(), IsMember(), LoadMemberFromDB(), OfflineReadyCheck(), ReadyCheckAllResponded(), ReadyCheckMemberHasResponded(), ReadyCheckResetResponded(), RemoveMember(), RemoveUniqueGroupMemberFlag(), ResetMaxEnchantingLevel(), RoleCheckAllResponded(), SameSubGroup(), SameSubGroup(), SendUpdate(), SendUpdateToPlayer(), SetGroupMemberFlag(), SetLfgRoles(), SetMemberRole(), and UpdateLooterGuid().
|
protected |
Definition at line 329 of file Group.h.
Referenced by Create(), GetDifficulty(), GetRaidDifficulty(), Group(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetRaidDifficulty().
|
protected |
Definition at line 338 of file Group.h.
Referenced by _initRaidSubGroupsCounter(), AddMember(), ConvertToGroup(), Group(), HasFreeSlotSubGroup(), SubGroupCounterDecrease(), SubGroupCounterIncrease(), and ~Group().
|
protected |
Definition at line 332 of file Group.h.
Referenced by AddMember(), Create(), Group(), LoadGroupFromDB(), SendTargetIconList(), and SetTargetIcon().
|
protected |
Definition at line 336 of file Group.h.
Referenced by CountRollVote(), CountTheRoll(), Disband(), EndRoll(), GetRoll(), GroupLoot(), isRollLootActive(), NeedBeforeGreed(), RemoveMember(), and ~Group().