AzerothCore 3.3.5a
OpenSource WoW Emulator
|
#include "Group.h"
Classes | |
struct | MemberSlot |
Public Types | |
typedef std::list< MemberSlot > | MemberSlotList |
typedef MemberSlotList::const_iterator | member_citerator |
Public Attributes | |
DataMap | CustomData |
Protected Types | |
typedef MemberSlotList::iterator | member_witerator |
typedef std::set< Player * > | InvitesList |
typedef std::vector< Roll * > | Rolls |
Protected Member Functions | |
void | _homebindIfInstance (Player *player) |
void | _cancelHomebindIfInstance (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 todo: uninvite people that not accepted invite
|
protected |
typedef MemberSlotList::const_iterator Group::member_citerator |
|
protected |
typedef std::list<MemberSlot> Group::MemberSlotList |
|
protected |
Group::Group | ( | ) |
References sScriptMgr.
Group::~Group | ( | ) |
References Battleground::GetBgRaid(), LOG_DEBUG, LOG_ERROR, m_bgGroup, m_subGroupsCounts, RollId, Battleground::SetBgRaid(), sScriptMgr, TEAM_ALLIANCE, and TEAM_HORDE.
|
protected |
References WorldObject::FindMap(), Player::GetDifficulty(), Object::GetGUID(), Map::GetId(), WorldObject::GetInstanceId(), InstanceSave::GetInstanceId(), Map::IsDungeon(), Map::IsRaid(), Player::m_InstanceValid, InstancePlayerBind::save, and sInstanceSaveMgr.
Referenced by AddMember().
|
protected |
References m_memberSlots.
Referenced by GetMemberGroup(), IsAssistant(), IsMember(), SameSubGroup(), and UpdateLooterGuid().
|
protected |
References m_memberSlots.
Referenced by ChangeLeader(), ChangeMembersGroup(), RemoveMember(), SendUpdateToPlayer(), SetGroupMemberFlag(), and SetLfgRoles().
|
protected |
References WorldObject::FindMap(), WorldLocation::GetMapId(), Player::IsGameMaster(), Player::m_InstanceValid, and sMapStore.
Referenced by Disband(), and RemoveMember().
|
protected |
References m_memberSlots, m_subGroupsCounts, and MAX_RAID_SUBGROUPS.
Referenced by ConvertToRaid(), Create(), and LoadGroupFromDB().
bool Group::AddInvite | ( | Player * | player | ) |
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 | ) |
References AddInvite(), Object::GetGUID(), WorldObject::GetName(), m_leaderGuid, and m_leaderName.
Referenced by WorldSession::HandleGroupInviteOpcode().
|
inline |
References GROUP_LFG_FLAG_APPLY_RANDOM_BUFF, and m_lfgGroupFlags.
Referenced by lfg::LFGMgr::MakeNewGroup().
|
inline |
References GROUP_LFG_FLAG_IS_HEROIC, and m_lfgGroupFlags.
Referenced by lfg::LFGMgr::MakeNewGroup().
|
inline |
References GROUP_LFG_FLAG_IS_RANDOM_INSTANCE, and m_lfgGroupFlags.
Referenced by lfg::LFGMgr::MakeNewGroup().
bool Group::AddMember | ( | Player * | player | ) |
References _cancelHomebindIfInstance(), UpdateData::BuildPacket(), Object::BuildValuesUpdateBlockForPlayer(), CHAR_REP_GROUP_MEMBER, CharacterDatabase, Group::MemberSlot::flags, ObjectGuid::GetCounter(), Player::GetDungeonDifficulty(), GetDungeonDifficulty(), GetFirstMember(), Player::GetGroup(), GetGUID(), Object::GetGUID(), WorldObject::GetName(), Player::GetRaidDifficulty(), GetRaidDifficulty(), Player::GetSkillValue(), Group::MemberSlot::group, GROUP_UPDATE_FULL, Group::MemberSlot::guid, UpdateData::HasData(), Player::HaveAtClient(), INSTANCE_RESET_GROUP_JOIN, isBFGroup(), isBGGroup(), IsLeader(), isLFGGroup(), isRaidGroup(), m_maxEnchantingLevel, m_memberSlots, m_subGroupsCounts, m_targetIcons, MAX_RAID_SUBGROUPS, MAXGROUPSIZE, Group::MemberSlot::name, GroupReference::next(), Object::RemoveFieldNotifyFlag(), Player::ResetInstances(), Group::MemberSlot::roles, sCharacterCache, Player::SendDirectMessage(), Player::SendDungeonDifficulty(), Player::SendRaidDifficulty(), SendUpdate(), Player::SetBattlegroundOrBattlefieldRaid(), PreparedStatementBase::SetData(), Player::SetDungeonDifficulty(), Object::SetFieldNotifyFlag(), Player::SetGroup(), Player::SetGroupInvite(), Player::SetGroupUpdateFlag(), Player::SetOriginalGroup(), Player::SetRaidDifficulty(), SKILL_ENCHANTING, sScriptMgr, SubGroupCounterIncrease(), TARGETICONCOUNT, UF_FLAG_PARTY_MEMBER, Player::UpdateForQuestWorldObjects(), and UpdatePlayerOutOfRange().
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Arena::AddPlayer(), Create(), group_commandscript::HandleGroupJoinCommand(), and lfg::LFGMgr::MakeNewGroup().
void Group::BroadcastGroupUpdate | ( | void | ) |
References ObjectAccessor::FindPlayer(), Object::ForceValuesUpdateAtIndex(), WorldObject::GetName(), LOG_DEBUG, m_memberSlots, 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 | ignore = ObjectGuid::Empty |
||
) |
References GetFirstMember(), Player::GetGroup(), Object::GetGUID(), Player::GetSession(), GroupReference::next(), and WorldSession::SendPacket().
Referenced by ChangeLeader(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleMinimapPingOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), Unit::Kill(), SendLooter(), Player::SendNewItem(), and SetTargetIcon().
void Group::BroadcastReadyCheck | ( | WorldPacket const * | packet | ) |
References GetFirstMember(), Object::GetGUID(), Player::GetSession(), IsAssistant(), IsLeader(), GroupReference::next(), and WorldSession::SendPacket().
Referenced by WorldSession::HandleRaidReadyCheckOpcode(), and OfflineReadyCheck().
GroupJoinBattlegroundResult Group::CanJoinBattlegroundQueue | ( | Battleground const * | bgTemplate, |
BattlegroundQueueTypeId | bgQueueTypeId, | ||
uint32 | MinPlayerCount, | ||
uint32 | MaxPlayerCount, | ||
bool | isRated, | ||
uint32 | arenaSlot | ||
) |
References BATTLEGROUND_AA, BATTLEGROUND_RB, BattlegroundMgr::BGQueueTypeId(), Player::CanJoinToBattleground(), CLASS_CONTEXT_TELEPORT, CLASS_DEATH_KNIGHT, CONFIG_ALLOW_JOIN_BG_AND_LFG, CONFIG_ALLOW_TWO_SIDE_INTERACTION_GROUP, 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, ObjectAccessor::FindConnectedPlayer(), Player::GetArenaTeamId(), Player::GetBattleground(), GetBattlegroundBracketByLevel(), Player::GetBGAccessByLevel(), Battleground::GetBgTypeID(), GetFirstMember(), Object::GetGUID(), Unit::GetLevel(), Battleground::GetMapId(), WorldLocation::GetMapId(), ArenaTeam::GetMembers(), GetMembersCount(), Battleground::GetMinPlayersPerTeam(), BattlegroundQueue::GetPlayerGroupInfoData(), Reference< TO, FROM >::GetSource(), Player::GetTeamId(), Player::HasFreeBattlegroundQueueId(), Player::HasSpell(), Player::InBattleground(), Player::InBattlegroundQueue(), Player::InBattlegroundQueueForBattlegroundQueueType(), Battleground::isArena(), Player::IsClass(), Player::IsGameMaster(), isLFGGroup(), IsMember(), Battleground::isRated(), GroupQueueInfo::IsRated, lfg::LFG_STATE_NONE, lfg::LFG_STATE_QUEUED, PvPDifficultyEntry::mapId, BattlemasterListEntry::maxGroupSize, GroupReference::next(), sArenaTeamMgr, sBattlegroundMgr, sBattlemasterListStore, sLFGMgr, sScriptMgr, and sWorld.
Referenced by WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
void Group::ChangeLeader | ( | ObjectGuid | guid | ) |
References _getMemberWSlot(), BroadcastPacket(), CHAR_UPD_GROUP_LEADER, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), GetGUID(), Object::GetGUID(), WorldObject::GetName(), isBFGroup(), isBGGroup(), m_leaderGuid, m_leaderName, m_memberSlots, MEMBER_FLAG_ASSISTANT, PLAYER_FLAGS_GROUP_LEADER, PreparedStatementBase::SetData(), Player::SetPlayerFlag(), sInstanceSaveMgr, SMSG_GROUP_SET_LEADER, sScriptMgr, and ToggleGroupMemberFlag().
Referenced by Battleground::AddOrSetPlayerToCorrectBgGroup(), group_commandscript::HandleGroupLeaderCommand(), WorldSession::HandleGroupSetLeaderOpcode(), and RemoveMember().
void Group::ChangeMembersGroup | ( | ObjectGuid | guid, |
uint8 | group | ||
) |
References _getMemberWSlot(), CHAR_UPD_GROUP_MEMBER_SUBGROUP, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), GetMemberGroup(), isBFGroup(), isBGGroup(), isRaidGroup(), m_memberSlots, SendUpdate(), PreparedStatementBase::SetData(), SubGroupCounterDecrease(), and SubGroupCounterIncrease().
Referenced by WorldSession::HandleGroupChangeSubGroupOpcode(), and WorldSession::HandleGroupSwapSubGroupOpcode().
bool Group::CheckLevelForRaid | ( | ) |
References ObjectAccessor::FindPlayer(), m_memberSlots, and sConfigMgr.
Referenced by WorldSession::HandleGroupRaidConvertOpcode().
void Group::ConvertToLFG | ( | bool | restricted = true | ) |
References CHAR_UPD_GROUP_TYPE, CharacterDatabase, GetGUID(), GROUPTYPE_LFG, GROUPTYPE_LFG_RESTRICTED, isBFGroup(), isBGGroup(), m_groupType, m_lootMethod, NEED_BEFORE_GREED, SendUpdate(), and PreparedStatementBase::SetData().
Referenced by lfg::LFGMgr::MakeNewGroup().
void Group::ConvertToRaid | ( | ) |
References _initRaidSubGroupsCounter(), CHAR_UPD_GROUP_TYPE, CharacterDatabase, ObjectAccessor::FindPlayer(), GetGUID(), GetLeaderGUID(), GROUPTYPE_RAID, isBFGroup(), isBGGroup(), lfg::LFG_STATE_RAIDBROWSER, m_groupType, m_memberSlots, SendUpdate(), PreparedStatementBase::SetData(), and sLFGMgr.
Referenced by WorldSession::HandleGroupRaidConvertOpcode().
bool Group::CountRollVote | ( | ObjectGuid | playerGUID, |
ObjectGuid | Guid, | ||
uint8 | Choise | ||
) |
References CountTheRoll(), DISENCHANT, ObjectGuid::Empty, Roll::getLoot(), GetRoll(), GREED, Loot::items, NEED, 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 | ||
) |
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, DISENCHANT, ItemTemplate::DisenchantID, ObjectGuid::Empty, EQUIP_ERR_OK, Loot::FillLoot(), WorldObject::FindMap(), ObjectAccessor::FindPlayer(), GAMEOBJECT_TYPE_CHEST, LootItem::GetAllowedLooters(), Item::GetCount(), Object::GetGUID(), Roll::getLoot(), Loot::GetMaxSlotInLootFor(), GO_JUST_DEACTIVATED, GREED, LootItem::is_blocked, LootItem::is_looted, Loot::isLooted(), 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, sScriptMgr, Player::StoreNewItem(), Roll::totalGreed, Roll::totalNeed, GameObjectTemplate::type, Loot::unlootedCount, Player::UpdateAchievementCriteria(), Player::UpdateLootAchievements(), and urand().
Referenced by CountRollVote(), and EndRoll().
bool Group::Create | ( | Player * | leader | ) |
References _initRaidSubGroupsCounter(), AddMember(), ASSERT, CHAR_INS_GROUP, CharacterDatabase, ObjectGuid::Clear(), DUNGEON_DIFFICULTY_NORMAL, ObjectGuid::GetCounter(), Player::GetDungeonDifficulty(), Object::GetGUID(), WorldObject::GetName(), Player::GetRaidDifficulty(), GROUP_LOOT, GROUPTYPE_BGRAID, GROUPTYPE_RAID, isBFGroup(), isBGGroup(), isLFGGroup(), ITEM_QUALITY_UNCOMMON, m_dungeonDifficulty, m_groupType, m_guid, m_leaderGuid, m_leaderName, m_looterGuid, m_lootMethod, m_lootThreshold, m_masterLooterGuid, m_raidDifficulty, m_targetIcons, PLAYER_FLAGS_GROUP_LEADER, RAID_DIFFICULTY_10MAN_NORMAL, PreparedStatementBase::SetData(), Player::SetPlayerFlag(), sGroupMgr, and sScriptMgr.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), Arena::AddPlayer(), and lfg::LFGMgr::MakeNewGroup().
void Group::Disband | ( | bool | hideDestroy = false | ) |
References _homebindIfInstance(), CHAR_DEL_GROUP, CHAR_DEL_GROUP_MEMBER_ALL, CHAR_DEL_LFG_DATA, CharacterDatabase, ObjectAccessor::FindConnectedPlayer(), Player::GetGroup(), GetGUID(), WorldObject::GetInstanceId(), Player::GetOriginalGroup(), Player::GetSession(), WorldPacket::Initialize(), INSTANCE_RESET_GROUP_LEAVE, isBFGroup(), isBGGroup(), isRaidGroup(), m_counter, m_guid, m_memberSlots, RemoveAllInvites(), Player::RemoveFromBattlegroundOrBattlefieldRaid(), Player::ResetInstances(), RollId, sCharacterCache, WorldSession::SendPacket(), PreparedStatementBase::SetData(), Player::SetGroup(), Player::SetOriginalGroup(), sGroupMgr, sInstanceSaveMgr, SMSG_GROUP_DESTROYED, SMSG_GROUP_LIST, sScriptMgr, and Player::UpdateForQuestWorldObjects().
Referenced by Arena::AddPlayer(), group_commandscript::HandleGroupDisbandCommand(), WorldSession::HandleGroupDisbandOpcode(), RemoveMember(), and Player::UninviteFromGroup().
void Group::DoForAllMembers | ( | std::function< void(Player *)> const & | worker | ) |
References GetFirstMember(), and GroupReference::next().
Referenced by BattlegroundQueue::AddGroup(), WorldSession::HandleBattlemasterJoinArena(), and WorldSession::HandleBattlemasterJoinOpcode().
References CountTheRoll(), and RollId.
Referenced by GameObject::Update(), and Creature::Update().
Difficulty Group::GetDifficulty | ( | bool | isRaid | ) | const |
References m_dungeonDifficulty, and m_raidDifficulty.
Referenced by MapInstanced::CreateInstanceForPlayer().
|
inline |
References _difficultyChangePreventionType.
Referenced by WorldSession::HandleSetRaidDifficultyOpcode().
uint32 Group::GetDifficultyChangePreventionTime | ( | ) | const |
References _difficultyChangePreventionTime, and GameTime::GetGameTime().
Referenced by WorldSession::HandleSetRaidDifficultyOpcode().
Difficulty Group::GetDungeonDifficulty | ( | ) | const |
References m_dungeonDifficulty.
Referenced by AddMember().
|
inline |
References GroupRefMgr::getFirst(), and m_memberMgr.
Referenced by KillRewarder::_InitGroupData(), KillRewarder::_RewardGroup(), AddMember(), BroadcastPacket(), BroadcastReadyCheck(), CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), DoForAllMembers(), Loot::FillLoot(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Unit::GetPartyMembers(), GroupLoot(), Unit::HandleAuraRaidProcFromChargeWithValue(), WorldSession::HandleBattlemasterJoinArena(), misc_commandscript::HandleGroupSummonCommand(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLfgPartyLockInfoRequestOpcode(), WorldSession::HandleLootMoneyOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), tele_commandscript::HandleTeleGroupCommand(), lfg::LFGMgr::JoinLfg(), lfg::LFGMgr::MakeNewGroup(), MasterLoot(), NeedBeforeGreed(), lfg::LFGPlayerScript::OnMapChanged(), SetDungeonDifficulty(), SetRaidDifficulty(), PetAI::UpdateAllies(), and UpdatePlayerOutOfRange().
|
inline |
References GroupRefMgr::getFirst(), and m_memberMgr.
GroupType Group::GetGroupType | ( | ) | const |
References m_groupType.
ObjectGuid Group::GetGUID | ( | ) | const |
References m_guid.
Referenced by GroupMgr::AddGroup(), AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), npc_coren_direbrew::CanBeSeen(), go_loosely_turned_soil::go_loosely_turned_soilAI::CanBeSeen(), Player::CanUninviteFromGroup(), ChangeLeader(), ConvertToLFG(), ConvertToRaid(), ArenaTeam::DelMember(), Disband(), GroupLoot(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLfgLeaveOpcode(), WorldSession::HandleLfgSetRolesOpcode(), lfg::LFGMgr::JoinLfg(), boss_headless_horseman::JustDied(), LoadGroupFromDB(), GroupMgr::LoadGroups(), LoadMemberFromDB(), lfg::LFGMgr::MakeNewGroup(), NeedBeforeGreed(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGGroupScript::OnChangeLeader(), lfg::LFGGroupScript::OnDisband(), lfg::LFGGroupScript::OnInviteMember(), lfg::LFGPlayerScript::OnLogin(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGGroupScript::OnRemoveMember(), MapMgr::PlayerCannotEnter(), GroupMgr::RemoveGroup(), RemoveMember(), SetDungeonDifficulty(), GameObject::SetLootRecipient(), SetRaidDifficulty(), lfg::LFGMgr::TeleportPlayer(), and lfg::LFGMgr::UpdateRaidBrowser().
Player * Group::GetInvited | ( | const std::string & | name | ) | const |
References m_invitees.
Player * Group::GetInvited | ( | ObjectGuid | guid | ) | const |
References m_invitees.
Referenced by WorldSession::HandleGroupUninviteGuidOpcode(), and WorldSession::HandleGroupUninviteOpcode().
|
inline |
Player * Group::GetLeader | ( | ) |
References ObjectAccessor::FindConnectedPlayer(), and m_leaderGuid.
ObjectGuid Group::GetLeaderGUID | ( | ) | const |
References m_leaderGuid.
Referenced by ConvertToRaid(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), WorldSession::HandleGroupDeclineOpcode(), WorldSession::HandleGroupDisbandOpcode(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupLeaderCommand(), misc_commandscript::HandleGroupSummonCommand(), WorldSession::HandleLfgLeaveOpcode(), misc_commandscript::HandleSummonCommand(), lfg::LFGMgr::InitializeLockedDungeons(), IsLeader(), lfg::LFGMgr::JoinLfg(), lfg::LFGMgr::MakeNewGroup(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGGroupScript::OnDisband(), lfg::LFGGroupScript::OnInviteMember(), RemoveMember(), and Player::Satisfy().
const char * Group::GetLeaderName | ( | ) | const |
References m_leaderName.
Referenced by ChatLogScript::OnChat(), and Player::Satisfy().
ObjectGuid Group::GetLooterGuid | ( | ) | const |
References m_looterGuid.
Referenced by Unit::Kill(), and UpdateLooterGuid().
LootMethod Group::GetLootMethod | ( | ) | const |
References m_lootMethod.
Referenced by WorldSession::HandleLootMasterGiveOpcode(), Player::isAllowedToLoot(), Unit::Kill(), Player::SendLoot(), SendLooter(), and UpdateLooterGuid().
ItemQualities Group::GetLootThreshold | ( | ) | const |
References m_lootThreshold.
Referenced by Loot::FillLoot().
ObjectGuid Group::GetMasterLooterGuid | ( | ) | const |
References m_masterLooterGuid.
Referenced by LootItem::AllowedForPlayer(), WorldSession::HandleLootMasterGiveOpcode(), Player::SendLoot(), and SendLooter().
uint8 Group::GetMemberGroup | ( | ObjectGuid | guid | ) | const |
References _getMemberCSlot(), m_memberSlots, and MAX_RAID_SUBGROUPS.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeMembersGroup(), WorldSession::HandleGroupSwapSubGroupOpcode(), WorldSession::HandleMessagechatOpcode(), and Unit::Kill().
ObjectGuid Group::GetMemberGUID | ( | const std::string & | name | ) |
References ObjectGuid::Empty, and m_memberSlots.
Referenced by WorldSession::HandleGroupSwapSubGroupOpcode(), and WorldSession::HandleGroupUninviteOpcode().
|
inline |
References m_memberSlots.
Referenced by CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), WorldSession::HandleBattlemasterJoinOpcode(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleGroupRaidConvertOpcode(), misc_commandscript::HandleSkirmishCommand(), IsCreated(), lfg::LFGMgr::JoinLfg(), lfg::LFGMgr::MakeNewGroup(), RemoveMember(), SendUpdateToPlayer(), Player::UninviteFromGroup(), and PetAI::UpdateAllies().
|
inline |
References m_memberSlots.
Referenced by Arena::AddPlayer(), group_commandscript::HandleGroupListCommand(), and lfg::LFGMgr::UpdateRaidBrowser().
Difficulty Group::GetRaidDifficulty | ( | ) | const |
Group::Rolls::iterator Group::GetRoll | ( | ObjectGuid | Guid | ) |
References RollId.
Referenced by CountRollVote().
void Group::GroupLoot | ( | Loot * | loot, |
WorldObject * | pLootedObject | ||
) |
References CanRollOnItem(), ItemTemplate::DisenchantID, ObjectAccessor::FindPlayer(), ObjectGuid::GetCounter(), GetFirstMember(), GetGUID(), Object::GetGUID(), WorldLocation::GetMapId(), Player::GetPassOnGroupLoot(), Player::GetSession(), Player::IsAtLootRewardDistance(), Loot::items, Roll::itemSlot, m_lootThreshold, m_maxEnchantingLevel, GroupReference::next(), NOT_EMITED_YET, PASS, Roll::playerVote, ItemTemplate::Quality, Loot::quest_items, ItemTemplate::RequiredDisenchantSkill, ROLL_FLAG_TYPE_DISENCHANT, ROLL_PASS, RollId, Roll::rollVoteMask, SendLootRoll(), SendLootStartRoll(), Roll::setLoot(), sObjectMgr, Object::ToCreature(), Object::ToGameObject(), Roll::totalPass, and Roll::totalPlayersRolling.
Referenced by Player::SendLoot().
bool Group::HasFreeSlotSubGroup | ( | uint8 | subgroup | ) | const |
References m_subGroupsCounts, and MAXGROUPSIZE.
Referenced by WorldSession::HandleGroupChangeSubGroupOpcode().
uint16 Group::InInstance | ( | ) |
bool Group::IsAssistant | ( | ObjectGuid | guid | ) | const |
References _getMemberCSlot(), m_memberSlots, and MEMBER_FLAG_ASSISTANT.
Referenced by BroadcastReadyCheck(), Player::CanUninviteFromGroup(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupSwapSubGroupOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandlePartyAssignmentOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), and WorldSession::HandleRaidTargetUpdateOpcode().
bool Group::isBFGroup | ( | ) | const |
References m_bfGroup.
Referenced by AddInvite(), AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeLeader(), ChangeMembersGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), misc_commandscript::HandleSkirmishCommand(), lfg::LFGMgr::JoinLfg(), LoadMemberFromDB(), RemoveMember(), ResetInstances(), SendUpdateToPlayer(), SetDungeonDifficulty(), and SetRaidDifficulty().
bool Group::isBGGroup | ( | ) | const |
References m_bgGroup.
Referenced by AddInvite(), AddMember(), Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeLeader(), ChangeMembersGroup(), ConvertToLFG(), ConvertToRaid(), Create(), Disband(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleMessagechatOpcode(), misc_commandscript::HandleSkirmishCommand(), lfg::LFGMgr::JoinLfg(), LoadMemberFromDB(), RemoveMember(), ResetInstances(), SendUpdateToPlayer(), SetDungeonDifficulty(), and SetRaidDifficulty().
bool Group::IsCreated | ( | ) | const |
References GetMembersCount().
Referenced by Player::UninviteFromGroup().
bool Group::IsFull | ( | ) | const |
References isRaidGroup(), m_memberSlots, MAXGROUPSIZE, and MAXRAIDSIZE.
Referenced by WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupJoinCommand(), and lfg::LFGMgr::MakeNewGroup().
bool Group::IsLeader | ( | ObjectGuid | guid | ) | const |
References GetLeaderGUID().
Referenced by AddMember(), BroadcastReadyCheck(), Player::CanUninviteFromGroup(), WorldSession::HandleGroupAssistantLeaderOpcode(), WorldSession::HandleGroupChangeSubGroupOpcode(), WorldSession::HandleGroupInviteOpcode(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupSwapSubGroupOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandlePartyAssignmentOpcode(), WorldSession::HandleRaidReadyCheckFinishedOpcode(), WorldSession::HandleRaidReadyCheckOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), lfg::LFGMgr::MakeNewGroup(), and npc_icc_buff_switcher::OnGossipSelect().
bool Group::isLFGGroup | ( | bool | restricted = false | ) | const |
References GROUPTYPE_LFG, GROUPTYPE_LFG_RESTRICTED, and m_groupType.
Referenced by AddMember(), InstanceMap::AddPlayerToMap(), CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Create(), WorldSession::HandleGroupRaidConvertOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleInstanceLockResponse(), lfg_commandscript::HandleLfgGroupInfoCommand(), WorldSession::HandleLootMethodOpcode(), misc_commandscript::HandleSkirmishCommand(), IsLfgHeroic(), IsLfgRandomInstance(), IsLfgWithBuff(), lfg::LFGMgr::JoinLfg(), WorldSession::LogoutPlayer(), lfg::LFGGroupScript::OnAddMember(), lfg::LFGPlayerScript::OnLogout(), lfg::LFGGroupScript::OnRemoveMember(), MapMgr::PlayerCannotEnter(), RemoveMember(), ResetInstances(), SendUpdateToPlayer(), and lfg::LFGMgr::TeleportPlayer().
|
inline |
References GROUP_LFG_FLAG_IS_HEROIC, isLFGGroup(), and m_lfgGroupFlags.
|
inline |
References GROUP_LFG_FLAG_IS_RANDOM_INSTANCE, isLFGGroup(), and m_lfgGroupFlags.
Referenced by InstanceMap::AddPlayerToMap(), WorldSession::HandleInstanceLockResponse(), and MapMgr::PlayerCannotEnter().
|
inline |
References GROUP_LFG_FLAG_APPLY_RANDOM_BUFF, isLFGGroup(), and m_lfgGroupFlags.
Referenced by lfg::LFGMgr::MakeNewGroup(), and lfg::LFGPlayerScript::OnMapChanged().
bool Group::IsMember | ( | ObjectGuid | guid | ) | const |
References _getMemberCSlot(), and m_memberSlots.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup(), Battleground::AddOrSetPlayerToCorrectBgGroup(), CanJoinBattlegroundQueue(), ArenaTeam::GetAverageMMR(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleLootMethodOpcode(), Acore::MostHPMissingGroupInRange::operator()(), and GameObject::Use().
bool Group::isRaidGroup | ( | ) | const |
References GROUPTYPE_RAID, and m_groupType.
Referenced by KillRewarder::_RewardGroup(), AddMember(), ChangeMembersGroup(), Disband(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleGroupSwapSubGroupOpcode(), WorldSession::HandleMessagechatOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), misc_commandscript::HandleSkirmishCommand(), IsFull(), Unit::IsInPartyWith(), WorldSession::LogoutPlayer(), npc_icc_buff_switcher::OnGossipSelect(), MapMgr::PlayerCannotEnter(), SetGroupMemberFlag(), and PetAI::UpdateAllies().
bool Group::isRollLootActive | ( | ) | const |
References RollId.
Referenced by Player::CanUninviteFromGroup().
void Group::LinkMember | ( | GroupReference * | pRef | ) |
References LinkedListHead::insertFirst(), and m_memberMgr.
Referenced by GroupReference::targetObjectBuildLink().
bool Group::LoadGroupFromDB | ( | Field * | field | ) |
References _initRaidSubGroupsCounter(), CHAR_DEL_GROUP, CHAR_DEL_GROUP_MEMBER_ALL, CHAR_DEL_LFG_DATA, CharacterDatabase, DUNGEON_DIFFICULTY_NORMAL, Field::Get(), GetGUID(), GROUPTYPE_LFG, GROUPTYPE_RAID, m_dungeonDifficulty, m_groupType, m_guid, m_leaderGuid, m_leaderName, m_looterGuid, m_lootMethod, m_lootThreshold, m_masterLooterGuid, m_raidDifficulty, m_targetIcons, MAX_DUNGEON_DIFFICULTY, MAX_RAID_DIFFICULTY, RAID_DIFFICULTY_10MAN_NORMAL, sCharacterCache, PreparedStatementBase::SetData(), sLFGMgr, and TARGETICONCOUNT.
Referenced by GroupMgr::LoadGroups().
void Group::LoadMemberFromDB | ( | ObjectGuid::LowType | guidLow, |
uint8 | memberFlags, | ||
uint8 | subgroup, | ||
uint8 | roles | ||
) |
References CHAR_DEL_GROUP_MEMBER, CharacterDatabase, Group::MemberSlot::flags, GetGUID(), Group::MemberSlot::group, Group::MemberSlot::guid, isBFGroup(), isBGGroup(), m_memberSlots, Group::MemberSlot::name, Group::MemberSlot::roles, sCharacterCache, PreparedStatementBase::SetData(), sLFGMgr, and SubGroupCounterIncrease().
Referenced by GroupMgr::LoadGroups().
void Group::MasterLoot | ( | Loot * | loot, |
WorldObject * | pLootedObject | ||
) |
References GetFirstMember(), Player::IsAtLootRewardDistance(), Object::IsInWorld(), Loot::items, LOG_DEBUG, GroupReference::next(), Loot::quest_items, and SMSG_LOOT_MASTER_LIST.
Referenced by Player::SendLoot().
void Group::NeedBeforeGreed | ( | Loot * | loot, |
WorldObject * | pLootedObject | ||
) |
References Player::CanRollForItemInLFG(), CanRollOnItem(), ItemTemplate::DisenchantID, EQUIP_ERR_OK, ObjectAccessor::FindPlayer(), ObjectGuid::GetCounter(), GetFirstMember(), GetGUID(), Object::GetGUID(), WorldLocation::GetMapId(), Player::GetPassOnGroupLoot(), Player::GetSession(), ItemTemplate::HasFlag2(), Player::IsAtGroupRewardDistance(), ITEM_FLAG2_CAN_ONLY_ROLL_GREED, Loot::items, Roll::itemSlot, m_lootThreshold, m_maxEnchantingLevel, GroupReference::next(), NOT_EMITED_YET, PASS, Roll::playerVote, ItemTemplate::Quality, Loot::quest_items, ItemTemplate::RequiredDisenchantSkill, ROLL_FLAG_TYPE_DISENCHANT, ROLL_PASS, RollId, Roll::rollVoteMask, SendLootRoll(), SendLootStartRollToPlayer(), Roll::setLoot(), sObjectMgr, Object::ToCreature(), Object::ToGameObject(), Roll::totalPass, and Roll::totalPlayersRolling.
Referenced by Player::SendLoot().
void Group::OfflineReadyCheck | ( | ) |
References BroadcastReadyCheck(), ObjectAccessor::FindConnectedPlayer(), m_memberSlots, and MSG_RAID_READY_CHECK_CONFIRM.
Referenced by WorldSession::HandleRaidReadyCheckOpcode().
void Group::RemoveAllInvites | ( | ) |
References m_invitees.
Referenced by Disband(), and Player::UninviteFromGroup().
void Group::RemoveInvite | ( | Player * | player | ) |
References m_invitees, and Player::SetGroupInvite().
Referenced by AddInvite(), WorldSession::HandleGroupAcceptOpcode(), and Player::UninviteFromGroup().
bool Group::RemoveMember | ( | ObjectGuid | guid, |
const RemoveMethod & | method = GROUP_REMOVEMETHOD_DEFAULT , |
||
ObjectGuid | kicker = ObjectGuid::Empty , |
||
const char * | reason = nullptr |
||
) |
References _getMemberWSlot(), _homebindIfInstance(), BroadcastGroupUpdate(), ChangeLeader(), CHAR_DEL_GROUP_MEMBER, CharacterDatabase, CountRollVote(), Disband(), DISENCHANT, ObjectAccessor::FindConnectedPlayer(), ObjectGuid::GetCounter(), GetGUID(), GetLeaderGUID(), WorldLocation::GetMapId(), GetMembersCount(), Player::GetOriginalGroup(), Player::GetSession(), LinkedListHead::getSize(), Player::GetSkillValue(), GREED, GROUP_REMOVEMETHOD_KICK, GROUP_REMOVEMETHOD_KICK_LFG, WorldPacket::Initialize(), INSTANCE_RESET_GROUP_LEAVE, Unit::IsAlive(), isBFGroup(), isBGGroup(), isLFGGroup(), Roll::itemGUID, lfg::LFG_STATE_NONE, m_counter, m_guid, m_leaderGuid, m_memberMgr, m_memberSlots, MAX_ROLL_TYPE, NEED, NOT_VALID, PASS, Roll::playerVote, Player::RemoveFromBattlegroundOrBattlefieldRaid(), Player::ResetInstances(), ResetMaxEnchantingLevel(), RollId, sCharacterCache, WorldSession::SendPacket(), SendUpdate(), PreparedStatementBase::SetData(), Player::SetGroup(), Player::SetOriginalGroup(), SKILL_ENCHANTING, sLFGMgr, SMSG_GROUP_LIST, SMSG_GROUP_UNINVITE, sScriptMgr, SubGroupCounterDecrease(), Roll::totalGreed, Roll::totalNeed, Roll::totalPass, Roll::totalPlayersRolling, and Player::UpdateForQuestWorldObjects().
Referenced by group_commandscript::HandleGroupRemoveCommand(), lfg::LFGMgr::MakeNewGroup(), and Player::RemoveFromGroup().
void Group::RemoveUniqueGroupMemberFlag | ( | GroupMemberFlags | flag | ) |
References m_memberSlots.
Referenced by WorldSession::HandlePartyAssignmentOpcode(), and SetGroupMemberFlag().
References InstanceSave::CanReset(), DUNGEON_DIFFICULTY_NORMAL, Player::GetDifficulty(), Object::GetGUID(), InstanceSave::GetInstanceId(), InstanceSave::GetMapId(), INSTANCE_RESET_ALL, INSTANCE_RESET_CHANGE_DIFFICULTY, isBFGroup(), isBGGroup(), isLFGGroup(), MapEntry::IsRaid(), InstanceMap::Reset(), Player::SendResetInstanceFailed(), Player::SendResetInstanceSuccess(), sInstanceSaveMgr, sMapMgr, sMapStore, and Map::ToInstanceMap().
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and WorldSession::HandleSetRaidDifficultyOpcode().
void Group::ResetMaxEnchantingLevel | ( | ) |
References ObjectAccessor::FindPlayer(), Player::GetSession(), Player::GetSkillValue(), WorldSession::IsSocketClosed(), m_maxEnchantingLevel, m_memberSlots, and SKILL_ENCHANTING.
Referenced by WorldSession::LogoutPlayer(), and RemoveMember().
bool Group::SameSubGroup | ( | ObjectGuid | guid1, |
MemberSlot const * | slot2 | ||
) | const |
References _getMemberCSlot(), Group::MemberSlot::group, and m_memberSlots.
bool Group::SameSubGroup | ( | ObjectGuid | guid1, |
ObjectGuid | guid2 | ||
) | const |
References _getMemberCSlot(), m_memberSlots, and SameSubGroup().
Referenced by Player::IsInSameGroupWith(), SameSubGroup(), and PetAI::UpdateAllies().
References Player::GetGroup(), and Player::GetSubGroup().
void Group::SendLootAllPassed | ( | Roll const & | roll | ) |
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), Roll::itemGUID, Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, NOT_VALID, Roll::playerVote, WorldSession::SendPacket(), and SMSG_LOOT_ALL_PASSED.
Referenced by CountTheRoll().
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, | ||
const Roll & | r, | ||
bool | autoPass = false |
||
) |
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, NOT_VALID, Roll::playerVote, WorldSession::SendPacket(), and SMSG_LOOT_ROLL.
Referenced by CountRollVote(), CountTheRoll(), GroupLoot(), and NeedBeforeGreed().
void Group::SendLootRollWon | ( | ObjectGuid | SourceGuid, |
ObjectGuid | TargetGuid, | ||
uint8 | RollNumber, | ||
uint8 | RollType, | ||
const Roll & | r | ||
) |
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, NOT_VALID, Roll::playerVote, WorldSession::SendPacket(), and SMSG_LOOT_ROLL_WON.
Referenced by CountTheRoll().
References ObjectAccessor::FindConnectedPlayer(), Player::GetSession(), Roll::itemCount, Roll::itemGUID, Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, NOT_EMITED_YET, Roll::playerVote, Roll::rollVoteMask, WorldSession::SendPacket(), and SMSG_LOOT_START_ROLL.
Referenced by GroupLoot().
void Group::SendLootStartRollToPlayer | ( | uint32 | countDown, |
uint32 | mapId, | ||
Player * | p, | ||
bool | canNeed, | ||
Roll const & | r | ||
) |
References Player::GetSession(), Roll::itemCount, Roll::itemGUID, Roll::itemid, Roll::itemRandomPropId, Roll::itemRandomSuffix, Roll::itemSlot, Roll::rollVoteMask, WorldSession::SendPacket(), and SMSG_LOOT_START_ROLL.
Referenced by NeedBeforeGreed().
void Group::SendTargetIconList | ( | WorldSession * | session | ) |
References m_targetIcons, MSG_RAID_TARGET_UPDATE, WorldSession::SendPacket(), and TARGETICONCOUNT.
Referenced by WorldSession::HandleRaidTargetUpdateOpcode().
void Group::SendUpdate | ( | ) |
References m_memberSlots, and SendUpdateToPlayer().
Referenced by AddMember(), Battleground::AddOrSetPlayerToCorrectBgGroup(), ChangeMembersGroup(), ConvertToLFG(), ConvertToRaid(), WorldSession::HandleGroupAssistantLeaderOpcode(), group_commandscript::HandleGroupLeaderCommand(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleLootMethodOpcode(), WorldSession::HandlePartyAssignmentOpcode(), WorldSession::LogoutPlayer(), lfg::LFGMgr::MakeNewGroup(), RemoveMember(), SetGroupMemberFlag(), SetLfgRoles(), and UpdateLooterGuid().
void Group::SendUpdateToPlayer | ( | ObjectGuid | playerGUID, |
MemberSlot * | slot = nullptr |
||
) |
References _getMemberWSlot(), ObjectAccessor::FindConnectedPlayer(), Group::MemberSlot::flags, Player::GetGroup(), GetMembersCount(), 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, WorldSession::SendPacket(), sLFGMgr, and SMSG_GROUP_LIST.
Referenced by SendUpdate().
void Group::SetBattlefieldGroup | ( | Battlefield * | bf | ) |
References m_bfGroup.
Referenced by Battlefield::AddOrSetPlayerToCorrectBfGroup().
void Group::SetBattlegroundGroup | ( | Battleground * | bg | ) |
void Group::SetDifficultyChangePrevention | ( | DifficultyPreventionChangeType | type | ) |
References _difficultyChangePreventionTime, _difficultyChangePreventionType, GameTime::GetGameTime(), and MINUTE.
Referenced by WorldSession::HandleSetRaidDifficultyOpcode(), and InstanceMap::PermBindAllPlayers().
void Group::SetDungeonDifficulty | ( | Difficulty | difficulty | ) |
References CHAR_UPD_GROUP_DIFFICULTY, CharacterDatabase, GetFirstMember(), GetGUID(), isBFGroup(), isBGGroup(), m_dungeonDifficulty, GroupReference::next(), Player::SendDungeonDifficulty(), PreparedStatementBase::SetData(), and Player::SetDungeonDifficulty().
Referenced by WorldSession::HandleSetDungeonDifficultyOpcode(), and lfg::LFGMgr::MakeNewGroup().
void Group::SetGroupMemberFlag | ( | ObjectGuid | guid, |
bool | apply, | ||
GroupMemberFlags | flag | ||
) |
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::SetData(), and ToggleGroupMemberFlag().
Referenced by WorldSession::HandleGroupAssistantLeaderOpcode(), and WorldSession::HandlePartyAssignmentOpcode().
void Group::SetLfgRoles | ( | ObjectGuid | guid, |
const uint8 | roles | ||
) |
References _getMemberWSlot(), m_memberSlots, and SendUpdate().
Referenced by lfg::LFGMgr::MakeNewGroup().
void Group::SetLooterGuid | ( | ObjectGuid | guid | ) |
void Group::SetLootMethod | ( | LootMethod | method | ) |
References m_lootMethod.
Referenced by WorldSession::HandleLootMethodOpcode().
void Group::SetLootThreshold | ( | ItemQualities | threshold | ) |
References m_lootThreshold.
Referenced by WorldSession::HandleLootMethodOpcode().
void Group::SetMasterLooterGuid | ( | ObjectGuid | guid | ) |
References m_masterLooterGuid.
Referenced by WorldSession::HandleLootMethodOpcode().
void Group::SetRaidDifficulty | ( | Difficulty | difficulty | ) |
References CHAR_UPD_GROUP_RAID_DIFFICULTY, CharacterDatabase, GetFirstMember(), GetGUID(), isBFGroup(), isBGGroup(), m_raidDifficulty, GroupReference::next(), Player::SendRaidDifficulty(), PreparedStatementBase::SetData(), and Player::SetRaidDifficulty().
Referenced by WorldSession::HandleSetRaidDifficultyOpcode().
void Group::SetTargetIcon | ( | uint8 | id, |
ObjectGuid | whoGuid, | ||
ObjectGuid | targetGuid | ||
) |
References BroadcastPacket(), ObjectGuid::Empty, m_targetIcons, MSG_RAID_TARGET_UPDATE, SetTargetIcon(), and TARGETICONCOUNT.
Referenced by WorldSession::HandleRaidTargetUpdateOpcode(), and SetTargetIcon().
|
protected |
References m_subGroupsCounts.
Referenced by ChangeMembersGroup(), and RemoveMember().
|
protected |
References m_subGroupsCounts.
Referenced by AddMember(), ChangeMembersGroup(), and LoadMemberFromDB().
|
protected |
Referenced by ChangeLeader(), and SetGroupMemberFlag().
void Group::UpdateLooterGuid | ( | WorldObject * | pLootedObject, |
bool | ifneed = false |
||
) |
References _getMemberCSlot(), ObjectGuid::Empty, ObjectAccessor::FindPlayer(), FREE_FOR_ALL, Object::GetGUID(), GetLooterGuid(), GetLootMethod(), Player::IsAtLootRewardDistance(), m_memberSlots, SendUpdate(), and SetLooterGuid().
Referenced by Unit::Kill(), and Player::SendLoot().
void Group::UpdatePlayerOutOfRange | ( | Player * | player | ) |
References WorldSession::BuildPartyMemberStatsChangedPacket(), GetFirstMember(), Player::GetSession(), Player::GetSightRange(), WorldObject::IsInMap(), Object::IsInWorld(), WorldObject::IsWithinDist(), GroupReference::next(), and WorldSession::SendPacket().
Referenced by AddMember().
|
protected |
Referenced by GetDifficultyChangePreventionTime(), and SetDifficultyChangePrevention().
|
protected |
Referenced by GetDifficultyChangePreventionReason(), and SetDifficultyChangePrevention().
DataMap Group::CustomData |
|
protected |
Referenced by isBFGroup(), and SetBattlefieldGroup().
|
protected |
Referenced by isBGGroup(), SetBattlegroundGroup(), and ~Group().
|
protected |
Referenced by Disband(), RemoveMember(), and SendUpdateToPlayer().
|
protected |
Referenced by Create(), GetDifficulty(), GetDungeonDifficulty(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetDungeonDifficulty().
|
protected |
Referenced by ConvertToLFG(), ConvertToRaid(), Create(), GetGroupType(), isLFGGroup(), isRaidGroup(), LoadGroupFromDB(), and SendUpdateToPlayer().
|
protected |
Referenced by Create(), Disband(), GetGUID(), LoadGroupFromDB(), RemoveMember(), and SendUpdateToPlayer().
|
protected |
Referenced by AddInvite(), GetInvited(), GetInviteeCount(), RemoveAllInvites(), and RemoveInvite().
|
protected |
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeader(), GetLeaderGUID(), LoadGroupFromDB(), RemoveMember(), and SendUpdateToPlayer().
|
protected |
Referenced by AddLeaderInvite(), ChangeLeader(), Create(), GetLeaderName(), and LoadGroupFromDB().
|
protected |
Referenced by AddLfgBuffFlag(), AddLfgHeroicFlag(), AddLfgRandomInstanceFlag(), IsLfgHeroic(), IsLfgRandomInstance(), and IsLfgWithBuff().
|
protected |
Referenced by Create(), GetLooterGuid(), LoadGroupFromDB(), and SetLooterGuid().
|
protected |
Referenced by ConvertToLFG(), Create(), GetLootMethod(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetLootMethod().
|
protected |
Referenced by Create(), GetLootThreshold(), GroupLoot(), LoadGroupFromDB(), NeedBeforeGreed(), SendUpdateToPlayer(), and SetLootThreshold().
|
protected |
Referenced by Create(), GetMasterLooterGuid(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetMasterLooterGuid().
|
protected |
Referenced by AddMember(), GroupLoot(), NeedBeforeGreed(), and ResetMaxEnchantingLevel().
|
protected |
Referenced by GetFirstMember(), LinkMember(), and RemoveMember().
|
protected |
Referenced by _getMemberCSlot(), _getMemberWSlot(), _initRaidSubGroupsCounter(), AddMember(), BroadcastGroupUpdate(), ChangeLeader(), ChangeMembersGroup(), CheckLevelForRaid(), ConvertToRaid(), Disband(), GetMemberGroup(), GetMemberGUID(), GetMembersCount(), GetMemberSlots(), IsAssistant(), IsFull(), IsMember(), LoadMemberFromDB(), OfflineReadyCheck(), RemoveMember(), RemoveUniqueGroupMemberFlag(), ResetMaxEnchantingLevel(), SameSubGroup(), SendUpdate(), SendUpdateToPlayer(), SetGroupMemberFlag(), SetLfgRoles(), and UpdateLooterGuid().
|
protected |
Referenced by Create(), GetDifficulty(), GetRaidDifficulty(), LoadGroupFromDB(), SendUpdateToPlayer(), and SetRaidDifficulty().
|
protected |
|
protected |
Referenced by AddMember(), Create(), LoadGroupFromDB(), SendTargetIconList(), and SetTargetIcon().
|
protected |
Referenced by CountRollVote(), CountTheRoll(), Disband(), EndRoll(), GetRoll(), GroupLoot(), isRollLootActive(), NeedBeforeGreed(), RemoveMember(), and ~Group().