AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
ObjectAccessor Namespace Reference

Functions

WorldObjectGetWorldObject (WorldObject const &, ObjectGuid const guid)
 
ObjectGetObjectByTypeMask (WorldObject const &, ObjectGuid const guid, uint32 typemask)
 
CorpseGetCorpse (WorldObject const &u, ObjectGuid const guid)
 
GameObjectGetGameObject (WorldObject const &u, ObjectGuid const guid)
 
TransportGetTransport (WorldObject const &u, ObjectGuid const guid)
 
DynamicObjectGetDynamicObject (WorldObject const &u, ObjectGuid const guid)
 
UnitGetUnit (WorldObject const &, ObjectGuid const guid)
 
CreatureGetCreature (WorldObject const &u, ObjectGuid const guid)
 
PetGetPet (WorldObject const &, ObjectGuid const guid)
 
PlayerGetPlayer (Map const *, ObjectGuid const guid)
 
PlayerGetPlayer (WorldObject const &, ObjectGuid const guid)
 
CreatureGetCreatureOrPetOrVehicle (WorldObject const &, ObjectGuid const)
 
PlayerFindPlayer (ObjectGuid const guid)
 
PlayerFindPlayerByLowGUID (ObjectGuid::LowType lowguid)
 
PlayerFindConnectedPlayer (ObjectGuid const guid)
 
PlayerFindPlayerByName (std::string const &name, bool checkInWorld=true)
 
CreatureGetSpawnedCreatureByDBGUID (uint32 mapId, uint64 guid)
 Get a spawned creature by DB guid column. MODULE USAGE ONLY - USE IT FOR CUSTOM CONTENT. More...
 
GameObjectGetSpawnedGameObjectByDBGUID (uint32 mapId, uint64 guid)
 Get a spawned gameobject by DB guid column. MODULE USAGE ONLY - USE IT FOR CUSTOM CONTENT. More...
 
HashMapHolder< Player >::MapType const & GetPlayers ()
 
template<class T >
void AddObject (T *object)
 
template<class T >
void RemoveObject (T *object)
 
void SaveAllPlayers ()
 
template<>
void AddObject (Player *player)
 
template<>
void RemoveObject (Player *player)
 
void UpdatePlayerNameMapReference (std::string oldname, Player *player)
 

Function Documentation

◆ AddObject() [1/2]

template<>
void ObjectAccessor::AddObject ( Player player)
334{
337}
void Insert(Player *p)
Definition: ObjectAccessor.cpp:88
static void Insert(T *o)
Definition: ObjectAccessor.cpp:33

References PlayerNameMapHolder::Insert(), and HashMapHolder< T >::Insert().

◆ AddObject() [2/2]

template<class T >
void ObjectAccessor::AddObject ( T *  object)

◆ FindConnectedPlayer()

Player * ObjectAccessor::FindConnectedPlayer ( ObjectGuid const  guid)
258{
259 return HashMapHolder<Player>::Find(guid);
260}
static T * Find(ObjectGuid guid)
Definition: ObjectAccessor.cpp:53

References HashMapHolder< T >::Find().

