|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <ObjectAccessor.h>
Public Member Functions | |
| void | AddCorpse (Corpse *corpse) |
| void | AddCorpsesToGrid (GridCoord const &gridpair, GridType &grid, Map *map) |
| void | AddUpdateObject (Object *obj) |
| Corpse * | ConvertCorpseForPlayer (uint64 player_guid, bool insignia=false) |
| Corpse * | GetCorpseForPlayerGUID (uint64 guid) |
| void | RemoveCorpse (Corpse *corpse) |
| void | RemoveOldCorpses () |
| void | RemoveUpdateObject (Object *obj) |
| void | UnloadAll () |
| void | Update (uint32 diff) |
Static Public Member Functions | |
| template<class T> | |
| static void | AddObject (T *object) |
| static Pet * | FindPet (uint64) |
| static Player * | FindPlayer (uint64) |
| static Player * | FindPlayerByName (std::string const &name) |
| static Player * | FindPlayerInOrOutOfWorld (uint64) |
| static Unit * | FindUnit (uint64) |
| static AreaTrigger * | GetAreaTrigger (WorldObject const &u, uint64 guid) |
| static Corpse * | GetCorpse (WorldObject const &u, uint64 guid) |
| static Creature * | GetCreature (WorldObject const &u, uint64 guid) |
| static Creature * | GetCreatureOrPetOrVehicle (WorldObject const &, uint64) |
| static HashMapHolder< Creature >::MapType const & | GetCreatures () |
| static DynamicObject * | GetDynamicObject (WorldObject const &u, uint64 guid) |
| static GameObject * | GetGameObject (WorldObject const &u, uint64 guid) |
| static HashMapHolder< GameObject >::MapType const & | GetGameObjects () |
| static Object * | GetObjectByTypeMask (WorldObject const &, uint64, uint32 typemask) |
| template<class T> | |
| static T * | GetObjectInMap (uint64 guid, Map *map, T *) |
| template<class T> | |
| static T * | GetObjectInOrOutOfWorld (uint64 guid, T *) |
| static Unit * | GetObjectInOrOutOfWorld (uint64 guid, Unit *) |
| template<class T> | |
| static T * | GetObjectInWorld (uint32 mapid, float x, float y, uint64 guid, T *) |
| static Player * | GetObjectInWorld (uint64 guid, Player *) |
| template<class T> | |
| static T * | GetObjectInWorld (uint64 guid, T *) |
| static Unit * | GetObjectInWorld (uint64 guid, Unit *) |
| static Pet * | GetPet (WorldObject const &, uint64 guid) |
| static Player * | GetPlayer (WorldObject const &, uint64 guid) |
| static HashMapHolder< Player >::MapType const & | GetPlayers () |
| static Transport * | GetTransport (WorldObject const &u, uint64 guid) |
| static Unit * | GetUnit (WorldObject const &, uint64 guid) |
| static WorldObject * | GetWorldObject (WorldObject const &, uint64) |
| template<class T> | |
| static void | RemoveObject (T *object) |
| static void | SaveAllPlayers () |
Private Types | |
| typedef UNORDERED_MAP< uint64, Corpse * > | Player2CorpsesMapType |
| typedef UNORDERED_MAP< Player *, UpdateData >::value_type | UpdateDataValueType |
Private Member Functions | |
| ObjectAccessor () | |
| ObjectAccessor (const ObjectAccessor &) | |
| ObjectAccessor & | operator= (const ObjectAccessor &) |
| ~ObjectAccessor () | |
Private Attributes | |
| SF_SHARED_MUTEX | i_corpseLock |
| SF_SHARED_MUTEX | i_objectLock |
| std::set< Object * > | i_objects |
| Player2CorpsesMapType | i_player2corpse |
Friends | |
| class | Skyfire::Singleton< ObjectAccessor, Skyfire::NullMutex > |
Definition at line 56 of file ObjectAccessor.h.
|
private |
Definition at line 185 of file ObjectAccessor.h.
|
private |
Definition at line 186 of file ObjectAccessor.h.
|
private |
Definition at line 78 of file ObjectAccessor.cpp.
Referenced by ObjectAccessor(), and operator=().
|
private |
Definition at line 80 of file ObjectAccessor.cpp.
|
private |
References ObjectAccessor().
| void ObjectAccessor::AddCorpse | ( | Corpse * | corpse | ) |
Definition at line 354 of file ObjectAccessor.cpp.
References ASSERT, Skyfire::ComputeCellCoord(), CORPSE_BONES, Skyfire::ObjectAccess::GetCorpseOwnerMappingAddAction(), CoordPair< LIMIT >::GetId(), WorldObject::GetInstanceId(), WorldLocation::GetMapId(), Corpse::GetOwnerGUID(), Position::GetPositionX(), Position::GetPositionY(), Corpse::GetType(), GUID_LOPART(), i_corpseLock, i_player2corpse, Skyfire::ObjectAccess::OBJECT_CORPSE_OWNER_ADD_INSERT, SF_UNIQUE_GUARD, and sObjectMgr.
Definition at line 373 of file ObjectAccessor.cpp.
References Grid< ACTIVE_OBJECT, WORLD_OBJECT_TYPES, GRID_OBJECT_TYPES >::AddWorldObject(), Map::GetInstanceId(), i_corpseLock, i_player2corpse, Map::Instanceable(), and SF_SHARED_GUARD.
|
inlinestatic |
Definition at line 156 of file ObjectAccessor.h.
References HashMapHolder< T >::Insert().
| void ObjectAccessor::AddUpdateObject | ( | Object * | obj | ) |
Definition at line 281 of file ObjectAccessor.cpp.
References Skyfire::ObjectAccess::GetUpdateObjectQueueAddAction(), i_objectLock, i_objects, Skyfire::ObjectAccess::OBJECT_UPDATE_QUEUE_ADD_INSERT, and SF_UNIQUE_GUARD.
Definition at line 397 of file ObjectAccessor.cpp.
References Map::AddToMap(), CharacterDatabase, CONFIG_DEATH_BONES_BG_OR_ARENA, CONFIG_DEATH_BONES_WORLD, CORPSE_END, CORPSE_FIELD_FLAGS, CORPSE_FIELD_ITEMS, CORPSE_FIELD_OWNER, CORPSE_FLAG_BONES, CORPSE_FLAG_UNK2, Corpse::Create(), Corpse::DeleteFromDB(), EQUIPMENT_SLOT_END, WorldObject::FindMap(), GetCorpseForPlayerGUID(), Corpse::GetGridCoord(), Object::GetGUIDLow(), Position::GetOrientation(), WorldObject::GetPhaseMask(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), Object::GetUInt32Value(), Map::IsBattlegroundOrArena(), Map::IsRemovalGrid(), OBJECT_FIELD_TYPE, Position::Relocate(), RemoveCorpse(), Corpse::SetGridCoord(), WorldObject::SetPhaseMask(), Object::SetUInt32Value(), Object::SetUInt64Value(), SF_LOG_DEBUG, and sWorld.
Referenced by RemoveOldCorpses().
Definition at line 235 of file ObjectAccessor.cpp.
References GetObjectInWorld().
Definition at line 240 of file ObjectAccessor.cpp.
References GetObjectInWorld().
Referenced by Battleground::_CheckSafePositions(), Battleground::_GetPlayer(), Battleground::_ProcessJoin(), Battleground::_ProcessRessurect(), Guild::AddMember(), GuildFinderMgr::AddMembershipRequest(), Battleground::AddPlayerToResurrectQueue(), Group::BroadcastGroupUpdate(), ArenaTeam::BroadcastPacket(), OutdoorPvP::BroadcastPacket(), SocialMgr::BroadcastToFriendListers(), Battleground::BroadcastWorker(), BattlegroundMgr::BuildPvpLogDataPacket(), Group::ChangeLeader(), Group::ChangeMembersGroup(), OPvPCapturePointTF::ChangeState(), Spell::CheckCast(), BattlegroundEY::CheckSomeoneJoinedPoint(), BattlegroundEY::CheckSomeoneLeftPoint(), SpellInfo::CheckTarget(), Unit::ClearComboPointHolders(), lfg::LFGMgr::ClearGroupQueueState(), Group::ConvertToGroup(), Group::ConvertToRaid(), Group::CountTheRoll(), AccountMgr::DeleteAccount(), Player::DeleteFromDB(), GuildFinderMgr::DeleteGuild(), Guild::DeleteMember(), BattlegroundIC::DoAction(), Battleground::EndBattleground(), BattlegroundSA::EventPlayerUsedGO(), BGQueueInviteEvent::Execute(), BGQueueRemoveEvent::Execute(), Guild::Member::FindPlayer(), lfg::LFGMgr::FinishDungeon(), ArenaTeam::FinishGame(), Battleground::GetAlivePlayersCountByTeam(), TicketInfo::GetAssignedPlayer(), ArenaTeam::GetAverageMMR(), lfg::LFGMgr::GetCompatibleDungeons(), SocialMgr::GetFriendInfo(), LuaGroup::GetLeader(), LuaGuild::GetLeader(), lfg::LFGMgr::GetLockedDungeons(), Creature::GetLootRecipient(), GameObject::GetLootRecipient(), Item::GetOwner(), TicketInfo::GetPlayer(), ObjectMgr::GetPlayerAccountIdByGUID(), LuaGlobalFunctions::GetPlayerByGUID(), ObjectMgr::GetPlayerByLowGUID(), CalendarMgr::GetPlayerEvents(), ObjectMgr::GetPlayerNameByGUID(), ObjectMgr::GetPlayerTeamByGUID(), ChatHandler::getSelectedPlayer(), Group::GroupLoot(), WorldSession::HandleAddFriendOpcodeCallBack(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), WorldSession::HandleCalendarAddEvent(), WorldSession::HandleCharDeleteOpcode(), WorldSession::HandleChatIgnoredOpcode(), WorldSession::HandleEjectPassenger(), WorldSession::HandleGroupInviteResponseOpcode(), group_commandscript::HandleGroupListCommand(), WorldSession::HandleGroupSetLeaderOpcode(), WorldSession::HandleGroupSetRolesOpcode(), WorldSession::HandleGuildDeclineOpcode(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleInspectHonorStatsOpcode(), WorldSession::HandleInspectOpcode(), Battleground::HandleKillPlayer(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleMailTakeItem(), npc_commandscript::HandleNpcWhisperCommand(), WorldSession::HandleOfferPetitionOpcode(), WorldSession::HandlePetBattleQueueProposeMatchResult(), WorldSession::HandlePetitionDeclineOpcode(), WorldSession::HandlePetitionSignOpcode(), WorldSession::HandleQueryInspectAchievements(), WorldSession::HandleQuestConfirmAccept(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleRaidReadyCheckConfirmOpcode(), WorldSession::HandleReportPvPAFK(), WorldSession::HandleRideVehicleInteract(), WorldSession::HandleSendMail(), lfg::LFGMgr::HasIgnore(), BattlegroundQueue::InviteGroupToBG(), ArenaTeam::IsFighting(), Unit::Kill(), Channel::List(), lfg::LFGMgr::MakeNewGroup(), Group::NeedBeforeGreed(), Loot::NotifyItemRemoved(), Loot::NotifyMoneyRemoved(), Loot::NotifyQuestItemRemoved(), ArenaTeam::NotifyStatsChanged(), Group::OfflineReadyCheck(), lfg::LFGGroupScript::OnRemoveMember(), Skyfire::WorldObjectSpellTargetCheck::operator()(), BattlegroundSA::PostUpdateImpl(), BattlegroundTP::PostUpdateImpl(), BattlegroundVOP::PostUpdateImpl(), BattlegroundWS::PostUpdateImpl(), SmartScript::ProcessAction(), Battleground::RelocateDeadPlayers(), Group::RemoveMember(), GuildFinderMgr::RemoveMembershipRequest(), Player::RemovePetitionsAndSigns(), BattlegroundQueue::RemovePlayer(), Battleground::RemovePlayerAtLeave(), Battleground::RemovePlayerFromResurrectQueue(), Group::ResetMaxEnchantingLevel(), BattlegroundSA::ResetObjs(), ObjectMgr::ReturnOrDeleteOldMails(), Player::Satisfy(), Channel::Say(), Spell::SelectEffectTypeImplicitTargets(), GuildFinderMgr::SendApplicantListUpdate(), AuctionHouseMgr::SendAuctionCancelledToBidderMail(), AuctionHouseMgr::SendAuctionExpiredMail(), BlackMarketMgr::SendAuctionOutbidded(), AuctionHouseMgr::SendAuctionOutbiddedMail(), AuctionHouseMgr::SendAuctionSalePendingMail(), AuctionHouseMgr::SendAuctionSuccessfulMail(), BlackMarketMgr::SendAuctionWon(), AuctionHouseMgr::SendAuctionWonMail(), BattlegroundSA::SendBoatDebugTimerUpdate(), BattlegroundSA::SendBoatTransportUpdates(), CalendarMgr::SendCalendarClearPendingAction(), CalendarMgr::SendCalendarCommandResult(), CalendarMgr::SendCalendarEvent(), CalendarMgr::SendCalendarEventInvite(), CalendarMgr::SendCalendarEventInviteAlert(), CalendarMgr::SendCalendarEventInviteRemoveAlert(), CalendarMgr::SendCalendarEventStatusAlert(), lfg::LFGMgr::SendLfgBootProposalUpdate(), lfg::LFGMgr::SendLfgJoinResult(), lfg::LFGMgr::SendLfgQueueStatus(), lfg::LFGMgr::SendLfgRoleCheckUpdate(), WorldSession::SendLfgRoleCheckUpdate(), lfg::LFGMgr::SendLfgRoleChosen(), lfg::LFGMgr::SendLfgUpdateProposal(), lfg::LFGMgr::SendLfgUpdateStatus(), Group::SendLootAllPassed(), Group::SendLootRoll(), Group::SendLootRollWon(), Group::SendLootStartRoll(), WorldSession::SendNameQueryOpcode(), OPvPCapturePoint::SendObjectiveComplete(), CalendarMgr::SendPacketToAllEventRelatives(), MailDraft::SendReturnToSender(), Channel::SendToAll(), Channel::SendToAllButOne(), Channel::SendToOne(), Skyfire::VisibleNotifier::SendToSelf(), Group::SendUpdateToPlayer(), OPvPCapturePoint::SendUpdateWorldState(), OutdoorPvP::SendUpdateWorldState(), Battleground::SendWarningToAll(), OPvPCapturePointZM_GraveYard::SetBeaconState(), BattlegroundIC::SetupBattleground(), BattlegroundSA::ShouldDelayStartForDebug(), BattlegroundDS::StartingEventOpenDoors(), Battleground::StartTimedAchievement(), OutdoorPvP::TeamCastSpell(), BattlegroundSA::TeleportPlayers(), BattlegroundRV::TogglePillarCollision(), OPvPCapturePoint::Update(), Group::UpdateLooterGuid(), BattlegroundEY::UpdatePointStatuses(), lfg::LFGMgr::UpdateProposal(), GameObject::Use(), WorldObjectChangeAccumulator::Visit(), and Player::Whisper().
|
static |
Definition at line 255 of file ObjectAccessor.cpp.
References HashMapHolder< T >::GetLock(), GetPlayers(), and SF_SHARED_GUARD.
Referenced by LuaGlobalFunctions::GetPlayerByName(), and LuaGroup::IsLeader().
Definition at line 245 of file ObjectAccessor.cpp.
References GetObjectInOrOutOfWorld().
Referenced by Group::Disband(), WorldSession::HandleQuestPushResult(), and Group::SendUpdateToPlayer().
Definition at line 250 of file ObjectAccessor.cpp.
References GetObjectInWorld().
Referenced by Spell::DoAllEffectOnTarget(), and SmartScript::GetLastInvoker().
|
static |
Definition at line 199 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), and GetObjectInMap().
Referenced by GetObjectByTypeMask(), and GetWorldObject().
|
static |
Definition at line 176 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), and GetObjectInMap().
Referenced by Spell::CheckEffectTarget(), Corpse::DeleteBonesFromWorld(), WorldSession::DoLootRelease(), GetWorldObject(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleLootMoneyOpcode(), Map::RemoveAllObjectsInRemoveList(), and Player::SendLoot().
Definition at line 300 of file ObjectAccessor.cpp.
References ASSERT, CORPSE_BONES, i_corpseLock, i_player2corpse, and SF_SHARED_GUARD.
Referenced by ConvertCorpseForPlayer().
|
static |
Definition at line 209 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), and GetObjectInMap().
Referenced by boss_maiev_shadowsong::boss_maievAI::AttackStart(), boss_shade_of_akama::boss_shade_of_akamaAI::AttackStart(), npc_akama_illidan::npc_akama_illidanAI::BeginTalk(), boss_maiev_shadowsong::boss_maievAI::BlinkToPlayer(), boss_twilight_halion::boss_twilight_halionAI::boss_twilight_halionAI(), spell_yogg_saron_in_the_maws_of_the_old_god::spell_yogg_saron_in_the_maws_of_the_old_god_SpellScript::CheckRequirement(), spell_putricide_mutation_init::spell_putricide_mutation_init_SpellScript::CheckRequirementInternal(), boss_prince_keleseth_icc::boss_prince_kelesethAI::CheckRoom(), boss_prince_taldaram_icc::boss_prince_taldaramAI::CheckRoom(), boss_prince_valanar_icc::boss_prince_valanarAI::CheckRoom(), BattlePetMgr::ClearActivePetBattleWorldObjectState(), spell_yogg_saron_induce_madness::spell_yogg_saron_induce_madness_SpellScript::ClearShatteredIllusion(), player_overlord_brandAI::DamageDealt(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DamageTaken(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::DamageTaken(), boss_halion::boss_halionAI::DamageTaken(), boss_maiev_shadowsong::boss_maievAI::DamageTaken(), boss_sara::boss_saraAI::DamageTaken(), boss_twilight_halion::boss_twilight_halionAI::DamageTaken(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::DamageTaken(), npc_ice_block::npc_ice_blockAI::DamageTaken(), npc_iron_construct::npc_iron_constructAI::DamageTaken(), boss_moroes::boss_moroesAI::DeSpawnAdds(), BattlePetMgr::DespawnResolvedWildPetBattleWorldObject(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::DestroyIceWall(), boss_brain_of_yogg_saron::boss_brain_of_yogg_saronAI::DoAction(), boss_krick::boss_krickAI::DoAction(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::DoAction(), npc_argent_captainAI::DoAction(), npc_azure_ring_captain::npc_azure_ring_captainAI::DoAction(), npc_brann_bronzebeard_anraphet::npc_brann_bronzebeard_anraphetAI::DoAction(), npc_crok_scourgebane::npc_crok_scourgebaneAI::DoAction(), npc_halion_controller::npc_halion_controllerAI::DoAction(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::DoAction(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::DoAction(), npc_scarlet_miner_cart::npc_scarlet_miner_cartAI::DoAction(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::DoAction(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::EmpowerCultist(), npc_flame_of_azzinoth::flame_of_azzinothAI::EnrageCheck(), boss_algalon_the_observer::boss_algalon_the_observerAI::EnterCombat(), boss_blood_council_controller::boss_blood_council_controllerAI::EnterCombat(), boss_deathbringer_saurfang::boss_deathbringer_saurfangAI::EnterCombat(), boss_festergut::boss_festergutAI::EnterCombat(), boss_freya::boss_freyaAI::EnterCombat(), boss_halion::boss_halionAI::EnterCombat(), boss_illidari_councilAI::EnterCombat(), boss_prince_keleseth_icc::boss_prince_kelesethAI::EnterCombat(), boss_prince_taldaram_icc::boss_prince_taldaramAI::EnterCombat(), boss_prince_valanar_icc::boss_prince_valanarAI::EnterCombat(), boss_razorscale::boss_razorscaleAI::EnterCombat(), boss_sister_svalna::boss_sister_svalnaAI::EnterCombat(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::EnterCombat(), npc_green_dragon_combat_trigger::npc_green_dragon_combat_triggerAI::EnterCombat(), npc_harbinger_of_flame::npc_harbinger_of_flameAI::EnterCombat(), npc_risen_archmage::npc_risen_archmageAI::EnterCombat(), boss_festergut::boss_festergutAI::EnterEvadeMode(), boss_the_lich_king::boss_the_lich_kingAI::EnterEvadeMode(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::EnterEvadeMode(), npc_argent_captainAI::EnterEvadeMode(), boss_illidan_stormrage::boss_illidan_stormrageAI::EnterPhase(), npc_akama_illidan::npc_akama_illidanAI::EnterPhase(), spell_festergut_blighted_spores::spell_festergut_blighted_spores_AuraScript::ExtraEffect(), GetCreatureOrPetOrVehicle(), boss_krick::boss_krickAI::GetIck(), boss_ick::boss_ickAI::GetKrick(), GetObjectByTypeMask(), boss_tyrannus::boss_tyrannusAI::GetRimefang(), TempSummon::GetSummonerCreatureBase(), GetWorldObject(), spell_power_of_the_twins::spell_power_of_the_twins_AuraScript::HandleEffectApply(), spell_power_of_the_twins::spell_power_of_the_twins_AuraScript::HandleEffectRemove(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleFlightSequence(), spell_assembly_meltdown::spell_assembly_meltdown_SpellScript::HandleInstaKill(), spell_heigan_eruption::spell_heigan_eruption_SpellScript::HandleScript(), spell_occuthar_eyes_of_occuthar_vehicle::spell_occuthar_eyes_of_occuthar_vehicle_SpellScript::HandleScript(), spell_putricide_unbound_plague::spell_putricide_unbound_plague_SpellScript::HandleScript(), spell_the_lich_king_restore_soul::spell_the_lich_king_restore_soul_SpellScript::HandleScript(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), boss_illidan_stormrage::boss_illidan_stormrageAI::HandleTalkSequence(), npc_akama_illidan::npc_akama_illidanAI::HandleTalkSequence(), player_overlord_brandAI::HealDone(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::HealReceived(), npc_alpha_beam::npc_alpha_beamAI::IsSummonedBy(), npc_combustion_consumption::npc_combustion_consumptionAI::IsSummonedBy(), npc_constrictor_tentacle::npc_constrictor_tentacleAI::IsSummonedBy(), npc_eyestalk::npc_eyestalkAI::IsSummonedBy(), npc_flash_freeze::npc_flash_freezeAI::IsSummonedBy(), npc_guardian_of_yogg_saron::npc_guardian_of_yogg_saronAI::IsSummonedBy(), npc_ice_block::npc_ice_blockAI::IsSummonedBy(), npc_living_ember::npc_living_emberAI::IsSummonedBy(), npc_living_inferno::npc_living_infernoAI::IsSummonedBy(), npc_meteor_strike::npc_meteor_strikeAI::IsSummonedBy(), npc_meteor_strike_initial::npc_meteor_strike_initialAI::IsSummonedBy(), npc_onyx_flamecaller::npc_onyx_flamecallerAI::IsSummonedBy(), npc_raging_spirit::npc_raging_spiritAI::IsSummonedBy(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::IsSummonedBy(), npc_suppresser::npc_suppresserAI::IsSummonedBy(), npc_terenas_menethil::npc_terenas_menethilAI::IsSummonedBy(), boss_anraphet::boss_anraphetAI::JustDied(), boss_baltharus_the_warborn::boss_baltharus_the_warbornAI::JustDied(), boss_blindeye_the_seer::boss_blindeye_the_seerAI::JustDied(), boss_blood_council_controller::boss_blood_council_controllerAI::JustDied(), boss_dalronn_the_controller::boss_dalronn_the_controllerAI::JustDied(), boss_elder_brightleaf::boss_elder_brightleafAI::JustDied(), boss_elder_ironbranch::boss_elder_ironbranchAI::JustDied(), boss_elder_stonebark::boss_elder_stonebarkAI::JustDied(), boss_emperor_dagran_thaurissan::boss_draganthaurissanAI::JustDied(), boss_festergut::boss_festergutAI::JustDied(), boss_freya::boss_freyaAI::JustDied(), boss_halion::boss_halionAI::JustDied(), boss_kiggler_the_crazed::boss_kiggler_the_crazedAI::JustDied(), boss_krosh_firehand::boss_krosh_firehandAI::JustDied(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustDied(), boss_olm_the_summoner::boss_olm_the_summonerAI::JustDied(), boss_razorscale::boss_razorscaleAI::JustDied(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::JustDied(), boss_sister_svalna::boss_sister_svalnaAI::JustDied(), boss_skarvald_the_constructor::boss_skarvald_the_constructorAI::JustDied(), boss_steelbreaker::boss_steelbreakerAI::JustDied(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::JustDied(), boss_twilight_halion::boss_twilight_halionAI::JustDied(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::JustDied(), boss_yogg_saron::boss_yogg_saronAI::JustDied(), npc_akama_shade::npc_akamaAI::JustDied(), npc_ancient_water_spirit::npc_ancient_water_spiritAI::JustDied(), npc_ashtongue_channeler::npc_ashtongue_channelerAI::JustDied(), npc_ashtongue_sorcerer::npc_ashtongue_sorcererAI::JustDied(), npc_baltharus_the_warborn_clone::npc_baltharus_the_warborn_cloneAI::JustDied(), npc_drakkari_gutripper::npc_drakkari_gutripperAI::JustDied(), npc_drakkari_scytheclaw::npc_drakkari_scytheclawAI::JustDied(), npc_faerlina_add::npc_faerlina_addAI::JustDied(), npc_feral_defender::npc_feral_defenderAI::JustDied(), npc_frost_tomb::npc_frost_tombAI::JustDied(), npc_hodir_druid::npc_hodir_druidAI::JustDied(), npc_hodir_mage::npc_hodir_mageAI::JustDied(), npc_hodir_priest::npc_hodir_priestAI::JustDied(), npc_hodir_shaman::npc_hodir_shamanAI::JustDied(), npc_influence_tentacle::npc_influence_tentacleAI::JustDied(), npc_iron_sludge::npc_iron_sludgeAI::JustDied(), npc_jedoga_initiand::npc_jedoga_initiandAI::JustDied(), npc_raging_spirit::npc_raging_spiritAI::JustDied(), npc_sanctum_sentry::npc_sanctum_sentryAI::JustDied(), npc_snaplasher::npc_snaplasherAI::JustDied(), npc_spirit_warden::npc_spirit_wardenAI::JustDied(), npc_storm_lasher::npc_storm_lasherAI::JustDied(), boss_blood_council_controller::boss_blood_council_controllerAI::JustReachedHome(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustReachedHome(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustReachedHome(), boss_prince_taldaram_icc::boss_prince_taldaramAI::JustReachedHome(), boss_prince_valanar_icc::boss_prince_valanarAI::JustReachedHome(), npc_halion_controller::npc_halion_controllerAI::JustReachedHome(), boss_sara::boss_saraAI::JustSummoned(), npc_collapsing_star::npc_collapsing_starAI::JustSummoned(), boss_the_lich_king::boss_the_lich_kingAI::MovementInform(), npc_annhylde_the_caller::npc_annhylde_the_callerAI::MovementInform(), npc_corrupted_soul_fragment::npc_corrupted_soul_fragmentAI::MovementInform(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::MovementInform(), npc_muradin_bronzebeard_icc::npc_muradin_bronzebeard_iccAI::MovementInform(), npc_tirion_fordring_tft::npc_tirion_fordringAI::MovementInform(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), npc_ancient_water_spirit::npc_ancient_water_spiritAI::npc_ancient_water_spiritAI(), npc_snaplasher::npc_snaplasherAI::npc_snaplasherAI(), npc_storm_lasher::npc_storm_lasherAI::npc_storm_lasherAI(), spell_blood_queen_frenzied_bloodthirst::spell_blood_queen_frenzied_bloodthirst_AuraScript::OnApply(), spell_tyrannus_mark_of_rimefang::spell_tyrannus_mark_of_rimefang_AuraScript::OnApply(), spell_blood_queen_vampiric_bite::spell_blood_queen_vampiric_bite_SpellScript::OnCast(), achievement_watch_him_die::OnCheck(), go_najentus_spine::OnGossipHello(), go_razorscale_harpoon::OnGossipHello(), prince_taldaram_sphere::OnGossipHello(), spell_blood_queen_frenzied_bloodthirst::spell_blood_queen_frenzied_bloodthirst_AuraScript::OnRemove(), at_alizabal_intro::OnTrigger(), at_baltharus_plateau::OnTrigger(), at_icc_start_frostwing_gauntlet::OnTrigger(), at_sindragosa_lair::OnTrigger(), at_tyrannus_event_starter::OnTrigger(), npc_scarlet_miner_cart::npc_scarlet_miner_cartAI::PassengerBoarded(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::ReanimateCultist(), boss_festergut::boss_festergutAI::RemoveBlight(), boss_illidan_stormrage::boss_illidan_stormrageAI::Reset(), boss_razorscale::boss_razorscaleAI::Reset(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::Reset(), boss_shade_of_akama::boss_shade_of_akamaAI::Reset(), npc_ashtongue_defender::npc_ashtongue_defenderAI::Reset(), npc_ashtongue_elementalist::npc_ashtongue_elementalistAI::Reset(), npc_ashtongue_rogue::npc_ashtongue_rogueAI::Reset(), npc_ashtongue_sorcerer::npc_ashtongue_sorcererAI::Reset(), npc_ashtongue_spiritbinder::npc_ashtongue_spiritbinderAI::Reset(), npc_illidari_council::npc_illidari_councilAI::Reset(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::Reset(), npc_nerubian_burrower::npc_nerubian_burrowerAI::Reset(), npc_swarm_scarab::npc_swarm_scarabAI::Reset(), npc_crok_scourgebane::npc_crok_scourgebaneAI::SetGUID(), boss_shade_of_akama::boss_shade_of_akamaAI::SpellHit(), boss_twilight_halion::boss_twilight_halionAI::SpellHit(), boss_valithria_dreamwalker::boss_valithria_dreamwalkerAI::SpellHit(), npc_akama_shade::npc_akamaAI::SpellHit(), npc_illidari_council::npc_illidari_councilAI::StartEvent(), boss_illidan_stormrage::boss_illidan_stormrageAI::SummonFlamesOfAzzinoth(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), boss_anomalus::boss_anomalusAI::UpdateAI(), boss_auriaya::boss_auriayaAI::UpdateAI(), boss_baltharus_the_warborn::boss_baltharus_the_warbornAI::UpdateAI(), boss_blood_council_controller::boss_blood_council_controllerAI::UpdateAI(), boss_dalronn_the_controller::boss_dalronn_the_controllerAI::UpdateAI(), boss_festergut::boss_festergutAI::UpdateAI(), boss_freya::boss_freyaAI::UpdateAI(), boss_general_zarithrian::boss_general_zarithrianAI::UpdateAI(), boss_krick::boss_krickAI::UpdateAI(), boss_maiev_shadowsong::boss_maievAI::UpdateAI(), boss_razorscale::boss_razorscaleAI::UpdateAI(), boss_runemaster_molgeim::boss_runemaster_molgeimAI::UpdateAI(), boss_sara::boss_saraAI::UpdateAI(), boss_shade_of_akama::boss_shade_of_akamaAI::UpdateAI(), boss_skarvald_the_constructor::boss_skarvald_the_constructorAI::UpdateAI(), boss_the_lich_king::boss_the_lich_kingAI::UpdateAI(), boss_trollgore::boss_trollgoreAI::UpdateAI(), boss_voice_of_yogg_saron::boss_voice_of_yogg_saronAI::UpdateAI(), npc_akama_illidan::npc_akama_illidanAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_annhylde_the_caller::npc_annhylde_the_callerAI::UpdateAI(), npc_ashtongue_channeler::npc_ashtongue_channelerAI::UpdateAI(), npc_ashtongue_sorcerer::npc_ashtongue_sorcererAI::UpdateAI(), npc_blood_queen_lana_thel::npc_blood_queen_lana_thelAI::UpdateAI(), npc_chaotic_rift::npc_chaotic_riftAI::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_expedition_commander::npc_expedition_commanderAI::UpdateAI(), npc_halion_controller::npc_halion_controllerAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_high_overlord_saurfang_icc::npc_high_overlord_saurfangAI::UpdateAI(), npc_highlord_tirion_fordring_lh::npc_highlord_tirion_fordringAI::UpdateAI(), npc_illidari_council::npc_illidari_councilAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), npc_jaina_or_sylvanas_hor::npc_jaina_or_sylvanas_horAI::UpdateAI(), npc_lumbering_abomination::npc_lumbering_abominationAI::UpdateAI(), npc_meteor_strike::npc_meteor_strikeAI::UpdateAI(), npc_orb_carrier::npc_orb_carrierAI::UpdateAI(), npc_parasitic_shadowfiend::npc_parasitic_shadowfiendAI::UpdateAI(), npc_raging_ghoul::npc_raging_ghoulAI::UpdateAI(), npc_risen_witch_doctor::npc_risen_witch_doctorAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_strangulate_vehicle::npc_strangulate_vehicleAI::UpdateAI(), npc_terenas_menethil::npc_terenas_menethilAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_tirion_fordring_tft::npc_tirion_fordringAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_voidtraveler::npc_voidtravelerAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_halion_controller::npc_halion_controllerAI::UpdateCorporeality(), npc_crok_scourgebane::npc_crok_scourgebaneAI::UpdateEscortAI(), npc_crok_scourgebane::npc_crok_scourgebaneAI::WaypointReached(), npc_scarlet_miner::npc_scarlet_minerAI::WaypointReached(), and npc_crok_scourgebane::npc_crok_scourgebaneAI::WaypointStart().
|
static |
Definition at line 224 of file ObjectAccessor.cpp.
References GetCreature(), GetPet(), IS_CRE_OR_VEH_GUID(), and IS_PET_GUID().
Referenced by Unit::GetFirstMinion(), Unit::GetGuardianPet(), Player::GetNextQuest(), Player::GetNPCIfCanInteractWith(), ChatHandler::getSelectedCreature(), WorldSession::HandleBattlePetWildRequest(), WorldSession::HandleDismissCritter(), WorldSession::HandleSpellClick(), Player::PrepareQuestMenu(), WorldSession::SendPetNameQuery(), Player::SendPreparedQuest(), WorldSession::SendQuestgiverStatusMultiple(), and Player::UpdateForQuestWorldObjects().
|
inlinestatic |
Definition at line 145 of file ObjectAccessor.h.
References HashMapHolder< T >::GetContainer().
Referenced by GameEventMgr::RunSmartAIScripts().
|
static |
Definition at line 194 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), and GetObjectInMap().
Referenced by GetObjectByTypeMask(), and GetWorldObject().
|
static |
Definition at line 181 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), and GetObjectInMap().
Referenced by npc_akama_illidan::npc_akama_illidanAI::BeginChannel(), boss_sapphiron::boss_sapphironAI::ClearIceBlock(), boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI::DamageTaken(), boss_halion::boss_halionAI::ExecuteEvent(), spell_anhuur_shield_of_light::spell_anhuur_shield_of_light_SpellScript::FilterTargets(), spell_the_lich_king_quake::spell_the_lich_king_quake_SpellScript::FilterTargets(), GetObjectByTypeMask(), GetWorldObject(), go_celestial_planetarium_access::go_celestial_planetarium_accessAI::GossipHello(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::JustDied(), boss_professor_putricide::boss_professor_putricideAI::MovementInform(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::MovementInform(), boss_razorscale_controller::boss_razorscale_controllerAI::SpellHit(), boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI::UpdateAI(), npc_halion_controller::npc_halion_controllerAI::UpdateAI(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::UpdateAI(), and npc_jaina_or_sylvanas_hor::npc_jaina_or_sylvanas_horAI::UpdateAI().
|
inlinestatic |
Definition at line 151 of file ObjectAccessor.h.
References HashMapHolder< T >::GetContainer().
Referenced by GameEventMgr::RunSmartAIScripts().
|
static |
Definition at line 135 of file ObjectAccessor.cpp.
References GetAreaTrigger(), GetCreature(), GetDynamicObject(), GetGameObject(), GetPet(), GetPlayer(), Object::GetTypeId(), GUID_HIPART(), HIGHGUID_AREATRIGGER, HIGHGUID_CORPSE, HIGHGUID_DYNAMICOBJECT, HIGHGUID_GAMEOBJECT, HIGHGUID_ITEM, HIGHGUID_MO_TRANSPORT, HIGHGUID_PET, HIGHGUID_PLAYER, HIGHGUID_TRANSPORT, HIGHGUID_UNIT, HIGHGUID_VEHICLE, TYPEID_PLAYER, TYPEMASK_AREATRIGGER, TYPEMASK_DYNAMICOBJECT, TYPEMASK_GAMEOBJECT, TYPEMASK_ITEM, TYPEMASK_PLAYER, and TYPEMASK_UNIT.
Referenced by Player::GetViewpoint(), misc_commandscript::HandleGetDistanceCommand(), misc_commandscript::HandleGPSCommand(), WorldSession::HandleQuestgiverAcceptQuestOpcode(), WorldSession::HandleQuestgiverChooseRewardOpcode(), WorldSession::HandleQuestgiverCompleteQuest(), WorldSession::HandleQuestgiverQueryQuestOpcode(), WorldSession::HandleQuestgiverRequestRewardOpcode(), WorldSession::HandleQuestgiverStatusQueryOpcode(), Player::SendPreparedQuest(), PlayerMenu::SendQuestGiverOfferReward(), and PlayerMenu::SendQuestGiverRequestItems().
Definition at line 104 of file ObjectAccessor.h.
References ASSERT, and GetObjectInWorld().
Referenced by GetAreaTrigger(), GetCorpse(), Map::GetCreature(), GetCreature(), Map::GetDynamicObject(), GetDynamicObject(), Map::GetGameObject(), GetGameObject(), GetPet(), GetPlayer(), and GetUnit().
|
inlinestatic |
Definition at line 67 of file ObjectAccessor.h.
References HashMapHolder< T >::Find(), and GetObjectInOrOutOfWorld().
Referenced by FindPlayerInOrOutOfWorld(), GetObjectInOrOutOfWorld(), GetObjectInOrOutOfWorld(), and Aura::UnregisterSingleTarget().
Definition at line 72 of file ObjectAccessor.h.
References GetObjectInOrOutOfWorld(), IS_PET_GUID(), and IS_PLAYER_GUID().
|
static |
Definition at line 82 of file ObjectAccessor.cpp.
References Skyfire::ComputeCellCoord(), HashMapHolder< T >::Find(), CoordPair< LIMIT >::IsCoordValid(), SF_LOG_ERROR, CoordPair< LIMIT >::x_coord, and CoordPair< LIMIT >::y_coord.
Definition at line 111 of file ObjectAccessor.cpp.
References HashMapHolder< T >::Find(), and Object::IsInWorld().
|
inlinestatic |
Definition at line 84 of file ObjectAccessor.h.
References HashMapHolder< T >::Find().
Referenced by GameEventMgr::ChangeEquipOrModel(), PoolGroup< T >::Despawn1Object(), FindPet(), FindPlayer(), FindUnit(), GameEventMgr::GameEventUnspawn(), GetObjectInMap(), GetObjectInWorld(), WorldSession::HandleAcceptGrantLevel(), WorldSession::HandleGrantLevel(), WorldSession::HandleMirrorImageDataRequest(), BattlePetWildZonePool::RemoveReplacement(), PoolGroup< T >::ReSpawn1Object(), Map::ScriptsProcess(), and BattlePetWildZonePool::SpawnReplacement().
Definition at line 92 of file ObjectAccessor.h.
References GetObjectInWorld(), IS_PET_GUID(), and IS_PLAYER_GUID().
|
static |
Definition at line 214 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), and GetObjectInMap().
Referenced by GetCreatureOrPetOrVehicle(), GetObjectByTypeMask(), Player::GetPet(), and GetWorldObject().
|
static |
Definition at line 219 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), and GetObjectInMap().
Referenced by npc_hidden_cultist::npc_hidden_cultistAI::AttackPlayer(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), npc_simon_bunny::npc_simon_bunnyAI::CheckPlayer(), boss_sapphiron::boss_sapphironAI::ClearIceBlock(), npc_ball_of_flame::npc_ball_of_flameAI::DoAction(), npc_hidden_cultist::npc_hidden_cultistAI::DoAction(), npc_ice_tomb::npc_ice_tombAI::DoAction(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::DummyTick(), Unit::GetCharmerOrOwnerPlayerOrPlayerItself(), FollowerAI::GetLeaderForFollower(), GetObjectByTypeMask(), Unit::GetPlayer(), npc_escortAI::GetPlayerForEscort(), Player::GetSelectedPlayer(), GetWorldObject(), npc_simon_bunny::npc_simon_bunnyAI::GivePunishment(), npc_simon_bunny::npc_simon_bunnyAI::GiveRewardForLevel(), npc_imprisoned_beryl_sorcerer::npc_imprisoned_beryl_sorcererAI::GotStinged(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), npc_torloth_the_magnificent::npc_torloth_the_magnificentAI::HandleAnimation(), npc_coldflame::npc_coldflameAI::IsSummonedBy(), npc_apprentice_mirveda::npc_apprentice_mirvedaAI::JustDied(), npc_ice_tomb::npc_ice_tombAI::JustDied(), npc_infused_crystal::npc_infused_crystalAI::JustDied(), npc_iron_roots::npc_iron_rootsAI::JustDied(), npc_manaforge_control_console::npc_manaforge_control_consoleAI::JustDied(), npc_snobold_vassal::npc_snobold_vassalAI::JustDied(), npc_daegarn::npc_daegarnAI::JustSummoned(), npc_muru_portal::npc_muru_portalAI::JustSummoned(), npc_nexus_drake_hatchling::npc_nexus_drake_hatchlingAI::MoveInLineOfSight(), boss_icehowl::boss_icehowlAI::MovementInform(), npc_agitated_earth_spirit::npc_agitated_earth_spiritAI::MovementInform(), npc_hive_zara_larva::npc_hive_zara_larvaAI::MovementInform(), npc_lurking_potion::npc_lurking_potionAI::MovementInform(), npc_ogre_brute::npc_ogre_bruteAI::MovementInform(), npc_unworthy_initiate::npc_unworthy_initiateAI::MovementInform(), npc_valkyr_shadowguard::npc_valkyr_shadowguardAI::MovementInform(), npc_overlord_morghor::npc_overlord_morghorAI::NextStep(), spell_yogg_saron_brain_link::spell_yogg_saron_brain_link_AuraScript::OnRemove(), npc_doctor::npc_doctorAI::PatientDied(), npc_jungle_punch_target::npc_jungle_punch_targetAI::proceedCwEvent(), npc_pet_gen_mojo::npc_pet_gen_mojoAI::ReceiveEmote(), boss_kelthuzad::boss_kelthuzadAI::ResetPlayerScale(), Unit::SetOwnerGUID(), npc_overlord_morghor::npc_overlord_morghorAI::StartEvent(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::SummonNextWave(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), GameObject::Update(), boss_blood_queen_lana_thel::boss_blood_queen_lana_thelAI::UpdateAI(), boss_icehowl::boss_icehowlAI::UpdateAI(), boss_kelthuzad::boss_kelthuzadAI::UpdateAI(), boss_omor_the_unscarred::boss_omor_the_unscarredAI::UpdateAI(), npc_a_special_surprise::npc_a_special_surpriseAI::UpdateAI(), npc_alchemist_finklestein::npc_alchemist_finklesteinAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), npc_apprentice_mirveda::npc_apprentice_mirvedaAI::UpdateAI(), npc_commander_dawnforge::npc_commander_dawnforgeAI::UpdateAI(), npc_crusade_persuaded::npc_crusade_persuadedAI::UpdateAI(), npc_draenei_survivor::npc_draenei_survivorAI::UpdateAI(), npc_dragonmaw_peon::npc_dragonmaw_peonAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), npc_hidden_cultist::npc_hidden_cultistAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_ice_tomb::npc_ice_tombAI::UpdateAI(), npc_infused_crystal::npc_infused_crystalAI::UpdateAI(), npc_manaforge_control_console::npc_manaforge_control_consoleAI::UpdateAI(), npc_mature_netherwing_drake::npc_mature_netherwing_drakeAI::UpdateAI(), npc_nexus_drake_hatchling::npc_nexus_drake_hatchlingAI::UpdateAI(), npc_phase_hunter::npc_phase_hunterAI::UpdateAI(), npc_sergeant_bly::npc_sergeant_blyAI::UpdateAI(), npc_sinkhole_kill_credit::npc_sinkhole_kill_creditAI::UpdateAI(), npc_snobold_vassal::npc_snobold_vassalAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_venture_co_straggler::npc_venture_co_stragglerAI::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), SmartAI::UpdateAI(), and GameObject::Use().
|
inlinestatic |
Definition at line 139 of file ObjectAccessor.h.
References HashMapHolder< T >::GetContainer().
Referenced by FindPlayerByName(), and SaveAllPlayers().
|
static |
Definition at line 186 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), Map::GetTransport(), GUID_HIPART(), and HIGHGUID_MO_TRANSPORT.
|
static |
Definition at line 204 of file ObjectAccessor.cpp.
References WorldObject::GetMap(), and GetObjectInMap().
Referenced by FleeingMovementGenerator< T >::_getPoint(), Player::AddComboPoints(), Vehicle::AddPassenger(), DynamicObject::BindToCaster(), Spell::cancel(), VehicleAI::CheckConditions(), Player::ClearComboPoints(), Aura::Create(), Spell::DelayedChannel(), Spell::DoAllEffectOnLaunchTarget(), Spell::DoAllEffectOnTarget(), boss_flame_leviathan::boss_flame_leviathanAI::DoBatteringRamIfReady(), spell_putricide_mutated_transformation_dmg::spell_putricide_mutated_transformation_dmg_SpellScript::FilterTargetsInitial(), Aura::GetCaster(), Unit::GetCharm(), Unit::GetCharmer(), boss_taldaram::boss_taldaramAI::GetEmbraceTarget(), Unit::GetFirstControlled(), GameObject::GetOwner(), Unit::GetOwner(), Vehicle::GetPassenger(), Unit::GetRedirectThreatTarget(), ChatHandler::getSelectedObject(), Player::GetSelectedUnit(), TempSummon::GetSummoner(), SmartScript::GetTargets(), Unit::GetUnit(), WorldSession::HandleAttackSwingOpcode(), AuraEffect::HandleAuraDummy(), AuraEffect::HandleAuraRetainComboPoints(), WorldSession::HandleEjectPassenger(), gobject_commandscript::HandleGameObjectDeleteCommand(), spell_xt002_heart_overload_periodic::spell_xt002_heart_overload_periodic_AuraScript::HandlePeriodic(), WorldSession::HandlePetActionHelper(), WorldSession::HandlePetCastSpellOpcode(), WorldSession::HandleTextEmoteOpcode(), Spell::HandleThreatSpells(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), Spell::InitExplicitTargets(), npc_flash_freeze::npc_flash_freezeAI::IsSummonedBy(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustDied(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::JustSummoned(), npc_azure_ring_captain::npc_azure_ring_captainAI::MovementInform(), SmartAI::OnCharmed(), AbominationDespawner::operator()(), Unit::OutDebugInfo(), Vehicle::RelocatePassengers(), GameObject::RemoveFromOwner(), spell_halion_twilight_cutter::spell_halion_twilight_cutter_SpellScript::RemoveNotBetween(), Spell::SelectImplicitAreaTargets(), Spell::SelectImplicitChannelTargets(), Player::SendComboPoints(), npc_combustion_consumption::npc_combustion_consumptionAI::SetData(), Unit::SetFeared(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_eachother(), Creature::Update(), boss_blackheart_the_inciter::boss_blackheart_the_inciterAI::UpdateAI(), boss_hodir::boss_hodirAI::UpdateAI(), boss_ignis::boss_ignis_AI::UpdateAI(), boss_murmur::boss_murmurAI::UpdateAI(), npc_dark_rider_of_acherus::npc_dark_rider_of_acherusAI::UpdateAI(), npc_flash_freeze::npc_flash_freezeAI::UpdateAI(), PetAI::UpdateAI(), TotemAI::UpdateAI(), Spell::UpdateChanneledTargetList(), HostileReference::updateOnlineStatus(), and Spell::UpdatePointers().
|
static |
Definition at line 117 of file ObjectAccessor.cpp.
References GetAreaTrigger(), GetCorpse(), GetCreature(), GetDynamicObject(), GetGameObject(), GetPet(), GetPlayer(), GUID_HIPART(), HIGHGUID_AREATRIGGER, HIGHGUID_CORPSE, HIGHGUID_DYNAMICOBJECT, HIGHGUID_GAMEOBJECT, HIGHGUID_MO_TRANSPORT, HIGHGUID_PET, HIGHGUID_PLAYER, HIGHGUID_TRANSPORT, HIGHGUID_UNIT, and HIGHGUID_VEHICLE.
Referenced by ElunaGetWorldObject(), WorldSession::HandleObjectUpdateFailedOpcode(), Spell::SelectImplicitChannelTargets(), SpellCastTargets::Update(), and Spell::UpdatePointers().
|
private |
References ObjectAccessor().
| void ObjectAccessor::RemoveCorpse | ( | Corpse * | corpse | ) |
Definition at line 313 of file ObjectAccessor.cpp.
References ASSERT, Skyfire::ComputeCellCoord(), CORPSE_BONES, WorldObject::DestroyForNearbyPlayers(), WorldObject::FindMap(), Skyfire::ObjectAccess::GetCorpseOwnerMappingRemoveAction(), Object::GetGUIDLow(), CoordPair< LIMIT >::GetId(), WorldLocation::GetMapId(), Corpse::GetOwnerGUID(), Position::GetPositionX(), Position::GetPositionY(), Corpse::GetType(), GUID_LOPART(), i_corpseLock, i_player2corpse, GridObject< T >::IsInGrid(), Skyfire::ObjectAccess::OBJECT_CORPSE_OWNER_REMOVE_MISSING, Corpse::RemoveFromWorld(), WorldObject::ResetMap(), SF_LOG_ERROR, SF_UNIQUE_GUARD, and sObjectMgr.
Referenced by ConvertCorpseForPlayer().
|
inlinestatic |
Definition at line 161 of file ObjectAccessor.h.
References HashMapHolder< T >::Remove().
| void ObjectAccessor::RemoveOldCorpses | ( | ) |
Definition at line 460 of file ObjectAccessor.cpp.
References ConvertCorpseForPlayer(), and i_player2corpse.
| void ObjectAccessor::RemoveUpdateObject | ( | Object * | obj | ) |
Definition at line 290 of file ObjectAccessor.cpp.
References Skyfire::ObjectAccess::GetUpdateObjectQueueRemoveAction(), i_objectLock, i_objects, Skyfire::ObjectAccess::OBJECT_UPDATE_QUEUE_REMOVE_ERASE, and SF_UNIQUE_GUARD.
|
static |
Definition at line 274 of file ObjectAccessor.cpp.
References HashMapHolder< T >::GetLock(), GetPlayers(), and SF_SHARED_GUARD.
Referenced by LuaGlobalFunctions::SaveAllPlayers().
| void ObjectAccessor::UnloadAll | ( | ) |
Definition at line 507 of file ObjectAccessor.cpp.
References Skyfire::ObjectAccess::GetCorpseStorageUnloadAction(), i_corpseLock, i_player2corpse, Skyfire::ObjectAccess::OBJECT_CORPSE_STORAGE_UNLOAD_EMPTY, and SF_UNIQUE_GUARD.
| void ObjectAccessor::Update | ( | uint32 | diff | ) |
Definition at line 476 of file ObjectAccessor.cpp.
References ASSERT, Object::BuildUpdate(), Skyfire::ObjectAccess::CanBuildUpdateForQueuedObject(), ByteBuffer::clear(), Skyfire::ObjectAccess::GetUpdateObjectQueueDrainAction(), i_objectLock, i_objects, Object::IsInWorld(), Skyfire::ObjectAccess::OBJECT_UPDATE_QUEUE_DRAIN_EMPTY, and SF_UNIQUE_GUARD.
|
friend |
Definition at line 53 of file ObjectAccessor.h.
|
private |
Definition at line 192 of file ObjectAccessor.h.
Referenced by AddCorpse(), AddCorpsesToGrid(), GetCorpseForPlayerGUID(), RemoveCorpse(), and UnloadAll().
|
private |
Definition at line 191 of file ObjectAccessor.h.
Referenced by AddUpdateObject(), RemoveUpdateObject(), and Update().
|
private |
Definition at line 188 of file ObjectAccessor.h.
Referenced by AddUpdateObject(), RemoveUpdateObject(), and Update().
|
private |
Definition at line 189 of file ObjectAccessor.h.
Referenced by AddCorpse(), AddCorpsesToGrid(), GetCorpseForPlayerGUID(), RemoveCorpse(), RemoveOldCorpses(), and UnloadAll().