Referenced by Battleground::_ProcessJoin(), InstanceSaveMgr::_ResetSave(), Guild::AddMember(), ArenaTeam::AddMember(), InstanceMap::AddPlayerToMap(), ArenaTeam::BroadcastPacket(), Group::CanJoinBattlegroundQueue(), Player::CanUninviteFromGroup(), Group::ChangeLeader(), Group::ChangeMembersGroup(), lfg::LFGQueue::CheckCompatibility(), ArenaTeam::Create(), Guild::DeleteMember(), ArenaTeam::DelMember(), Group::Disband(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), Guild::Member::FindPlayer(), ArenaTeam::FinishGame(), GmTicket::GetAssignedPlayer(), ArenaTeam::GetAverageMMR(), SocialMgr::GetFriendInfo(), Group::GetLeader(), Creature::GetLootRecipient(), GameObject::GetLootRecipient(), GmTicket::GetPlayer(), CalendarMgr::GetPlayerEvents(), ChatHandler::getSelectedPlayer(), ChatHandler::getSelectedPlayerOrSelf(), WorldSession::HandleAddFriendOpcode(), WorldSession::HandleAuctionPlaceBid(), WorldSession::HandleBattleFieldPortOpcode(), cache_commandscript::HandleCacheRefreshCommand(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCharCustomize(), WorldSession::HandleCharDeleteOpcode(), WorldSession::HandleCharFactionOrRaceChange(), WorldSession::HandleCharRenameCallBack(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleGroupAcceptOpcode(), WorldSession::HandleGroupDeclineOpcode(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupUninviteGuidOpcode(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetitionDeclineOpcode(), WorldSession::HandlePetitionSignOpcode(), WorldSession::HandleRaidTargetUpdateOpcode(), WorldSession::HandleSendMail(), lfg::LFGMgr::HasIgnore(), BattlegroundQueue::InviteGroupToBG(), lfg::LFGMgr::LoadLFGDungeons(), lfg::LFGMgr::MakeNewGroup(), ArenaTeam::NotifyStatsChanged(), Group::OfflineReadyCheck(), lfg::LFGGroupScript::OnRemoveMember(), Group::RemoveMember(), PetitionMgr::RemovePetitionByOwnerAndType(), Player::RemovePetitionsAndSigns(), BattlegroundQueue::RemovePlayer(), Player::ResetInstances(), ArenaTeam::Roster(), AuctionHouseMgr::SendAuctionCancelledToBidderMail(), AuctionHouseMgr::SendAuctionExpiredMail(), AuctionHouseMgr::SendAuctionOutbiddedMail(), AuctionHouseMgr::SendAuctionSalePendingMail(), AuctionHouseMgr::SendAuctionSuccessfulMail(), AuctionHouseMgr::SendAuctionWonMail(), CalendarMgr::SendCalendarClearPendingAction(), CalendarMgr::SendCalendarCommandResult(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventInviteRemoveAlert(), lfg::LFGMgr::SendLfgBootProposalUpdate(), lfg::LFGMgr::SendLfgJoinResult(), lfg::LFGMgr::SendLfgQueueStatus(), WorldSession::SendLfgRoleCheckUpdate(), lfg::LFGMgr::SendLfgRoleCheckUpdate(), lfg::LFGMgr::SendLfgRoleChosen(), lfg::LFGMgr::SendLfgUpdateParty(), lfg::LFGMgr::SendLfgUpdatePlayer(), lfg::LFGMgr::SendLfgUpdateProposal(), Group::SendLootAllPassed(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), WorldSession::SendNameQueryOpcode(), CalendarMgr::SendPacketToAllEventRelatives(), Channel::SendToOne(), Group::SendUpdateToPlayer(), ArenaTeam::SetCaptain(), InstanceSaveMgr::UnbindAllFor(), and lfg::LFGMgr::UpdateRaidBrowser().

◆ FindPlayer()

Player * ObjectAccessor::FindPlayer ( ObjectGuid const  guid)
246{
247 Player* player = HashMapHolder<Player>::Find(guid);
248 return player && player->IsInWorld() ? player : nullptr;
249}
bool IsInWorld() const
Definition: Object.h:104
Definition: Player.h:1064

References HashMapHolder< T >::Find(), and Object::IsInWorld().

Referenced by Battleground::_ProcessJoin(), Battleground::_ProcessResurrect(), Loot::AddItem(), BfGraveyard::AddPlayer(), Arena::AddPlayer(), Battleground::AddPlayerToResurrectQueue(), Group::BroadcastGroupUpdate(), OutdoorPvP::BroadcastPacket(), Battlefield::BroadcastPacketToQueue(), Battlefield::BroadcastPacketToWar(), Battlefield::BroadcastPacketToZone(), SocialMgr::BroadcastToFriendListers(), OutdoorPvPEP::BuffTeams(), BattlegroundSA::CaptureGraveyard(), BattlefieldWG::CapturePointTaken(), OPvPCapturePointTF::ChangeState(), Spell::CheckCast(), Group::CheckLevelForRaid(), SpellInfo::CheckTarget(), Group::ConvertToRaid(), Group::CountTheRoll(), AccountMgr::DeleteAccount(), ArenaTeamMgr::DistributeArenaPoints(), Spell::DoAllEffectOnTarget(), AuctionListItemsDelayEvent::Execute(), AuctionListOwnerItemsDelayEvent::Execute(), DelayedWindstoneSummonEvent::Execute(), Loot::FillQuestLoot(), FindPlayerByLowGUID(), lfg::LFGMgr::FinishDungeon(), Item::GetOwner(), Group::GroupLoot(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleInspectArenaTeamsOpcode(), BattlefieldWG::HandleKill(), WorldSession::HandleReportPvPAFK(), WorldSession::HandleSummonResponseOpcode(), Battlefield::InvitePlayersInQueueToWar(), Battlefield::InvitePlayersInZoneToQueue(), Battlefield::InvitePlayersInZoneToWar(), ArenaTeam::IsFighting(), Battlefield::KickAfkPlayers(), Battlefield::KickPlayerFromBattlefield(), Unit::Kill(), lfg::LFGMgr::MakeNewGroup(), Group::NeedBeforeGreed(), Loot::NotifyItemRemoved(), Loot::NotifyMoneyRemoved(), Loot::NotifyQuestItemRemoved(), BattlefieldWG::OnBattleEnd(), BattlefieldWG::OnBattleStart(), BattlefieldWG::OnCreatureCreate(), Acore::WorldObjectSpellTargetCheck::operator()(), BfGraveyard::RelocateDeadPlayers(), Battleground::RelocateDeadPlayers(), BattlegroundQueue::RemovePlayer(), BfGraveyard::RemovePlayer(), lfg::LFGMgr::RemoveProposal(), Group::ResetMaxEnchantingLevel(), BfGraveyard::Resurrect(), Spell::SelectEffectTypeImplicitTargets(), BfCapturePoint::SendChangePhase(), BattlefieldWG::SendInitWorldStatesToAll(), BfCapturePoint::SendObjectiveComplete(), OPvPCapturePoint::SendObjectiveComplete(), Acore::VisibleNotifier::SendToSelf(), BfCapturePoint::SendUpdateWorldState(), Battlefield::SendUpdateWorldState(), OPvPCapturePoint::SendUpdateWorldState(), OutdoorPvP::SendUpdateWorldState(), OPvPCapturePointZM_GraveYard::SetBeaconState(), Channel::SetOwner(), Player::SummonIfPossible(), Battlefield::TeamCastSpell(), OutdoorPvP::TeamCastSpell(), BfCapturePoint::Update(), OPvPCapturePoint::Update(), OPvPCapturePointNA::Update(), BattlefieldWG::UpdatedDestroyedTowerCount(), Group::UpdateLooterGuid(), BattlefieldWG::UpdateTenacity(), BattlefieldWG::UpdateVehicleCountWG(), GameObject::Use(), and WorldObjectChangeAccumulator::Visit().

◆ FindPlayerByLowGUID()

Player * ObjectAccessor::FindPlayerByLowGUID ( ObjectGuid::LowType  lowguid)
252{
253 ObjectGuid guid = ObjectGuid::Create<HighGuid::Player>(lowguid);
254 return ObjectAccessor::FindPlayer(guid);
255}
Player * FindPlayer(ObjectGuid const guid)
Definition: ObjectAccessor.cpp:245
Definition: ObjectGuid.h:118

References FindPlayer().

Referenced by Player::DeleteFromDB(), WorldSession::HandleMailTakeItem(), lookup_commandscript::LookupPlayerSearchCommand(), ObjectMgr::ReturnOrDeleteOldMails(), MailDraft::SendMailTo(), MailDraft::SendReturnToSender(), and Acore::ChatCommands::PlayerIdentifier::TryConsume().

◆ FindPlayerByName()

◆ GetCorpse()

◆ GetCreature()

Creature * ObjectAccessor::GetCreature ( WorldObject const &  u,
ObjectGuid const  guid 
)
211{
212 return u.GetMap()->GetCreature(guid);
213}

References Map::GetCreature(), and WorldObject::GetMap().

Referenced by at_zulgurub_entrance_speech::_OnTrigger(), at_zulgurub_bridge_speech::_OnTrigger(), at_zulgurub_temple_speech::_OnTrigger(), at_zulgurub_bloodfire_pit_speech::_OnTrigger(), at_zulgurub_edge_of_madness_speech::_OnTrigger(), boss_kologarn::boss_kologarnAI::AttachLeftArm(), boss_kologarn::boss_kologarnAI::AttachRightArm(), boss_twilight_halion::boss_twilight_halionAI::boss_twilight_halionAI(), npc_anubisath_sentinel::aqsentinelAI::CallBuddiesToAttack(), boss_algalon_the_observer::boss_algalon_the_observerAI::CallConstellations(), npc_supervisor_raelen::CallPeasent(), boss_moira_bronzebeardAI::CastOnEmperorIfPossible(), npc_commander_eligor_dawnbringer::npc_commander_eligor_dawnbringerAI::ChangeImage(), npc_still_at_it_trigger::npc_still_at_it_triggerAI::CheckAction(), npc_cork_gizelton::npc_cork_gizeltonAI::CheckCaravan(), boss_volazj::CheckPhaseMinions(), spell_putricide_mutation_init::CheckRequirementInternal(), npc_battle_at_valhalas::npc_battle_at_valhalasAI::CheckSummons(), npc_twiggy_flathead::npc_twiggy_flatheadAI::CleanUp(), npc_thassarian2::npc_thassarian2AI::Cleanup(), boss_kologarn_eyebeam::boss_kologarn_eyebeamAI::DamageDealt(), npc_mograine::npc_mograineAI::DamageTaken(), boss_sartharion::boss_sartharionAI::DamageTaken(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::DamageTaken(), boss_freya::boss_freyaAI::DamageTaken(), boss_halion::boss_halionAI::DamageTaken(), boss_twilight_halion::boss_twilight_halionAI::DamageTaken(), boss_the_lich_king::boss_the_lich_kingAI::DamageTaken(), npc_ulduar_iron_construct::npc_ulduar_iron_constructAI::DamageTaken(), npc_ulduar_flash_freeze::npc_ulduar_flash_freezeAI::DamageTaken(), boss_thorim_start_npcs::boss_thorim_start_npcsAI::DamageTaken(), boss_mal_ganis::boss_mal_ganisAI::DamageTaken(), boss_kologarn_arms::boss_kologarn_armsAI::DamageTaken(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::DamageTaken(), SummonList::DespawnAll(), SummonList::DespawnEntry(), boss_jedoga_shadowseeker::DespawnOOCSummons(), boss_netherspite::DestroyPortals(), boss_mandokir::boss_mandokirAI::DoAction(), go_ossirian_crystal::go_ossirian_crystalAI::DoAction(), boss_jedoga_shadowseeker::DoAction(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), boss_the_lich_king::boss_the_lich_kingAI::DoAction(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::DoAction(), npc_crok_scourgebane::npc_crok_scourgebaneAI::DoAction(), npc_argent_captainAI::DoAction(), npc_ahune_bunny::DoAction(), SummonList::DoAction(), boss_paletress::boss_paletressAI::DoAction(), npc_molten_golem::npc_molten_golemAI::DoAction(), boss_thorim_sif::boss_thorim_sifAI::DoAction(), npc_xt002_heart::npc_xt002_heartAI::DoAction(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::DoAction(), boss_yoggsaron_brain::boss_yoggsaron_brainAI::DoAction(), npc_scarlet_miner_cart::npc_scarlet_miner_cartAI::DoAction(), boss_razorgore::boss_razorgoreAI::DoChangePhase(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::DoSummonAction(), SummonList::DoZoneInCombat(), npc_ravenclaw_apparition::npc_ravenclaw_apparitionAI::EmoteCrowd(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::EmpowerCultist(), boss_halion::boss_halionAI::EnterEvadeMode(), boss_prince_keleseth_icc::boss_prince_kelesethAI::EnterEvadeMode(), boss_prince_taldaram_icc::boss_prince_taldaramAI::EnterEvadeMode(), boss_prince_valanar_icc::boss_prince_valanarAI::EnterEvadeMode(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::EnterEvadeMode(), boss_festergut::boss_festergutAI::EnterEvadeMode(), boss_rotface::boss_rotfaceAI::EnterEvadeMode(), boss_the_lich_king::boss_the_lich_kingAI::EnterEvadeMode(), npc_tirion_fordring_tft::npc_tirion_fordringAI::EnterEvadeMode(), npc_argent_captainAI::EnterEvadeMode(), npc_burning_spirit::npc_burning_spiritAI::EnterEvadeMode(), npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI::EnterEvadeMode(), AssistDelayEvent::Execute(), IceTombSummonEvent::Execute(), boss_sartharion_tenebron::boss_sartharion_tenebronAI::ExecuteEvent(), boss_salramm::boss_salrammAI::ExplodeGhoul(), spell_festergut_blighted_spores_aura::ExtraEffect(), spell_the_lich_king_restore_soul::FilterTargets(), npc_thrall_bfu::npc_thrall_bfuAI::FollowThrall(), brann_bronzebeard::brann_bronzebeardAI::GetAbedneum(), Unit::GetCompanionPet(), npc_hourglass_of_eternity::npc_hourglass_of_eternityAI::GetCopy(), GetCreatureOrPetOrVehicle(), SummonList::GetCreatureWithEntry(), npc_chesspiece::GetEnemyPiece(), SummonList::GetEntryCount(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::GetEntryFromSummons(), npc_arthas::npc_arthasAI::GetEventNpc(), boss_skadi::boss_skadiAI::GetGrauf(), boss_hodir::boss_hodirAI::GetHelper(), npc_echo_of_medivh::GetHostileTargetForChangeFacing(), brann_bronzebeard::brann_bronzebeardAI::GetKaddrak(), npc_chesspiece::GetLowestHpFriendlyPiece(), npc_still_at_it_trigger::npc_still_at_it_triggerAI::GetManus(), brann_bronzebeard::brann_bronzebeardAI::GetMarnak(), npc_conversing_with_the_depths_trigger::npc_conversing_with_the_depths_triggerAI::GetOachanoa(), GetObjectByTypeMask(), npc_anubisath_sentinel::aqsentinelAI::GetOtherSentinels(), npc_echo_of_medivh::GetPiece(), npc_pilgrims_bounty_chair::GetPlate(), boss_moroes::GetRandomGuest(), npc_dream_fog::npc_dream_fogAI::GetRandomUnitFromDragonThreatList(), boss_twin_valkyrAI::GetSister(), npc_air_force_bots::npc_air_force_botsAI::GetSummonedGuard(), TempSummon::GetSummonerCreatureBase(), GetUnit(), npc_wintergarde_gryphon::getVillager(), GetWorldObject(), go_ossirian_crystal::go_ossirian_crystalAI::GossipHello(), go_troll_cage::go_troll_cageAI::GossipHello(), go_wind_stone::go_wind_stoneAI::GossipSelect(), spell_illidari_council_empyreal_balance::HandleAfterCast(), spell_illidari_council_empyreal_equivalency::HandleAfterCast(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), npc_echo_of_medivh::HandleCheat(), spell_halion_twilight_division::HandleDummy(), spell_mage_summon_water_elemental::HandleDummy(), spell_midsummer_torch_quest::HandleEffectRemove(), spell_black_template_harpooners_mark_aura::HandleEffectRemove(), spell_botanica_call_of_the_falcon_aura::HandleEffectRemove(), spell_assembly_meltdown::HandleInstaKill(), spell_oculus_rider_aura::HandleOnEffectRemove(), npc_echo_of_medivh::HandlePieceMoveByAI(), spell_sartharion_lava_strike::HandleSchoolDamage(), spell_festergut_pungent_blight::HandleScript(), spell_putricide_unbound_plague::HandleScript(), spell_rotface_large_ooze_combine::HandleScript(), spell_rotface_large_ooze_buff_combine::HandleScript(), spell_putricide_mutated_transformation::HandleSummon(), SummonList::HasEntry(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::HealReceived(), npc_cork_gizelton::npc_cork_gizeltonAI::ImmuneFlagSet(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::InformCloud(), go_troll_cage::go_troll_cageAI::initBlyCrewMember(), boss_warchief_kargath_bladefist::InitializeAI(), SummonList::IsAnyCreatureAlive(), SummonList::IsAnyCreatureInCombat(), SummonList::IsAnyCreatureWithEntryAlive(), IsEncounterComplete(), npc_direbrew_minion::IsSummonedBy(), npc_onyx_flamecaller::npc_onyx_flamecallerAI::IsSummonedBy(), npc_living_inferno::npc_living_infernoAI::IsSummonedBy(), npc_kinetic_bomb::npc_kinetic_bombAI::IsSummonedBy(), npc_putricide_oozeAI::IsSummonedBy(), npc_raging_spirit::npc_raging_spiritAI::IsSummonedBy(), npc_suppresser::npc_suppresserAI::IsSummonedBy(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::IsSummonedBy(), boss_emperor_dagran_thaurissan::boss_draganthaurissanAI::JustDied(), npc_chesspiece::JustDied(), boss_infinite_corruptor::boss_infinite_corruptorAI::JustDied(), npc_anubisath_sentinel::aqsentinelAI::JustDied(), npc_qiraj_war_spawn::npc_qiraj_war_spawnAI::JustDied(), boss_sartharion_dragonAI::JustDied(), npc_memory::npc_memoryAI::JustDied(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustDied(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustDied(), boss_prince_valanar_icc::boss_prince_valanarAI::JustDied(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::JustDied(), boss_festergut::boss_festergutAI::JustDied(), npc_stinky_icc::npc_stinky_iccAI::JustDied(), boss_rotface::boss_rotfaceAI::JustDied(), npc_little_ooze::npc_little_oozeAI::JustDied(), npc_big_ooze::npc_big_oozeAI::JustDied(), npc_precious_icc::npc_precious_iccAI::JustDied(), npc_raging_spirit::npc_raging_spiritAI::JustDied(), npc_spirit_warden::npc_spirit_wardenAI::JustDied(), boss_sister_svalna::boss_sister_svalnaAI::JustDied(), boss_thaddius_summon::boss_thaddius_summonAI::JustDied(), boss_sjonnir::boss_sjonnirAI::JustDied(), boss_sjonnir_iron_sludge::boss_sjonnir_iron_sludgeAI::JustDied(), brann_bronzebeard::brann_bronzebeardAI::JustDied(), npc_auriaya_feral_defender::npc_auriaya_feral_defenderAI::JustDied(), boss_freya_summons::boss_freya_summonsAI::JustDied(), npc_ulduar_saronite_vapors::npc_ulduar_saronite_vaporsAI::JustDied(), npc_ulduar_saronite_animus::npc_ulduar_saronite_animusAI::JustDied(), npc_ulduar_iron_construct::npc_ulduar_iron_constructAI::JustDied(), boss_kologarn::boss_kologarnAI::JustDied(), boss_kologarn_arms::boss_kologarn_armsAI::JustDied(), boss_thorim_start_npcs::boss_thorim_start_npcsAI::JustDied(), boss_thorim_runic_colossus::boss_thorim_runic_colossusAI::JustDied(), boss_thorim_ancient_rune_giant::boss_thorim_ancient_rune_giantAI::JustDied(), npc_xt002_heart::npc_xt002_heartAI::JustDied(), boss_yoggsaron::boss_yoggsaronAI::JustDied(), npc_ulduar_storm_tempered_keeper::npc_ulduar_storm_tempered_keeperAI::JustDied(), npc_massive_jormungar::npc_massive_jormungarAI::JustDied(), npc_ferocious_rhino::npc_ferocious_rhinoAI::JustDied(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::JustDied(), npc_frenzied_worgen::npc_frenzied_worgenAI::JustDied(), violet_hold_trashAI::JustDied(), npc_infernal_attacker::npc_infernal_attackerAI::JustDied(), npc_illidari_spawn::npc_illidari_spawnAI::JustDied(), boss_epoch_hunter::JustDied(), boss_baltharus_the_warborn::boss_baltharus_the_warbornAI::JustDied(), boss_halion::boss_halionAI::JustDied(), boss_twilight_halion::boss_twilight_halionAI::JustDied(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustDied(), boss_flame_leviathan_defense_turret::boss_flame_leviathan_defense_turretAI::JustDied(), boss_freya_elder_stonebark::boss_freya_elder_stonebarkAI::JustDied(), boss_freya_elder_brightleaf::boss_freya_elder_brightleafAI::JustDied(), boss_freya_elder_ironbranch::boss_freya_elder_ironbranchAI::JustDied(), boss_warchief_kargath_bladefist::JustDied(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::JustDied(), boss_priestess_delrissa::JustEngagedWith(), npc_risen_archmage::npc_risen_archmageAI::JustEngagedWith(), boss_sister_svalna::boss_sister_svalnaAI::JustEngagedWith(), boss_sjonnir::boss_sjonnirAI::JustEngagedWith(), npc_auriaya_sanctum_sentry::npc_auriaya_sanctum_sentryAI::JustEngagedWith(), boss_freya::boss_freyaAI::JustEngagedWith(), boss_sartharion::boss_sartharionAI::JustEngagedWith(), boss_thaddius_summon::boss_thaddius_summonAI::JustEngagedWith(), npc_green_dragon_combat_trigger::npc_green_dragon_combat_triggerAI::JustEngagedWith(), npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI::JustEngagedWith(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustEngagedWith(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustEngagedWith(), boss_prince_valanar_icc::boss_prince_valanarAI::JustEngagedWith(), boss_festergut::boss_festergutAI::JustEngagedWith(), boss_rotface::boss_rotfaceAI::JustEngagedWith(), boss_steelbreaker::boss_steelbreakerAI::JustEngagedWith(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::JustEngagedWith(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::JustEngagedWith(), boss_yoggsaron_cloud::boss_yoggsaron_cloudAI::JustSummoned(), npc_frozen_orb_stalker::npc_frozen_orb_stalkerAI::JustSummoned(), npc_ulduar_storm_tempered_keeper::npc_ulduar_storm_tempered_keeperAI::JustSummoned(), boss_captain_skarloc::JustSummoned(), boss_sartharion_dragonAI::JustSummoned(), npc_gothik_trigger::npc_gothik_triggerAI::JustSummoned(), npc_collapsing_star::npc_collapsing_starAI::JustSummoned(), npc_algalon_worm_hole::npc_algalon_worm_holeAI::JustSummoned(), boss_mandokir::boss_mandokirAI::KilledUnit(), npc_grizzlemaw_cw_trigger::npc_grizzlemaw_cw_triggerAI::MoveInLineOfSight(), boss_kologarn::boss_kologarnAI::MoveInLineOfSight(), npc_chesspiece::MovementInform(), boss_grand_champion::boss_grand_championAI::MovementInform(), npc_tirion_fordring_tft::npc_tirion_fordringAI::MovementInform(), npc_fel_guard_hound::npc_fel_guard_houndAI::MovementInform(), npc_shattered_hand_scout::MovementInform(), boss_jedoga_shadowseeker::MovementInform(), npc_burning_spirit::npc_burning_spiritAI::MovementInform(), npc_sergeant_bly::npc_sergeant_blyAI::MovementInform(), npc_xt002_scrapbot::npc_xt002_scrapbotAI::MovementInform(), npc_cameron::MoveTheChildren(), npc_image_of_medivh::npc_image_of_medivhAI::NextStep(), npc_big_ooze::npc_big_oozeAI::npc_big_oozeAI(), npc_little_ooze::npc_little_oozeAI::npc_little_oozeAI(), npc_ulduar_saronite_animus::npc_ulduar_saronite_animusAI::npc_ulduar_saronite_animusAI(), spell_blood_queen_frenzied_bloodthirst_aura::OnApply(), spell_blood_queen_vampiric_bite::OnCast(), achievement_cant_do_that_while_stunned::OnCheck(), achievement_auriaya_crazy_cat_lady::OnCheck(), achievement_auriaya_nine_lives::OnCheck(), achievement_kologarn_looks_could_kill::OnCheck(), achievement_kologarn_rubble_and_roll::OnCheck(), achievement_kologarn_with_open_arms::OnCheck(), achievement_xt002_nerf_engineering::OnCheck(), achievement_xt002_nerf_gravity_bombs::OnCheck(), achievement_thorim_stand_in_the_lightning::OnCheck(), achievement_thorim_lose_your_illusion::OnCheck(), achievement_yogg_saron_darkness::OnCheck(), achievement_yogg_saron_he_waits_dreaming::OnCheck(), go_palehoof_sphere::OnGossipHello(), npc_ulduar_expedition_commander::OnGossipHello(), go_orb_of_domination::OnGossipHello(), go_acherus_soul_prison::OnGossipHello(), go_ulduar_do_not_push_this_button::OnGossipHello(), go_harpoon_canon::OnGossipHello(), go_ulduar_working_harpoon::OnGossipHello(), npc_ulduar_expedition_commander::OnGossipSelect(), npc_cos_chromie_start::OnGossipSelect(), spell_blood_queen_frenzied_bloodthirst_aura::OnRemove(), at_trigger_the_beast_movement::OnTrigger(), at_the_beast_room::OnTrigger(), at_baltharus_plateau::OnTrigger(), at_lady_deathwhisper_entrance::OnTrigger(), at_sindragosa_lair::OnTrigger(), at_icc_start_frostwing_gauntlet::OnTrigger(), at_icc_gauntlet_event::OnTrigger(), at_icc_putricide_trap::OnTrigger(), at_thaddius_entrance::OnTrigger(), npc_scarlet_miner_cart::npc_scarlet_miner_cartAI::PassengerBoarded(), npc_doctor::npc_doctorAI::PatientSaved(), npc_simone::npc_simoneAI::Precious(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), npc_cork_gizelton::npc_cork_gizeltonAI::RelocateSummons(), npc_ulduar_flames_initial::npc_ulduar_flames_initialAI::RemoveAll(), boss_festergut::boss_festergutAI::RemoveBlight(), npc_echo_of_medivh::RemoveCheats(), SummonList::RemoveNotExisting(), npc_cork_gizelton::npc_cork_gizeltonAI::RemoveSummons(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::ReorderInstance(), boss_majordomo::boss_majordomoAI::Reset(), npc_varian_wrynn::npc_varian_wrynnAI::Reset(), npc_thrall_bfu::npc_thrall_bfuAI::Reset(), boss_mandokir::boss_mandokirAI::Reset(), npc_dark_iron_attack_generator::Reset(), npc_anubisath_sentinel::aqsentinelAI::Reset(), boss_paletress::boss_paletressAI::Reset(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::Reset(), boss_the_lich_king::boss_the_lich_kingAI::Reset(), boss_sjonnir::boss_sjonnirAI::Reset(), boss_freya::boss_freyaAI::Reset(), boss_razorscale::boss_razorscaleAI::Reset(), npc_xt002_scrapbot::npc_xt002_scrapbotAI::Reset(), npc_xt002_boombot::npc_xt002_boombotAI::Reset(), boss_palehoof::boss_palehoofAI::Reset(), npc_captain_saeed::npc_captain_saeedAI::Reset(), SmartScript::ResetBaseObject(), npc_ahune_bunny::ResetFlameCallers(), SummonList::Respawn(), RespawnAssemblyOfIron(), boss_sartharion::boss_sartharionAI::RespawnDragons(), RestoreAssemblyHealth(), BfGraveyard::Resurrect(), boss_thorim_runic_colossus::boss_thorim_runic_colossusAI::RunRunicSmash(), boss_razuvious::boss_razuviousAI::ScheduleInteractWithDeathKnight(), boss_razuvious::boss_razuviousAI::ScheduleRP(), spell_the_lich_king_valkyr_target_search::SelectTarget(), WorldSession::SendDoFlight(), npc_xt002_heart::npc_xt002_heartAI::SendEnergyToCorner(), Player::SendInitWorldStates(), boss_sartharion::boss_sartharionAI::SendLavaWaves(), npc_anubisath_sentinel::aqsentinelAI::SendMyListToBuddies(), Player::SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), instance_naxxramas::instance_naxxramas_InstanceMapScript::SetBossState(), npc_ulduar_harpoonfirestate::npc_ulduar_harpoonfirestateAI::SetData(), boss_the_beast::boss_thebeastAI::SetData(), npc_shandy_dalaran::npc_shandy_dalaranAI::SetData(), npc_thassarian2::npc_thassarian2AI::SetData(), boss_murmur::SetGUID(), npc_crok_scourgebane::npc_crok_scourgebaneAI::SetGUID(), npc_cork_gizelton::npc_cork_gizeltonAI::SetGUID(), npc_tirion_fordring_tft::npc_tirion_fordringAI::sGossipSelect(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::SpawnAnubArak(), npc_varian_wrynn::npc_varian_wrynnAI::SpawnWave(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::SpellHit(), npc_ulduar_iron_construct::npc_ulduar_iron_constructAI::SpellHit(), boss_razorscale::boss_razorscaleAI::SpellHit(), npc_drakuru_shackles::npc_drakuru_shacklesAI::SpellHit(), npc_deaths_door_fell_cannon_target_bunny::npc_deaths_door_fell_cannon_target_bunnyAI::SpellHit(), npc_injured_patient::npc_injured_patientAI::SpellHit(), npc_chesspiece::SpellHitTarget(), boss_yoggsaron_voice::boss_yoggsaron_voiceAI::SpellHitTarget(), npc_icc_gauntlet_controller::npc_icc_gauntlet_controllerAI::SpidersMoveDown(), npc_giant_claw_tentacle::Submerge(), PassengerController::SummonCreatures(), npc_gothik_trigger::npc_gothik_triggerAI::SummonedCreatureDespawn(), boss_sartharion_shadron::boss_sartharion_shadronAI::SummonedCreatureDies(), npc_drakonid_spawner::SummonedCreatureDies(), boss_elder_nadox::SummonHelpers(), npc_artruis_the_hearthless::npc_artruis_the_hearthlessAI::SummonsAction(), npc_captain_saeed::npc_captain_saeedAI::SummonsAction(), npc_cork_gizelton::npc_cork_gizeltonAI::SummonsFollow(), npc_sergeant_bly::npc_sergeant_blyAI::switchFactionIfAlive(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), npc_commander_eligor_dawnbringer::npc_commander_eligor_dawnbringerAI::TurnAudience(), boss_rend_blackhand::boss_rend_blackhandAI::UpdateAI(), npc_vaelastrasz_the_red::npc_vaelastrasz_the_redAI::UpdateAI(), npc_core_rager::npc_core_ragerAI::UpdateAI(), boss_majordomo::boss_majordomoAI::UpdateAI(), npc_chesspiece::UpdateAI(), npc_barnes::npc_barnesAI::UpdateAI(), npc_scarlet_ghoul::npc_scarlet_ghoulAI::UpdateAI(), npc_scarlet_miner::npc_scarlet_minerAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_high_inquisitor_whitemane::boss_high_inquisitor_whitemaneAI::UpdateAI(), npc_kalecgos_kj::UpdateAI(), npc_cameron::UpdateAI(), npc_eastvale_peasent::UpdateAI(), npc_bh_thalorien_dawnseeker::npc_bh_thalorien_dawnseekerAI::UpdateAI(), npc_varian_wrynn::npc_varian_wrynnAI::UpdateAI(), npc_thrall_bfu::npc_thrall_bfuAI::UpdateAI(), npc_winterfin_playmate::UpdateAI(), npc_snowfall_glade_playmate::UpdateAI(), npc_the_biggest_tree::UpdateAI(), npc_high_oracle_soo_roo::UpdateAI(), npc_elder_kekek::UpdateAI(), npc_the_etymidian::UpdateAI(), npc_alexstraza_the_lifebinder::UpdateAI(), npc_arthas::npc_arthasAI::UpdateAI(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::UpdateAI(), boss_skeram::UpdateAI(), npc_tharnarian::npc_tharnarianAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sergeant_bly::npc_sergeant_blyAI::UpdateAI(), boss_jedoga_shadowseeker::UpdateAI(), boss_sartharion::boss_sartharionAI::UpdateAI(), boss_general_zarithrian::boss_general_zarithrianAI::UpdateAI(), boss_halion::boss_halionAI::UpdateAI(), boss_twilight_halion::boss_twilight_halionAI::UpdateAI(), npc_halion_controller::npc_halion_controllerAI::UpdateAI(), boss_paletress::boss_paletressAI::UpdateAI(), npc_toc5_grand_champion_minion::npc_toc5_grand_champion_minionAI::UpdateAI(), boss_grand_champion::boss_grand_championAI::UpdateAI(), boss_anubarak_trial::boss_anubarak_trialAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), boss_jormungarAI::UpdateAI(), boss_novos::boss_novosAI::UpdateAI(), npc_hor_leader::npc_hor_leaderAI::UpdateAI(), npc_blood_queen_lana_thel::npc_blood_queen_lana_thelAI::UpdateAI(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::UpdateAI(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::UpdateAI(), boss_festergut::boss_festergutAI::UpdateAI(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::UpdateAI(), npc_cult_fanatic::npc_cult_fanaticAI::UpdateAI(), npc_cult_adherent::npc_cult_adherentAI::UpdateAI(), boss_rotface::boss_rotfaceAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), npc_tirion_fordring_tft::npc_tirion_fordringAI::UpdateAI(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::UpdateAI(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::UpdateAI(), npc_terenas_menethil::npc_terenas_menethilAI::UpdateAI(), npc_highlord_tirion_fordring_lh::npc_highlord_tirion_fordringAI::UpdateAI(), npc_crok_scourgebane::npc_crok_scourgebaneAI::UpdateAI(), boss_kelthuzad::boss_kelthuzadAI::UpdateAI(), boss_thaddius::boss_thaddiusAI::UpdateAI(), boss_thaddius_summon::boss_thaddius_summonAI::UpdateAI(), npc_stormforged_lieutenant::npc_stormforged_lieutenantAI::UpdateAI(), boss_sjonnir::boss_sjonnirAI::UpdateAI(), boss_algalon_the_observer::boss_algalon_the_observerAI::UpdateAI(), npc_freya_ward::npc_freya_wardAI::UpdateAI(), boss_freya_elder_brightleaf::boss_freya_elder_brightleafAI::UpdateAI(), boss_vezax::boss_vezaxAI::UpdateAI(), npc_ulduar_hodir_priest::npc_ulduar_hodir_priestAI::UpdateAI(), npc_ulduar_hodir_druid::npc_ulduar_hodir_druidAI::UpdateAI(), npc_ulduar_hodir_shaman::npc_ulduar_hodir_shamanAI::UpdateAI(), npc_ulduar_hodir_mage::npc_ulduar_hodir_mageAI::UpdateAI(), boss_kologarn_eyebeam::boss_kologarn_eyebeamAI::UpdateAI(), npc_ulduar_flames_initial::npc_ulduar_flames_initialAI::UpdateAI(), boss_razorscale::boss_razorscaleAI::UpdateAI(), npc_ulduar_expedition_engineer::npc_ulduar_expedition_engineerAI::UpdateAI(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::UpdateAI(), npc_ulduar_storm_tempered_keeper::npc_ulduar_storm_tempered_keeperAI::UpdateAI(), boss_ingvar_the_plunderer::UpdateAI(), boss_palehoof::boss_palehoofAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), npc_thassarian2::npc_thassarian2AI::UpdateAI(), npc_archmage_landalock::npc_archmage_landalockAI::UpdateAI(), npc_commander_eligor_dawnbringer::npc_commander_eligor_dawnbringerAI::UpdateAI(), npc_lord_arete::npc_lord_areteAI::UpdateAI(), npc_blessed_banner::npc_blessed_bannerAI::UpdateAI(), npc_feedin_da_goolz::npc_feedin_da_goolzAI::UpdateAI(), npc_overlord_drakuru_betrayal::npc_overlord_drakuru_betrayalAI::UpdateAI(), npc_ahune_bunny::UpdateAI(), npc_deaths_door_fell_cannon_target_bunny::npc_deaths_door_fell_cannon_target_bunnyAI::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_pet_gen_fetch_ball::UpdateAI(), npc_injured_patient::npc_injured_patientAI::UpdateAI(), npc_koltira_deathweaver::npc_koltira_deathweaverAI::UpdateAI(), npc_lord_gregor_lescovar::npc_lord_gregor_lescovarAI::UpdateAI(), boss_ichoron::boss_ichoronAI::UpdateAI(), npc_suppresser::npc_suppresserAI::UpdateAI(), npc_xt002_scrapbot::npc_xt002_scrapbotAI::UpdateAI(), npc_xt002_boombot::npc_xt002_boombotAI::UpdateAI(), npc_warmage_violetstand::UpdateAI(), npc_halion_controller::npc_halion_controllerAI::UpdateCorporeality(), npc_cork_gizelton::npc_cork_gizeltonAI::UpdateEscortAI(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::UpdateEscortAI(), npc_tooga::npc_toogaAI::UpdateFollowerAI(), npc_ringo::npc_ringoAI::UpdateFollowerAI(), boss_netherspite::UpdatePortals(), npc_grimstone::npc_grimstoneAI::updateReset(), brann_bronzebeard::brann_bronzebeardAI::WaypointReached(), npc_tirions_gambit_tirion::npc_tirions_gambit_tirionAI::WaypointReached(), npc_scarlet_miner::npc_scarlet_minerAI::WaypointReached(), npc_varian_wrynn::npc_varian_wrynnAI::WaypointReached(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::WaypointReached(), npc_taretha::npc_tarethaAI::WaypointReached(), npc_general_andorov::WaypointReached(), npc_cork_gizelton::npc_cork_gizeltonAI::WaypointReached(), npc_crok_scourgebane::npc_crok_scourgebaneAI::WaypointReached(), npc_emily::npc_emilyAI::WaypointReached(), and npc_crok_scourgebane::npc_crok_scourgebaneAI::WaypointStart().

◆ GetCreatureOrPetOrVehicle()

Creature * ObjectAccessor::GetCreatureOrPetOrVehicle ( WorldObject const &  u,
ObjectGuid const  guid 
)

◆ GetDynamicObject()

DynamicObject * ObjectAccessor::GetDynamicObject ( WorldObject const &  u,
ObjectGuid const  guid 
)
195{
196 return u.GetMap()->GetDynamicObject(guid);
197}

References Map::GetDynamicObject(), and WorldObject::GetMap().

Referenced by GetObjectByTypeMask(), and GetWorldObject().

◆ GetGameObject()

GameObject * ObjectAccessor::GetGameObject ( WorldObject const &  u,
ObjectGuid const  guid 
)
185{
186 return u.GetMap()->GetGameObject(guid);
187}

References Map::GetGameObject(), and WorldObject::GetMap().

Referenced by Unit::_UpdateSpells(), boss_mimiron::boss_mimironAI::CloseDoorAndButton(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), brann_bronzebeard::brann_bronzebeardAI::DoAction(), spell_the_lich_king_quake::FilterTargets(), BfCapturePoint::GetCapturePointGo(), Unit::GetGameObject(), GameObject::GetLinkedTrap(), GetObjectByTypeMask(), boss_thorim::boss_thorimAI::GetThorimObject(), GetWorldObject(), go_celestial_planetarium_access::go_celestial_planetarium_accessAI::GossipHello(), boss_netherspite::HandleDoors(), boss_drakos::boss_drakosAI::JustDied(), boss_thorim_runic_colossus::boss_thorim_runic_colossusAI::JustDied(), boss_thorim_ancient_rune_giant::boss_thorim_ancient_rune_giantAI::JustDied(), boss_xt002::boss_xt002AI::JustDied(), boss_yoggsaron::boss_yoggsaronAI::JustDied(), boss_xt002::boss_xt002AI::JustEngagedWith(), boss_arlokk::boss_arlokkAI::JustReachedHome(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::MovementInform(), go_shadowforge_brazier::OnGossipHello(), BattlefieldWG::ProcessEvent(), Unit::RemoveAllGameObjects(), Unit::RemoveGameObject(), boss_ossirian::Reset(), boss_xt002::boss_xt002AI::Reset(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::Reset(), SmartScript::ResetBaseObject(), brann_bronzebeard::brann_bronzebeardAI::ResetEvent(), boss_mimiron::boss_mimironAI::ResetGameObjects(), boss_svala::boss_svalaAI::SetData(), boss_kaelthas::SetRoomState(), boss_flame_leviathan::boss_flame_leviathanAI::TurnGates(), boss_flame_leviathan::boss_flame_leviathanAI::TurnHealStations(), boss_majordomo::boss_majordomoAI::UpdateAI(), boss_ragnaros::boss_ragnarosAI::UpdateAI(), npc_crystal_spike::UpdateAI(), boss_mimiron::boss_mimironAI::UpdateAI(), boss_yoggsaron_sara::boss_yoggsaron_saraAI::UpdateAI(), boss_svala::boss_svalaAI::UpdateAI(), npc_shadowmoon_tuber_node::npc_shadowmoon_tuber_nodeAI::UpdateAI(), brann_bronzebeard::brann_bronzebeardAI::UpdateEscortAI(), Player::UpdateForQuestWorldObjects(), and brann_bronzebeard::brann_bronzebeardAI::WaypointReached().

◆ GetObjectByTypeMask()

Object * ObjectAccessor::GetObjectByTypeMask ( WorldObject const &  p,
ObjectGuid const  guid,
uint32  typemask 
)
142{
143 switch (guid.GetHigh())
144 {
145 case HighGuid::Item:
146 if (typemask & TYPEMASK_ITEM && p.IsPlayer())
147 return ((Player const&)p).GetItemByGuid(guid);
148 break;
149 case HighGuid::Player:
150 if (typemask & TYPEMASK_PLAYER)
151 return GetPlayer(p, guid);
152 break;
156 if (typemask & TYPEMASK_GAMEOBJECT)
157 return GetGameObject(p, guid);
158 break;
159 case HighGuid::Unit:
161 if (typemask & TYPEMASK_UNIT)
162 return GetCreature(p, guid);
163 break;
164 case HighGuid::Pet:
165 if (typemask & TYPEMASK_UNIT)
166 return GetPet(p, guid);
167 break;
169 if (typemask & TYPEMASK_DYNAMICOBJECT)
170 return GetDynamicObject(p, guid);
171 break;
172 default:
173 return nullptr;
174 }
175
176 return nullptr;
177}
@ TYPEMASK_ITEM
Definition: ObjectGuid.h:47
@ TYPEMASK_DYNAMICOBJECT
Definition: ObjectGuid.h:52
@ TYPEMASK_UNIT
Definition: ObjectGuid.h:49
@ TYPEMASK_GAMEOBJECT
Definition: ObjectGuid.h:51
@ TYPEMASK_PLAYER
Definition: ObjectGuid.h:50
GameObject * GetGameObject(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:184
DynamicObject * GetDynamicObject(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:194
Player * GetPlayer(Map const *, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:220

References DynamicObject, GameObject, GetCreature(), GetDynamicObject(), GetGameObject(), ObjectGuid::GetHigh(), GetPet(), GetPlayer(), Object::IsPlayer(), Item, Mo_Transport, Pet, Player, Transport, TYPEMASK_DYNAMICOBJECT, TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, TYPEMASK_PLAYER, TYPEMASK_UNIT, Unit, and Vehicle.

Referenced by Player::GetViewpoint(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), and Player::SendPreparedQuest().

◆ GetPet()

Pet * ObjectAccessor::GetPet ( WorldObject const &  u,
ObjectGuid const  guid 
)

◆ GetPlayer() [1/2]

Player * ObjectAccessor::GetPlayer ( Map const *  m,
ObjectGuid const  guid 
)
221{
222 if (Player * player = HashMapHolder<Player>::Find(guid))
223 if (player->IsInWorld() && player->GetMap() == m)
224 return player;
225
226 return nullptr;
227}
Definition: ObjectAccessor.h:41

Referenced by npc_enslaved_netherwing_drake::_GetPlayer(), npc_hidden_cultist::npc_hidden_cultistAI::AttackPlayer(), Corpse::BuildValuesUpdate(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), BattlegroundWS::CheckFlagKeeperInArea(), npc_cork_gizelton::npc_cork_gizeltonAI::CheckPlayer(), npc_simon_bunny::npc_simon_bunnyAI::CheckPlayer(), GameObject::CheckRitualList(), npc_battle_at_valhalas::npc_battle_at_valhalasAI::CheckSummons(), GameObject::ClearRitualList(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::CreditPlayer(), npc_eris_hevenfire::npc_eris_hevenfireAI::DoAction(), npc_chained_spirit::DoAction(), npc_ball_of_flame::npc_ball_of_flameAI::DoAction(), npc_anubarak_spike::npc_anubarak_spikeAI::DoAction(), BattlegroundIC::DoAction(), npc_midsummer_ribbon_pole_target::DoCleanupChecks(), npc_midsummer_ribbon_pole_target::DoSpewLavaChecks(), npc_clintar_spirit::npc_clintar_spiritAI::EnterEvadeMode(), npc_overlord_drakuru_betrayal::npc_overlord_drakuru_betrayalAI::EnterEvadeMode(), NPCStaveQuestAI::EvadeOnFeignDeath(), EoEDrakeEnterVehicleEvent::Execute(), VerasEnvenom::Execute(), dragonmaw_race_npc::FinishRace(), instance_stratholme::instance_stratholme_InstanceMapScript::gate_critter_delay(), Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), Unit::GetDiseasesByCaster(), NPCStaveQuestAI::GetGossipPlayer(), FollowerAI::GetLeaderForFollower(), GetObjectByTypeMask(), Puppet::GetOwner(), npc_pet_gen_soul_trader_beacon::GetOwner(), npc_conversing_with_the_depths_trigger::npc_conversing_with_the_depths_triggerAI::GetPlayer(), npc_hourglass_of_eternity::npc_hourglass_of_eternityAI::GetPlayer(), GetPlayer(), npc_escortAI::GetPlayerForEscort(), boss_headless_horseman::GetRhymePlayer(), Player::GetSelectedPlayer(), GetUnit(), npc_wild_wyrm::npc_wild_wyrmAI::GetValidPlayer(), GetWorldObject(), npc_simon_bunny::npc_simon_bunnyAI::GivePunishment(), npc_simon_bunny::npc_simon_bunnyAI::GiveRewardForLevel(), npc_imprisoned_beryl_sorcerer::npc_imprisoned_beryl_sorcererAI::GotStinged(), WorldSession::HandleAcceptGrantLevel(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), WorldSession::HandleEjectPassenger(), WorldSession::HandleEnterPlayerVehicle(), WorldSession::HandleGrantLevel(), WorldSession::HandleInspectHonorStatsOpcode(), WorldSession::HandleInspectOpcode(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleQueryInspectAchievements(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestPushResult(), pyrewood_ambush::pyrewood_ambushAI::JustDied(), npc_zulaman_hostage::npc_zulaman_hostageAI::JustDied(), npc_clintar_spirit::npc_clintar_spiritAI::JustDied(), npc_ice_tomb::npc_ice_tombAI::JustDied(), npc_battle_at_valhalas::npc_battle_at_valhalasAI::JustSummoned(), npc_overlord_drakuru_betrayal::npc_overlord_drakuru_betrayalAI::MoveInLineOfSight(), npc_unworthy_initiate::npc_unworthy_initiateAI::MovementInform(), npc_hive_zara_larva::MovementInform(), npc_stillpine_capitive::npc_stillpine_capitiveAI::MovementInform(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::MovementInform(), npc_korkron_or_wildhammer::MovementInform(), npc_chained_spirit::MovementInform(), dragonmaw_race_npc::MovementInform(), spell_claw_rage_aura::OnPeriodic(), npc_doctor::npc_doctorAI::PatientDied(), BattlegroundWS::PostUpdateImpl(), npc_hidden_cultist::npc_hidden_cultistAI::PreScript(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), SmartScript::ProcessAction(), BattlegroundWS::RemoveAssaultAuras(), npc_finklestein::npc_finklesteinAI::RightClickCauldron(), boss_baroness_anastari::boss_baroness_anastariAI::SchedulePossession(), Map::ScriptsProcess(), npc_anubarak_spike::npc_anubarak_spikeAI::SelectNewTarget(), Unit::SendComboPoints(), npc_q24545_lich_king::npc_q24545_lich_kingAI::SetData(), boss_archimonde::SetGUID(), npc_bloodmage_laurith::npc_bloodmage_laurithAI::SetGUID(), Unit::SetOwnerGUID(), npc_deaths_door_fell_cannon_target_bunny::npc_deaths_door_fell_cannon_target_bunnyAI::SpellHit(), boss_flame_leviathan::boss_flame_leviathanAI::SpellHitTarget(), npc_finklestein::npc_finklesteinAI::StartNextTask(), dragonmaw_race_npc::StartRace(), dragonmaw_race_npc::StartRaceAttacks(), SmartAI::StopFollow(), pyrewood_ambush::pyrewood_ambushAI::SummonCreatureWithRandomTarget(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::SummonNextWave(), GameObject::Update(), Creature::Update(), go_gilded_brazier::go_gilded_brazierAI::UpdateAI(), npc_kernobee::npc_kernobeeAI::UpdateAI(), npc_death_knight_initiate::npc_death_knight_initiateAI::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_crusade_persuaded::npc_crusade_persuadedAI::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_eris_hevenfire::npc_eris_hevenfireAI::UpdateAI(), npc_bh_thalorien_dawnseeker::npc_bh_thalorien_dawnseekerAI::UpdateAI(), npc_grand_magister_rommath::npc_grand_magister_rommathAI::UpdateAI(), pyrewood_ambush::pyrewood_ambushAI::UpdateAI(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::UpdateAI(), npc_forest_frog::UpdateAI(), npc_winterfin_playmate::UpdateAI(), npc_snowfall_glade_playmate::UpdateAI(), npc_the_biggest_tree::UpdateAI(), npc_high_oracle_soo_roo::UpdateAI(), npc_elder_kekek::UpdateAI(), npc_the_etymidian::UpdateAI(), npc_alexstraza_the_lifebinder::UpdateAI(), npc_midsummer_torch_target::UpdateAI(), npc_rizzle_sprysprocket::npc_rizzle_sprysprocketAI::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), npc_rabid_thistle_bear::npc_rabid_thistle_bearAI::UpdateAI(), npc_clintar_spirit::npc_clintar_spiritAI::UpdateAI(), npc_shenthul::npc_shenthulAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_sergeant_bly::npc_sergeant_blyAI::UpdateAI(), npc_anubarak_spike::npc_anubarak_spikeAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), boss_gormok::boss_gormokAI::UpdateAI(), boss_icehowl::boss_icehowlAI::UpdateAI(), boss_twin_valkyrAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), npc_ice_tomb::npc_ice_tombAI::UpdateAI(), boss_maexxna::boss_maexxnaAI::UpdateAI(), npc_scion_of_eternity::npc_scion_of_eternityAI::UpdateAI(), boss_ignis::boss_ignisAI::UpdateAI(), boss_yoggsaron_voice::boss_yoggsaron_voiceAI::UpdateAI(), npc_sinkhole_kill_credit::npc_sinkhole_kill_creditAI::UpdateAI(), npc_beryl_sorcerer::npc_beryl_sorcererAI::UpdateAI(), npc_hidden_cultist::npc_hidden_cultistAI::UpdateAI(), npc_bloodmage_laurith::npc_bloodmage_laurithAI::UpdateAI(), npc_minigob_manabonk::UpdateAI(), npc_q24545_lich_king::npc_q24545_lich_kingAI::UpdateAI(), npc_venture_co_straggler::npc_venture_co_stragglerAI::UpdateAI(), npc_battle_at_valhalas::npc_battle_at_valhalasAI::UpdateAI(), npc_wild_wyrm::npc_wild_wyrmAI::UpdateAI(), npc_overlord_drakuru_betrayal::npc_overlord_drakuru_betrayalAI::UpdateAI(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::UpdateAI(), npc_magister_aledis::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI(), npc_pet_gen_imp_in_a_bottle::UpdateAI(), npc_magwin::npc_magwinAI::UpdateEscortAI(), GameObject::Use(), and npc_cork_gizelton::npc_cork_gizeltonAI::WaypointReached().

◆ GetPlayer() [2/2]

Player * ObjectAccessor::GetPlayer ( WorldObject const &  u,
ObjectGuid const  guid 
)
230{
231 return GetPlayer(u.GetMap(), guid);
232}

References WorldObject::GetMap(), and GetPlayer().

◆ GetPlayers()

◆ GetSpawnedCreatureByDBGUID()

Creature * ObjectAccessor::GetSpawnedCreatureByDBGUID ( uint32  mapId,
uint64  guid 
)

Get a spawned creature by DB guid column. MODULE USAGE ONLY - USE IT FOR CUSTOM CONTENT.

Parameters
uint32mapId The map id where the creature is spawned.
uint64guid Database guid of the creature we are accessing.
287{
288 if (Map* map = sMapMgr->FindBaseMap(mapId))
289 {
290 auto bounds = map->GetCreatureBySpawnIdStore().equal_range(guid);
291
292 if (bounds.first == bounds.second)
293 {
294 return nullptr;
295 }
296
297 if (Creature* creature = bounds.first->second)
298 {
299 return creature;
300 }
301 }
302
303 return nullptr;
304}
#define sMapMgr
Definition: MapMgr.h:219
Definition: Creature.h:43
Definition: Map.h:311

References sMapMgr.

◆ GetSpawnedGameObjectByDBGUID()

GameObject * ObjectAccessor::GetSpawnedGameObjectByDBGUID ( uint32  mapId,
uint64  guid 
)

Get a spawned gameobject by DB guid column. MODULE USAGE ONLY - USE IT FOR CUSTOM CONTENT.

Parameters
uint32mapId The map id where the gameobject is spawned.
uint64guid Database guid of the gameobject we are accessing.
313{
314 if (Map* map = sMapMgr->FindBaseMap(mapId))
315 {
316 auto bounds = map->GetGameObjectBySpawnIdStore().equal_range(guid);
317
318 if (bounds.first == bounds.second)
319 {
320 return nullptr;
321 }
322
323 if (GameObject* go = bounds.first->second)
324 {
325 return go;
326 }
327 }
328
329 return nullptr;
330}
Definition: GameObject.h:120

References sMapMgr.

◆ GetTransport()

Transport * ObjectAccessor::GetTransport ( WorldObject const &  u,
ObjectGuid const  guid 
)
190{
191 return u.GetMap()->GetTransport(guid);
192}

References WorldObject::GetMap(), and Map::GetTransport().

Referenced by ResetEncounterEvent::Execute().

◆ GetUnit()

Unit * ObjectAccessor::GetUnit ( WorldObject const &  u,
ObjectGuid const  guid 
)
200{
201 if (guid.IsPlayer())
202 return GetPlayer(u, guid);
203
204 if (guid.IsPet())
205 return GetPet(u, guid);
206
207 return GetCreature(u, guid);
208}

References GetCreature(), GetPet(), GetPlayer(), ObjectGuid::IsPet(), and ObjectGuid::IsPlayer().

Referenced by Vehicle::AddPassenger(), DynamicObject::BindToCaster(), Spell::cancel(), npc_hallows_end_soh::CastFires(), boss_mor_grayhoof::CastRandomSpell(), SmartAI::CheckConditions(), VehicleAI::CheckConditions(), Aura::Create(), npc_mograine::npc_mograineAI::DamageTaken(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::DamageTaken(), Spell::DelayedChannel(), UnitAI::DoAddAuraToAllHostilePlayers(), Spell::DoAllEffectOnLaunchTarget(), Spell::DoAllEffectOnTarget(), UnitAI::DoCastToAllHostilePlayers(), PointMovementGenerator< T >::DoFinalize(), Spell::EffectJumpDest(), Spell::EffectPersistentAA(), boss_faction_championsAI::EnemiesInRange(), boss_malchezaar::EnfeebleResetHealth(), SmartAI::EnterEvadeMode(), AssistDelayEvent::Execute(), TemporaryThreatModifierEvent::Execute(), RedirectSpellEvent::Execute(), ReflectEvent::Execute(), AuraMunchingQueue::Execute(), spell_eoe_ph3_surge_of_power::FilterTargets(), spell_putricide_mutated_transformation_dmg::FilterTargetsInitial(), boss_supremus::FindHatefulStrikeTarget(), npc_hallows_end_soh::FinishEvent(), Aura::GetCaster(), Unit::GetCharm(), Unit::GetCharmer(), Unit::GetFirstControlled(), Minion::GetOwner(), GameObject::GetOwner(), Unit::GetOwner(), Vehicle::GetPassenger(), FleeingMovementGenerator< T >::GetPoint(), Unit::GetRedirectThreatTarget(), ChatHandler::getSelectedObject(), Player::GetSelectedUnit(), npc_dark_iron_guzzler::GetTarget(), SmartScript::GetTargets(), spell_dk_scourge_strike::HandleAfterHit(), WorldSession::HandleAttackSwingOpcode(), WorldSession::HandleChangeSeatsOnControlledVehicle(), spell_item_gnomish_death_ray::HandleDummy(), spell_rog_killing_spree_aura::HandleEffectPeriodic(), WorldSession::HandleEjectPassenger(), WorldSession::HandleFarSightOpcode(), gobject_commandscript::HandleGameObjectDeleteCommand(), WorldSession::HandleMirrorImageDataRequest(), WorldSession::HandlePetAction(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandlePetSetAction(), spell_item_lil_phylactery::HandleProc(), spell_gen_proc_not_self::HandleProc(), spell_rog_blade_flurry::HandleProc(), spell_kaelthas_nether_beam::HandleScriptEffect(), WorldSession::HandleSetSelectionOpcode(), WorldSession::HandleTextEmoteOpcode(), Spell::HandleThreatSpells(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), Spell::InitExplicitTargets(), Totem::InitStats(), NPCStaveQuestAI::IsFairFight(), npc_tiger_matriarch::npc_tiger_matriarchAI::IsSummonedBy(), boss_sapphiron::boss_sapphironAI::IsValidExplosionTarget(), Vehicle::IsVehicleInUse(), npc_kilrek::JustDied(), npc_demon_chain::JustDied(), npc_zulian_prowler::npc_zulian_prowlerAI::JustDied(), npc_eye_tentacle::JustDied(), npc_claw_tentacle::JustDied(), npc_giant_claw_tentacle::JustDied(), npc_giant_eye_tentacle::JustDied(), npc_snobold_vassal::npc_snobold_vassalAI::JustDied(), boss_maexxna_webwrap::boss_maexxna_webwrapAI::JustDied(), boss_freya_iron_root::boss_freya_iron_rootAI::JustDied(), boss_yoggsaron_constrictor_tentacle::boss_yoggsaron_constrictor_tentacleAI::JustDied(), npc_inner_demon::JustDied(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustDied(), npc_frost_tomb::JustDied(), npc_healing_ward::JustEngagedWith(), npc_obsidian_eradicator::JustEngagedWith(), npc_obsidian_nullifier::JustEngagedWith(), boss_blackheart_the_inciter::JustEngagedWith(), boss_swamplord_muselek::JustEngagedWith(), npc_akilzon_eagle::MovementInform(), npc_pet_mage_mirror_image::MySelectNextTarget(), boss_razorgore::boss_razorgoreAI::OnCharmed(), npc_chesspiece::OnCharmed(), spell_yogg_saron_brain_link_aura::OnPeriodic(), AbominationDespawner::operator()(), Unit::OutDebugInfo(), boss_chromaggus::boss_chromaggusAI::PathEndReached(), SmartScript::ProcessAction(), SmartScript::ProcessEvent(), ThreatMgr::processThreatEvent(), boss_priestess_lackey_commonAI::RecalculateThreat(), boss_faction_championsAI::RecalculateThreat(), Vehicle::RelocatePassengers(), DynamicObject::RemoveCasterViewpoint(), Unit::RemoveCharmedBy(), GameObject::RemoveFromOwner(), npc_pet_dk_ebon_gargoyle::npc_pet_dk_ebon_gargoyleAI::RemoveTargetAura(), npc_zulian_prowler::npc_zulian_prowlerAI::Reset(), boss_faction_championsAI::SelectEnemyCaster(), Spell::SelectImplicitAreaTargets(), npc_scholomance_occultist::npc_scholomance_occultistAI::SelectUnitCasting(), DynamicObject::SetCasterViewpoint(), Unit::SetControlled(), boss_mandokir::boss_mandokirAI::SetGUID(), boss_shade_of_aran::SetGUID(), Unit::SetSpeed(), Spell::Spell(), boss_akilzon::SummonEagles(), Vehicle::TeleportVehicle(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), Pet::Update(), GameObject::Update(), Unit::Update(), TotemAI::UpdateAI(), npc_rocknot::npc_rocknotAI::UpdateAI(), boss_drakkisath::boss_drakkisathAI::UpdateAI(), boss_vaelastrasz::boss_vaelAI::UpdateAI(), npc_image_of_medivh::npc_image_of_medivhAI::UpdateAI(), npc_mograine::npc_mograineAI::UpdateAI(), npc_balance_of_light_and_shadow::npc_balance_of_light_and_shadowAI::UpdateAI(), boss_arlokk::boss_arlokkAI::UpdateAI(), boss_grilek::boss_grilekAI::UpdateAI(), boss_renataki::boss_renatakiAI::UpdateAI(), npc_hallows_end_soh::UpdateAI(), npc_tiger_matriarch::npc_tiger_matriarchAI::UpdateAI(), boss_taldaram::UpdateAI(), npc_toc5_grand_champion_minion::npc_toc5_grand_champion_minionAI::UpdateAI(), boss_grand_champion::boss_grand_championAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), npc_putricide_oozeAI::UpdateAI(), npc_icc_ice_sphere::npc_icc_ice_sphereAI::UpdateAI(), boss_sapphiron::boss_sapphironAI::UpdateAI(), npc_hol_monument::npc_hol_monumentAI::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_wg_siege_machine::npc_wg_siege_machineAI::UpdateAI(), boss_the_lurker_below::UpdateAI(), npc_invis_infernal_caster::npc_invis_infernal_casterAI::UpdateAI(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI(), guard_shattrath_scryer::guard_shattrath_scryerAI::UpdateAI(), guard_shattrath_aldor::guard_shattrath_aldorAI::UpdateAI(), npc_garments_of_quests::npc_garments_of_questsAI::UpdateAI(), npc_spring_rabbit::npc_spring_rabbitAI::UpdateAI(), PetAI::UpdateAI(), boss_maexxna_webwrap::boss_maexxna_webwrapAI::UpdateAI(), npc_frost_tomb::UpdateAI(), Spell::UpdateChanneledTargetList(), HostileReference::updateOnlineStatus(), Spell::UpdatePointers(), boss_netherspite::UpdatePortals(), and Vehicle::~Vehicle().

◆ GetWorldObject()

WorldObject * ObjectAccessor::GetWorldObject ( WorldObject const &  p,
ObjectGuid const  guid 
)
116{
117 switch (guid.GetHigh())
118 {
119 case HighGuid::Player:
120 return GetPlayer(p, guid);
124 return GetGameObject(p, guid);
126 case HighGuid::Unit:
127 return GetCreature(p, guid);
128 case HighGuid::Pet:
129 return GetPet(p, guid);
131 return GetDynamicObject(p, guid);
132 case HighGuid::Corpse:
133 return GetCorpse(p, guid);
134 default:
135 return nullptr;
136 }
137
138 return nullptr;
139}
Corpse * GetCorpse(WorldObject const &u, ObjectGuid const guid)
Definition: ObjectAccessor.cpp:179

References Corpse, DynamicObject, GameObject, GetCorpse(), GetCreature(), GetDynamicObject(), GetGameObject(), ObjectGuid::GetHigh(), GetPet(), GetPlayer(), Mo_Transport, Pet, Player, Transport, Unit, and Vehicle.

Referenced by Unit::_UpdateSpells(), SummonList::DoForAllSummons(), SmartScript::GetLastInvoker(), SpellCastTargets::GetObjectTargetChannel(), TempSummon::GetSummoner(), SmartScript::GetTargets(), AuraEffect::PeriodicTick(), Acore::VisibleNotifier::SendToSelf(), SpellCastTargets::Update(), ObjectGuidVector::UpdateObjects(), and Spell::UpdatePointers().

◆ RemoveObject() [1/2]

template<>
void ObjectAccessor::RemoveObject ( Player player)
341{
344}
void Remove(Player *p)
Definition: ObjectAccessor.cpp:93
static void Remove(T *o)
Definition: ObjectAccessor.cpp:45

References PlayerNameMapHolder::Remove(), and HashMapHolder< T >::Remove().

◆ RemoveObject() [2/2]

template<class T >
void ObjectAccessor::RemoveObject ( T *  object)
96 {
98 }

References HashMapHolder< T >::Remove().

Referenced by Map::DeleteFromWorld().

◆ SaveAllPlayers()

void ObjectAccessor::SaveAllPlayers ( )
263{
264 std::shared_lock<std::shared_mutex> lock(*HashMapHolder<Player>::GetLock());
265
267 for (HashMapHolder<Player>::MapType::const_iterator itr = m.begin(); itr != m.end(); ++itr)
268 itr->second->SaveToDB(false, false);
269}
HashMapHolder< Player >::MapType const & GetPlayers()
Definition: ObjectAccessor.cpp:75
std::unordered_map< ObjectGuid, T * > MapType
Definition: ObjectAccessor.h:47

References GetPlayers().

Referenced by misc_commandscript::HandleSaveAllCommand(), and World::ShutdownServ().

◆ UpdatePlayerNameMapReference()

void ObjectAccessor::UpdatePlayerNameMapReference ( std::string  oldname,
Player player 
)
347{
350}
void RemoveByName(std::string const &name)
Definition: ObjectAccessor.cpp:98

References PlayerNameMapHolder::Insert(), and PlayerNameMapHolder::RemoveByName().

Referenced by character_commandscript::HandleCharacterRenameCommand().