![]() |
TrinityCore
|
#include <Position.h>
Inheritance diagram for Position:Classes | |
| struct | ConstStreamer |
| struct | Streamer |
Public Member Functions | |
| Position () | |
| Position (float x, float y, float z=0.0f, float o=0.0f) | |
| bool | operator== (Position const &a) const |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float o) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetOrientation () const |
| void | GetPosition (float &x, float &y) const |
| void | GetPosition (float &x, float &y, float &z) const |
| void | GetPosition (float &x, float &y, float &z, float &o) const |
| Position | GetPosition () const |
| Streamer< XY > | PositionXYStream () |
| ConstStreamer< XY > | PositionXYStream () const |
| Streamer< XYZ > | PositionXYZStream () |
| ConstStreamer< XYZ > | PositionXYZStream () const |
| Streamer< XYZO > | PositionXYZOStream () |
| ConstStreamer< XYZO > | PositionXYZOStream () const |
| Streamer< PackedXYZ > | PositionPackedXYZStream () |
| ConstStreamer< PackedXYZ > | PositionPackedXYZStream () const |
| bool | IsPositionValid () const |
| float | GetExactDist2dSq (const float x, const float y) const |
| float | GetExactDist2dSq (Position const &pos) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const &pos) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const &pos) const |
| float | GetExactDistSq (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const &pos) const |
| float | GetExactDist (Position const *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| Position | GetPositionWithOffset (Position const &offset) const |
| float | GetAbsoluteAngle (float x, float y) const |
| float | GetAbsoluteAngle (Position const &pos) const |
| float | GetAbsoluteAngle (Position const *pos) const |
| float | ToAbsoluteAngle (float relAngle) const |
| float | ToRelativeAngle (float absAngle) const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const &pos) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const &pos, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const ¢er, float xradius, float yradius, float zradius) const |
| bool | IsWithinDoubleVerticalCylinder (Position const *center, float radius, float height) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (Position const *pos, float objSize, float width) const |
| std::string | ToString () const |
Static Public Member Functions | |
| static float | NormalizeOrientation (float o) |
Public Attributes | |
| float | m_positionX |
| float | m_positionY |
| float | m_positionZ |
Private Attributes | |
| float | m_orientation |
Definition at line 27 of file Position.h.
|
inline |
Definition at line 29 of file Position.h.
Referenced by WorldObject::GetHitSpherePointFor(), and WorldObject::GetRandomPoint().
|
inline |
Definition at line 32 of file Position.h.
|
inline |
Definition at line 128 of file Position.h.
Referenced by npc_argent_captainAI::DoAction(), Spell::EffectDistract(), Spell::EffectTeleUnitsFaceCaster(), spell_varos_energize_core_area_enemy::FilterTargets(), spell_varos_energize_core_area_entry::FilterTargets(), WorldObject::GetContactPoint(), WorldObject::GetHitSpherePointFor(), misc_commandscript::HandleAppearCommand(), boss_felmyst::HandleFlightSequence(), npc_commandscript::HandleNpcAddFormationCommand(), WorldObject::IsInBetween(), npc_coldflame::IsSummonedBy(), npc_meteor_strike_initial::IsSummonedBy(), Unit::JumpTo(), boss_prince_keleseth_icc::JustSummoned(), MotionMaster::MoveCirclePath(), MotionMaster::MoveCloserAndStop(), go_ethereum_prison::go_ethereum_prisonAI::OnGossipHello(), go_ethereum_stasis::go_ethereum_stasisAI::OnGossipHello(), npc_dancing_flames::ReceiveEmote(), spell_hor_evasion::spell_hor_evasion_SpellScript::SetDest(), Unit::SetInFront(), boss_vazruden_the_herald::SpellHit(), Spell::SummonGuardian(), CreatureAI::TriggerAlert(), ChaseMovementGenerator::Update(), SimpleCharmedPlayerAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), npc_frostbrood_skytalon::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_kaelthas::UpdateAI(), CinematicMgr::UpdateCinematicLocation(), and hyjalAI::WaypointReached().
|
inline |
Definition at line 134 of file Position.h.
References GetAbsoluteAngle(), m_positionX, and m_positionY.
Referenced by GetAbsoluteAngle().
|
inline |
Definition at line 135 of file Position.h.
References GetAbsoluteAngle().
Referenced by GetAbsoluteAngle().
|
inline |
Definition at line 121 of file Position.h.
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::AdvanceToState(), Spell::CalculateDelayMomentForDst(), WorldObject::CanDetectStealthOf(), boss_sindragosa::DoAction(), npc_spinestalker::DoAction(), npc_rimefang_icc::DoAction(), Spell::EffectPullTowards(), Spell::EffectPullTowardsDest(), WorldObject::GetDistance(), WorldObject::GetDistance(), WorldObject::GetDistance(), WorldObject::GetHitSpherePointFor(), misc_commandscript::HandleGetDistanceCommand(), GameObject::IsAtInteractDistance(), FormationMovementGenerator::LaunchMovement(), npc_rimefang_icc::UpdateAI(), and npc_strangulate_vehicle::UpdateAI().
|
inline |
Definition at line 122 of file Position.h.
References GetExactDist(), m_positionX, m_positionY, and m_positionZ.
Referenced by GetExactDist().
|
inline |
|
inline |
Definition at line 109 of file Position.h.
Referenced by npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), spell_marrowgar_coldflame_damage::CanBeAppliedOn(), Spell::EffectJump(), Spell::EffectJumpDest(), StartLaunchEvent::Execute(), spell_bronjahm_soulstorm_targeting::FilterTargets(), spell_omor_the_unscarred_orbital_strike_target::FilterTargets(), npc_arthas_teleport_visual::GetAI(), WorldObject::GetDistance2d(), WorldObject::GetDistance2d(), spell_midsummer_juggle_torch::HandleDummy(), spell_buru_egg_explosion::HandleDummy(), misc_commandscript::HandleGetDistanceCommand(), WorldSession::HandleMovementOpcode(), HasInLine(), WorldObject::IsInBetween(), Unit::JumpTo(), MotionMaster::MoveCloserAndStop(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), Trinity::WorldObjectSpellTrajTargetCheck::operator()(), ExactDistanceCheck::operator()(), ExactDistanceCheck::operator()(), Spell::SelectImplicitTrajTargets(), npc_malformed_ooze::SpellHitTarget(), boss_gluth::UpdateAI(), npc_zombie_chow::UpdateAI(), and boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI().
|
inline |
Definition at line 110 of file Position.h.
References GetExactDist2d(), m_positionX, and m_positionY.
Referenced by GetExactDist2d().
|
inline |
Definition at line 111 of file Position.h.
References GetExactDist2d().
Referenced by GetExactDist2d().
|
inline |
Definition at line 100 of file Position.h.
Referenced by boss_thorim::boss_thorimAI::GetTrashSpawnTriggers(), WorldObject::IsInBetween(), ThunderingStormCheck::operator()(), npc_crate_helper::npc_crate_helperAI::ReplaceIfCloser(), boss_thorim::boss_thorimAI::UpdateAI(), Trinity::MessageDistDeliverer::Visit(), Trinity::MessageDistDelivererToHostile::Visit(), Trinity::MessageDistDeliverer::Visit(), Trinity::MessageDistDelivererToHostile::Visit(), Trinity::MessageDistDeliverer::Visit(), and Trinity::MessageDistDelivererToHostile::Visit().
|
inline |
Definition at line 106 of file Position.h.
References GetExactDist2dSq(), m_positionX, and m_positionY.
Referenced by GetExactDist2dSq().
|
inline |
Definition at line 107 of file Position.h.
References GetExactDist2dSq().
Referenced by GetExactDist2dSq().
|
inline |
Definition at line 113 of file Position.h.
Referenced by Battleground::_CheckSafePositions(), Spell::CheckRange(), Player::ContinueTaxiFlight(), BattlegroundSA::GetClosestGraveyard(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), GameObject::IsAtInteractDistance(), SpellTargetSelector::operator()(), PositionOkay(), npc_hadronox_foeAI::UpdateAI(), Trinity::MessageDistDeliverer::Visit(), Trinity::MessageDistDeliverer::Visit(), and Trinity::MessageDistDeliverer::Visit().
|
inline |
Definition at line 118 of file Position.h.
References GetExactDistSq(), m_positionX, m_positionY, and m_positionZ.
Referenced by GetExactDistSq().
|
inline |
Definition at line 119 of file Position.h.
References GetExactDistSq().
Referenced by GetExactDistSq().
|
inline |
Definition at line 82 of file Position.h.
Referenced by Battleground::_CheckSafePositions(), Unit::_ExitVehicle(), Player::_SaveBGData(), Player::ActivateTaxiPathTo(), Battleground::AddCreature(), Battleground::AddObject(), Battleground::AddSpiritGuide(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), Object::BuildMovementUpdate(), Transport::CalculatePassengerOffset(), Transport::CalculatePassengerPosition(), Map::ConvertCorpseToBones(), Creature::Create(), Corpse::Create(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), Transport::CreateNPCPassenger(), npc_argent_valiant::DamageTaken(), boss_deathbringer_saurfang::DoAction(), npc_argent_captainAI::DoAction(), npc_icc_nerubar_broodkeeper::DoAction(), FlightPathMovementGenerator::DoFinalize(), FormationMovementGenerator::DoUpdate(), Spell::EffectCreateTamedPet(), Spell::EffectDuel(), Spell::EffectLeap(), Spell::EffectResurrectPet(), Spell::EffectStuck(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPet(), Spell::EffectTeleportUnits(), Spell::EffectTransmitted(), boss_gothik::EnterEvadeMode(), BattlegroundIC::EventPlayerClickedOnFlag(), WorldObject::GetClosePoint(), GameObjectModelOwnerImpl::GetOrientation(), GetPositionOffsetTo(), WorldObject::GetRandomPoint(), GameObject::GetStationaryO(), go_wg_vehicle_teleporter::GetValidVehicle(), misc_commandscript::HandleAppearCommand(), debug_commandscript::HandleDebugSpawnVehicleCommand(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectAddTempCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoZoneXYCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleHearthAndResurrect(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleAddCommand(), misc_commandscript::HandleUnstuckCommand(), wp_commandscript::HandleWpAddCommand(), debug_commandscript::HandleWPGPSCommand(), wp_commandscript::HandleWpModifyCommand(), npc_crusade_recruit::Initialize(), DistractMovementGenerator::Initialize(), GameObject::IsInRange(), npc_coldflame::IsSummonedBy(), MapManager::IsValidMapCoord(), IsWithinBox(), Unit::JumpTo(), npc_partygoer::JustAppeared(), npc_doomfire_spirit::JustAppeared(), boss_herod::JustDied(), npc_restless_soul::npc_restless_soulAI::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), boss_mandokir::JustEngagedWith(), boss_prince_keleseth_icc::JustSummoned(), Movement::MoveSplineInit::Launch(), Player::LoadFromDB(), ObjectMgr::LoadGameObjects(), Pet::LoadPetFromDB(), MotionMaster::MoveJump(), MotionMaster::MoveJumpTo(), boss_onyxia::MovementInform(), npc_spinestalker::MovementInform(), npc_rimefang_icc::MovementInform(), npc_omen::MovementInform(), npc_jaina_or_sylvanas_escape_hor::npc_jaina_or_sylvanas_escape_horAI::MovementInform(), gunship_npc_AI::MovementInform(), boss_razorscale::MovementInform(), boss_illidan_stormrage::MovementInform(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), MotionMaster::MoveSeekAssistanceDistract(), spell_the_lurker_below_spout_periodic::OnPeriodic(), operator<<(), npc_melee_hover_disk::PassengerBoarded(), BattlegroundIC::PostUpdateImpl(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), BfGraveyard::RelocateDeadPlayers(), Battleground::RelocateDeadPlayers(), RelocateOffset(), Map::RemoveAllPlayers(), boss_prince_taldaram::RemovePrison(), Player::RepopAtGraveyard(), npc_firework::Reset(), npc_depth_charge::Reset(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::Reset(), Player::SavePositionInDB(), Corpse::SaveToDB(), Player::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Map::ScriptsProcess(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitTrajTargets(), PassengerController::SelectSpawnPoint(), WorldSession::SendSpiritResurrect(), BattlegroundMgr::SendToBattleground(), Player::SetBattlegroundEntryPoint(), npc_idol_room_spawner::npc_idol_room_spawnerAI::SetData(), Creature::SetSpellFocus(), HomeMovementGenerator< T >::SetTargetLocation(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_volazj::SpellHitTarget(), boss_urom::StartAttack(), WaypointMovementGenerator< Creature >::StartMove(), Movement::MoveSplineInit::Stop(), WorldObject::SummonCreature(), WorldObject::SummonGameObject(), go_wind_stone::go_wind_stoneAI::SummonNPC(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Player::TeleportTo(), FollowMovementGenerator::Update(), RotateMovementGenerator::Update(), SimpleCharmedPlayerAI::UpdateAI(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), boss_jindo::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), boss_devourer_of_souls::UpdateAI(), npc_coldflame::UpdateAI(), boss_varos::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), go_mammoth_trap::UpdateAI(), npc_minigob_manabonk::UpdateAI(), CinematicMgr::UpdateCinematicLocation(), Unit::UpdatePosition(), Unit::UpdatePosition(), Player::UpdatePosition(), Unit::UpdateSplinePosition(), and GameObject::Use().
|
inline |
Definition at line 87 of file Position.h.
Referenced by Creature::AtEngage(), Creature::ExitVehicle(), WorldObject::GetFirstCollisionPosition(), WorldObject::GetHitSpherePointFor(), WorldObject::GetNearPosition(), WorldObject::GetRandomNearPosition(), GameObject::GetRespawnPosition(), WorldObject::IsWithinLOS(), WorldObject::IsWithinLOSInMap(), and Unit::SendPetDismissSound().
|
inline |
Definition at line 84 of file Position.h.
Referenced by Battleground::_CheckSafePositions(), Unit::_ExitVehicle(), PathGenerator::CalculatePath(), boss_ionar::CallBackSparks(), npc_arthas_stratholme::npc_arthas_stratholmeAI::CanAIAttack(), spell_the_lich_king_valkyr_charge::ChargeDest(), Spell::CheckCast(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), Transport::CreateNPCPassenger(), npc_felblood_kaelthas_phoenix::DamageTaken(), boss_high_inquisitor_whitemane::DamageTaken(), Transport::DelayedTeleportTransport(), npc_icc_nerubar_broodkeeper::DoAction(), npc_kelthuzad_guardian::DoAction(), boss_malygos::DoAction(), RandomMovementGenerator< T >::DoInitialize(), FormationMovementGenerator::DoUpdate(), WaypointMovementGenerator< Creature >::DoUpdate(), Spell::EffectChargeDest(), Spell::EffectKnockBack(), Spell::EffectLeap(), Spell::EffectSummonObject(), Spell::EffectSummonObjectWild(), Spell::EffectTransmitted(), CoolestFriendBaseAI::EnterEvadeMode(), BattlegroundAV::GetClosestGraveyard(), BattlegroundSA::GetClosestGraveyard(), WorldObject::GetRandomPoint(), GameObject::GetRespawnPosition(), Creature::GetRespawnPosition(), spell_apothecary_lingering_fumes::HandleAfterCast(), WorldSession::HandleBattlemasterHelloOpcode(), spell_rotface_unstable_ooze_explosion_init::HandleCast(), debug_commandscript::HandleDebugTransportCommand(), spell_midsummer_juggle_torch::HandleDummy(), boss_felmyst::HandleFlightSequence(), gobject_commandscript::HandleGameObjectMoveCommand(), go_commandscript::HandleGoOffsetCommand(), WorldSession::HandleGossipHelloOpcode(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapPathCommand(), npc_commandscript::HandleNpcAddTempSpawnCommand(), spell_sapphiron_icebolt::HandlePeriodic(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQuestgiverHelloOpcode(), spell_halion_damage_aoe_summon::HandleSummon(), spell_putricide_mutated_transformation::HandleSummon(), spell_freya_iron_roots::spell_freya_iron_roots_SpellScript::HandleSummon(), WorldObject::IsInBetween(), npc_spirit_bomb::IsSummonedBy(), npc_ruby_emerald_amber_drake::IsSummonedBy(), WorldObject::IsWithinLOSInMap(), npc_doomfire_spirit::JustAppeared(), boss_headless_horseman::JustDied(), npc_frost_wyrm::npc_frost_wyrmAI::JustDied(), boss_flame_leviathan_safety_container::boss_flame_leviathan_safety_containerAI::JustDied(), npc_gargoyle::npc_gargoyleAI::JustDied(), npc_arthas_stratholme::npc_arthas_stratholmeAI::JustEngagedWith(), boss_anub_arak::JustEngagedWith(), boss_prince_keleseth_icc::JustSummoned(), boss_prince_valanar_icc::JustSummoned(), FormationMovementGenerator::LaunchMovement(), spell_mimiron_magnetic_core_summon::ModDest(), MotionMaster::MoveKnockbackFrom(), boss_headless_horseman::MovementInform(), npc_gunship_boarding_addAI::MovementInform(), SimpleCharmedPlayerAI::OnCharmed(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::OnCreatureCreate(), instance_onyxias_lair::instance_onyxias_lair_InstanceMapScript::OnGameObjectCreate(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::OnGameObjectCreate(), npc_zulaman_hostage::npc_zulaman_hostageAI::OnGossipSelect(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), npc_wyrmrest_skytalon::PassengerBoarded(), SmartAI::PausePath(), spell_sindragosa_ice_tomb_trap::PeriodicTick(), spell_halion_twilight_phasing::Phase(), SmartScript::ProcessAction(), readCamera(), spell_igb_teleport_to_enemy_ship::RelocateTransportOffset(), npc_valkyr_battle_maiden::npc_valkyr_battle_maidenAI::Reset(), npc_firework::Reset(), npc_kinetic_bomb::Reset(), go_empowering_blood_orb::Reset(), go_vazruden_liquid_fire::Reset(), npc_dancing_flames::Reset(), WorldSession::SendListInventory(), Unit::SendTeleportPacket(), gunship_npc_AI::SetData(), spell_spawn_blood_pool::SetDest(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetGuidData(), Player::SetHomebind(), FleeingMovementGenerator< T >::SetTargetLocation(), BattlefieldWG::SetupBattlefield(), boss_felmyst::SpellHit(), npc_malformed_ooze::SpellHitTarget(), boss_lethon::boss_lethonAI::SpellHitTarget(), boss_victor_nefarius::SummonedCreatureDies(), boss_amanitar::SummonedCreatureDies(), Transport::SummonPassenger(), boss_coren_direbrew::SummonSister(), BossAI::TeleportCheaters(), Player::TeleportTo(), ChaseMovementGenerator::Update(), FollowMovementGenerator::Update(), npc_madrigosa::UpdateAI(), boss_felmyst::UpdateAI(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), npc_gargoyle::npc_gargoyleAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), boss_halion::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_mimirons_inferno::npc_mimirons_infernoAI::UpdateAI(), boss_hodir::UpdateAI(), boss_razorscale::UpdateAI(), go_caribou_trap::UpdateAI(), npc_minigob_manabonk::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), npc_spark_of_ionar::UpdateAI(), npc_millhouse_manastorm::UpdateIntroEvents(), Transport::UpdatePassengerPositions(), CreatureAI::VisualizeBoundary(), and SmartAI::WaypointReached().
|
inline |
|
inline |
Definition at line 49 of file Position.cpp.
References GetOrientation(), GetPositionX(), GetPositionY(), GetPositionZ(), m_positionX, m_positionY, m_positionZ, and SetOrientation().
Referenced by SpellDestination::Relocate().
Definition at line 60 of file Position.cpp.
References RelocateOffset().
Referenced by SmartScript::ProcessAction(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_giant_infernal::npc_giant_infernalAI::UpdateAI(), and npc_annhylde_the_caller::UpdateAI().
|
inline |
Definition at line 79 of file Position.h.
Referenced by Battleground::_CheckSafePositions(), Unit::_ExitVehicle(), GameObject::_IsWithinDist(), Player::_SaveBGData(), Map::ActiveObjectsNearGrid(), Spell::AddCorpseTarget(), Battleground::AddCreature(), ObjectMgr::AddCreatureToGrid(), instance_ulduar::instance_ulduar_InstanceMapScript::AddDoor(), ObjectMgr::AddGameobjectToGrid(), Spell::AddGOTarget(), Battleground::AddObject(), Map::AddPlayerToMap(), Battleground::AddSpiritGuide(), Map::AddToActive(), Map::AddToMap(), WorldObject::AddToWorld(), Spell::AddUnitTarget(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), TotemAI::AttackStart(), CinematicMgr::BeginCinematic(), Object::BuildMovementUpdate(), WorldSession::BuildPartyMemberStatsChangedPacket(), Transport::CalculatePassengerOffset(), Transport::CalculatePassengerPosition(), Player::CheckAreaExplore(), Spell::CheckCast(), Spell::CheckEffectTarget(), Map::CheckGridIntegrity(), boss_general_vezax::boss_general_vezaxAI::CheckPlayersInRange(), Map::ConvertCorpseToBones(), Creature::Create(), Corpse::Create(), GameObject::Create(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), Transport::CreateNPCPassenger(), npc_frost_sphere::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), npc_argent_valiant::DamageTaken(), npc_toc_enh_shaman::DeployTotem(), boss_deathbringer_saurfang::DoAction(), boss_algalon_the_observer::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), npc_ominous_cloud::npc_ominous_cloudAI::DoAction(), Creature::DoFleeToGetAssistance(), tele_commandscript::DoNameTeleport(), FlightPathMovementGenerator::DoReset(), ScriptedAI::DoSpawnCreature(), go_commandscript::DoTeleport(), Map::DynamicObjectRelocation(), Spell::EffectBind(), Spell::EffectChargeDest(), Spell::EffectDuel(), Spell::EffectLeap(), Spell::EffectStuck(), Spell::EffectTeleUnitsFaceCaster(), boss_gothik::EnterEvadeMode(), BattlegroundIC::EventPlayerClickedOnFlag(), Map::GameObjectRelocation(), Map::GetAreaId(), MapManager::GetAreaId(), Battleground::GetClosestGraveyard(), BattlegroundAB::GetClosestGraveyard(), BattlegroundEY::GetClosestGraveyard(), BattlegroundIC::GetClosestGraveyard(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::GetCreatureEntry(), WorldObject::GetDistanceOrder(), WorldObject::GetFloorZ(), Map::GetHeight(), Map::GetHeight(), WorldObject::GetHitSpherePointFor(), WorldObject::GetHitSpherePointFor(), WorldObject::GetNearPoint2D(), GameObjectModelOwnerImpl::GetPosition(), GetPositionOffsetTo(), npc_anubarak_anub_ar_assassin::GetRandomPositionAround(), GetRandomPositionOnCircle(), GetSinCos(), GameObject::GetStationaryX(), go_wg_vehicle_teleporter::GetValidVehicle(), Map::GetZoneAndAreaId(), MapManager::GetZoneAndAreaId(), Map::GetZoneId(), MapManager::GetZoneId(), npc_simon_bunny::npc_simon_bunnyAI::GivePunishment(), Battleground::HandleAreaTrigger(), WorldSession::HandleCharRaceOrFactionChangeCallback(), misc_commandscript::HandleComeToMeCommand(), debug_commandscript::HandleDebugNearGraveyard(), debug_commandscript::HandleDebugSendOpcodeCommand(), spell_midsummer_juggle_torch::HandleDummy(), spell_warhead_detonate::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), boss_felmyst::HandleFlightSequence(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectInfoCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), misc_commandscript::HandleGPSCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListObjectCommand(), list_commandscript::HandleListSpawnPointsCommand(), mmaps_commandscript::HandleMmapLocCommand(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleNearGraveCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), WorldSession::HandleQueryCorpseLocation(), WorldSession::HandleRequestPartyMemberStatsOpcode(), misc_commandscript::HandleRespawnCommand(), spell_bem_wicked_strong_fetish::HandleScript(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleAddCommand(), wp_commandscript::HandleWpAddCommand(), debug_commandscript::HandleWPGPSCommand(), wp_commandscript::HandleWpModifyCommand(), HasInLine(), npc_toc_enh_shaman::Initialize(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::InitializeNovosSummoner(), GameObject::IsAtInteractDistance(), boss_netherspite::boss_netherspiteAI::IsBetween(), Map::IsGridLoaded(), WorldObject::IsInBetween(), GameObject::IsInRange(), WorldObject::IsInRange(), WorldObject::IsInRange2d(), WorldObject::IsInRange3d(), Map::IsRemovalGrid(), npc_coldflame::IsSummonedBy(), npc_frostbrood_skytalon::IsSummonedBy(), MapManager::IsValidMapCoord(), RectangleBoundary::IsWithinBoundaryArea(), CircleBoundary::IsWithinBoundaryArea(), EllipseBoundary::IsWithinBoundaryArea(), TriangleBoundary::IsWithinBoundaryArea(), ParallelogramBoundary::IsWithinBoundaryArea(), IsWithinBox(), Unit::IsWithinCombatRange(), WorldObject::IsWithinLOSInMap(), Unit::IsWithinMeleeRangeAt(), npc_doomfire_spirit::JustAppeared(), npc_restless_soul::npc_restless_soulAI::JustDied(), boss_celebras_the_cursed::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), boss_mandokir::JustEngagedWith(), boss_anubarak_trial::JustReachedHome(), boss_slad_ran::JustSummoned(), boss_prince_keleseth_icc::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_sara::boss_saraAI::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), Movement::MoveSplineInit::Launch(), npc_frogger_trigger_naxx::LaunchSpline(), Corpse::LoadCorpseFromDB(), Player::LoadFromDB(), Creature::LoadFromDB(), Pet::LoadPetFromDB(), LogCommandUsage(), spell_skyguard_flare::ModDestHeight(), MotionMaster::MoveCirclePath(), MotionMaster::MoveCloserAndStop(), MotionMaster::MoveFall(), npc_ashtongue_sorcerer::MoveInLineOfSight(), MotionMaster::MoveJump(), MotionMaster::MoveKnockbackFrom(), MotionMaster::MoveLand(), npc_omen::MovementInform(), MotionMaster::MoveSmoothPath(), MotionMaster::MoveTakeoff(), npc_unleashed_ballAI::MoveToNextPoint(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnCreatureCreate(), go_shallow_grave::go_shallow_graveAI::OnGossipHello(), go_orb_of_the_blue_flight::go_orb_of_the_blue_flightAI::OnGossipHello(), go_ethereum_prison::go_ethereum_prisonAI::OnGossipHello(), go_ethereum_stasis::go_ethereum_stasisAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipSelect(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::OnPlayerEnter(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), at_malfurion_stormrage::OnTrigger(), at_sindragosa_lair::OnTrigger(), at_nethekurse_exit::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), Trinity::WorldObjectSpellAreaTargetCheck::operator()(), operator<<(), operator<<(), operator<<(), operator<<(), npc_melee_hover_disk::PassengerBoarded(), Map::PlayerRelocation(), BattlegroundIC::PostUpdateImpl(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), readCamera(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::ReadSaveDataMore(), npc_dancing_flames::ReceiveEmote(), RelocateOffset(), ObjectMgr::RemoveCreatureFromGrid(), Map::RemoveFromActive(), ObjectMgr::RemoveGameobjectFromGrid(), boss_prince_taldaram::RemovePrison(), Player::RepopAtGraveyard(), npc_firework::Reset(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::Reset(), npc_invis_infernal_caster::npc_invis_infernal_casterAI::Reset(), Player::SavePositionInDB(), Creature::SaveRespawnTime(), GameObject::SaveRespawnTime(), Corpse::SaveToDB(), Player::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Spell::SearchTargets(), PassengerController::SelectSpawnPoint(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiMenu(), Player::SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), BattlegroundMgr::SendToBattleground(), Player::SetBattlegroundEntryPoint(), npc_idol_room_spawner::npc_idol_room_spawnerAI::SetData(), spell_muru_summon_void_sentinel_summoner::SetDest(), spell_vazruden_summon_vazruden::SetDest(), spell_spawn_blood_pool::SetDest(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetGuidData(), Unit::SetHover(), boss_urom::SetPosition(), RandomMovementGenerator< T >::SetRandomLocation(), ConfusedMovementGenerator< T >::SetTargetLocation(), FleeingMovementGenerator< T >::SetTargetLocation(), npc_troll_volunteer::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_volazj::SpellHitTarget(), Movement::MoveSplineInit::Stop(), npc_invis_infernal_caster::npc_invis_infernal_casterAI::SummonInfernal(), go_wind_stone::go_wind_stoneAI::SummonNPC(), Player::SummonPet(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Player::TeleportTo(), Transport::Update(), npc_av_marshal_or_warmaster::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), boss_jindo::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), boss_azuregos::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), npc_coldflame::UpdateAI(), npc_chaotic_rift::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), boss_thorim::boss_thorimAI::UpdateAI(), npc_minigob_manabonk::UpdateAI(), npc_venture_co_straggler::UpdateAI(), npc_crusade_recruit::UpdateAI(), boss_the_black_stalker::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_colonel_jules::npc_colonel_julesAI::UpdateAI(), instance_ulduar::instance_ulduar_InstanceMapScript::UpdateDoorState(), PathGenerator::UpdateFilter(), Unit::UpdateHeight(), Unit::UpdatePosition(), Transport::UpdatePosition(), Unit::UpdatePosition(), Player::UpdatePosition(), WorldObject::UpdatePositionData(), GameObject::Use(), Cell::Visit(), Cell::VisitAllObjects(), Cell::VisitGridObjects(), Map::VisitNearbyCellsOf(), Cell::VisitWorldObjects(), CreatureAI::VisualizeBoundary(), and npc_emily::WaypointReached().
|
inline |
Definition at line 80 of file Position.h.
Referenced by Battleground::_CheckSafePositions(), Unit::_ExitVehicle(), GameObject::_IsWithinDist(), Player::_SaveBGData(), Map::ActiveObjectsNearGrid(), Spell::AddCorpseTarget(), Battleground::AddCreature(), ObjectMgr::AddCreatureToGrid(), ObjectMgr::AddGameobjectToGrid(), Spell::AddGOTarget(), Battleground::AddObject(), Map::AddPlayerToMap(), Battleground::AddSpiritGuide(), Map::AddToActive(), Map::AddToMap(), WorldObject::AddToWorld(), Spell::AddUnitTarget(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), TotemAI::AttackStart(), CinematicMgr::BeginCinematic(), Object::BuildMovementUpdate(), WorldSession::BuildPartyMemberStatsChangedPacket(), Transport::CalculatePassengerOffset(), Transport::CalculatePassengerPosition(), npc_crok_scourgebane::CanAIAttack(), npc_argent_captainAI::CanAIAttack(), Player::CheckAreaExplore(), Spell::CheckCast(), Spell::CheckEffectTarget(), Map::CheckGridIntegrity(), boss_general_vezax::boss_general_vezaxAI::CheckPlayersInRange(), Map::ConvertCorpseToBones(), Creature::Create(), Corpse::Create(), GameObject::Create(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), Transport::CreateNPCPassenger(), npc_frost_sphere::DamageTaken(), boss_viscidus::boss_viscidusAI::DamageTaken(), npc_argent_valiant::DamageTaken(), npc_toc_enh_shaman::DeployTotem(), boss_deathbringer_saurfang::DoAction(), boss_algalon_the_observer::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), npc_ominous_cloud::npc_ominous_cloudAI::DoAction(), Creature::DoFleeToGetAssistance(), tele_commandscript::DoNameTeleport(), FlightPathMovementGenerator::DoReset(), ScriptedAI::DoSpawnCreature(), go_commandscript::DoTeleport(), Map::DynamicObjectRelocation(), Spell::EffectBind(), Spell::EffectChargeDest(), Spell::EffectDuel(), Spell::EffectLeap(), Spell::EffectStuck(), Spell::EffectTeleUnitsFaceCaster(), boss_gothik::EnterEvadeMode(), BattlegroundIC::EventPlayerClickedOnFlag(), spell_freezing_cloud_area_right::FilterTargets(), spell_freezing_cloud_area_left::FilterTargets(), Map::GameObjectRelocation(), Map::GetAreaId(), MapManager::GetAreaId(), Battleground::GetClosestGraveyard(), BattlegroundAB::GetClosestGraveyard(), BattlegroundEY::GetClosestGraveyard(), BattlegroundIC::GetClosestGraveyard(), WorldObject::GetDistanceOrder(), WorldObject::GetFloorZ(), Map::GetHeight(), Map::GetHeight(), WorldObject::GetHitSpherePointFor(), WorldObject::GetHitSpherePointFor(), WorldObject::GetNearPoint2D(), GameObjectModelOwnerImpl::GetPosition(), GetPositionOffsetTo(), npc_anubarak_anub_ar_assassin::GetRandomPositionAround(), GetRandomPositionOnCircle(), GetSinCos(), GameObject::GetStationaryY(), go_wg_vehicle_teleporter::GetValidVehicle(), Map::GetZoneAndAreaId(), MapManager::GetZoneAndAreaId(), Map::GetZoneId(), MapManager::GetZoneId(), npc_simon_bunny::npc_simon_bunnyAI::GivePunishment(), Battleground::HandleAreaTrigger(), WorldSession::HandleCharRaceOrFactionChangeCallback(), misc_commandscript::HandleComeToMeCommand(), debug_commandscript::HandleDebugNearGraveyard(), debug_commandscript::HandleDebugSendOpcodeCommand(), spell_midsummer_juggle_torch::HandleDummy(), spell_warhead_detonate::HandleDummy(), spell_sholazar_shoot_rjr::HandleDummy(), boss_felmyst::HandleFlightSequence(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectInfoCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), misc_commandscript::HandleGPSCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListObjectCommand(), list_commandscript::HandleListSpawnPointsCommand(), mmaps_commandscript::HandleMmapLocCommand(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleNearGraveCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), WorldSession::HandleQueryCorpseLocation(), WorldSession::HandleRequestPartyMemberStatsOpcode(), misc_commandscript::HandleRespawnCommand(), spell_bem_wicked_strong_fetish::HandleScript(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleAddCommand(), wp_commandscript::HandleWpAddCommand(), debug_commandscript::HandleWPGPSCommand(), wp_commandscript::HandleWpModifyCommand(), HasInLine(), npc_toc_enh_shaman::Initialize(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::InitializeNovosSummoner(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::InitializeTrollgoreInvaderSummoner(), GameObject::IsAtInteractDistance(), boss_netherspite::boss_netherspiteAI::IsBetween(), Map::IsGridLoaded(), WorldObject::IsInBetween(), GameObject::IsInRange(), WorldObject::IsInRange(), WorldObject::IsInRange2d(), WorldObject::IsInRange3d(), Map::IsRemovalGrid(), npc_coldflame::IsSummonedBy(), npc_frostbrood_skytalon::IsSummonedBy(), MapManager::IsValidMapCoord(), RectangleBoundary::IsWithinBoundaryArea(), CircleBoundary::IsWithinBoundaryArea(), EllipseBoundary::IsWithinBoundaryArea(), TriangleBoundary::IsWithinBoundaryArea(), ParallelogramBoundary::IsWithinBoundaryArea(), IsWithinBox(), Unit::IsWithinCombatRange(), WorldObject::IsWithinLOSInMap(), Unit::IsWithinMeleeRangeAt(), npc_doomfire_spirit::JustAppeared(), npc_restless_soul::npc_restless_soulAI::JustDied(), boss_celebras_the_cursed::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), boss_mandokir::JustEngagedWith(), boss_slad_ran::JustSummoned(), boss_prince_keleseth_icc::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_sara::boss_saraAI::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), Movement::MoveSplineInit::Launch(), npc_frogger_trigger_naxx::LaunchSpline(), Corpse::LoadCorpseFromDB(), Player::LoadFromDB(), Creature::LoadFromDB(), Pet::LoadPetFromDB(), LogCommandUsage(), spell_skyguard_flare::ModDestHeight(), MotionMaster::MoveCirclePath(), MotionMaster::MoveCloserAndStop(), MotionMaster::MoveFall(), boss_novos::MoveInLineOfSight(), npc_ashtongue_sorcerer::MoveInLineOfSight(), MotionMaster::MoveJump(), MotionMaster::MoveKnockbackFrom(), MotionMaster::MoveLand(), npc_omen::MovementInform(), MotionMaster::MoveSmoothPath(), MotionMaster::MoveTakeoff(), npc_onyx_flamecaller::MoveToGeneral(), npc_unleashed_ballAI::MoveToNextPoint(), go_shallow_grave::go_shallow_graveAI::OnGossipHello(), go_orb_of_the_blue_flight::go_orb_of_the_blue_flightAI::OnGossipHello(), go_ethereum_prison::go_ethereum_prisonAI::OnGossipHello(), go_ethereum_stasis::go_ethereum_stasisAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipSelect(), instance_ruby_sanctum::instance_ruby_sanctum_InstanceMapScript::OnPlayerEnter(), boss_flame_leviathan_overload_device::boss_flame_leviathan_overload_deviceAI::OnSpellClick(), at_malfurion_stormrage::OnTrigger(), at_sindragosa_lair::OnTrigger(), at_nethekurse_exit::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), instance_icecrown_citadel::instance_icecrown_citadel_InstanceMapScript::OnUnitDeath(), Trinity::WorldObjectSpellAreaTargetCheck::operator()(), operator<<(), operator<<(), operator<<(), operator<<(), npc_melee_hover_disk::PassengerBoarded(), Map::PlayerRelocation(), BattlegroundIC::PostUpdateImpl(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), readCamera(), instance_shattered_halls::instance_shattered_halls_InstanceMapScript::ReadSaveDataMore(), npc_dancing_flames::ReceiveEmote(), RelocateOffset(), ObjectMgr::RemoveCreatureFromGrid(), Map::RemoveFromActive(), ObjectMgr::RemoveGameobjectFromGrid(), boss_prince_taldaram::RemovePrison(), Player::RepopAtGraveyard(), npc_zulian_prowler::Reset(), npc_firework::Reset(), npc_creature_generator_akama::Reset(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::Reset(), npc_invis_infernal_caster::npc_invis_infernal_casterAI::Reset(), Player::SavePositionInDB(), Creature::SaveRespawnTime(), GameObject::SaveRespawnTime(), Corpse::SaveToDB(), Player::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Spell::SearchTargets(), PassengerController::SelectSpawnPoint(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiMenu(), Player::SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), BattlegroundMgr::SendToBattleground(), Player::SetBattlegroundEntryPoint(), npc_idol_room_spawner::npc_idol_room_spawnerAI::SetData(), spell_muru_summon_void_sentinel_summoner::SetDest(), spell_vazruden_summon_vazruden::SetDest(), spell_spawn_blood_pool::SetDest(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetGuidData(), Unit::SetHover(), boss_urom::SetPosition(), RandomMovementGenerator< T >::SetRandomLocation(), ConfusedMovementGenerator< T >::SetTargetLocation(), FleeingMovementGenerator< T >::SetTargetLocation(), npc_troll_volunteer::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_volazj::SpellHitTarget(), Movement::MoveSplineInit::Stop(), npc_invis_infernal_caster::npc_invis_infernal_casterAI::SummonInfernal(), go_wind_stone::go_wind_stoneAI::SummonNPC(), Player::SummonPet(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Player::TeleportTo(), Transport::Update(), npc_av_marshal_or_warmaster::UpdateAI(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), npc_highborne_lamenter::npc_highborne_lamenterAI::UpdateAI(), boss_jindo::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), boss_azuregos::UpdateAI(), hyjalAI::UpdateAI(), boss_onyxia::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), npc_quel_delar_sword::npc_quel_delar_swordAI::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), npc_coldflame::UpdateAI(), npc_chaotic_rift::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_minigob_manabonk::UpdateAI(), npc_venture_co_straggler::UpdateAI(), npc_crusade_recruit::UpdateAI(), boss_the_black_stalker::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_colonel_jules::npc_colonel_julesAI::UpdateAI(), PathGenerator::UpdateFilter(), Unit::UpdateHeight(), Unit::UpdatePosition(), Transport::UpdatePosition(), Unit::UpdatePosition(), Player::UpdatePosition(), WorldObject::UpdatePositionData(), GameObject::Use(), Cell::Visit(), Cell::VisitAllObjects(), Cell::VisitGridObjects(), Map::VisitNearbyCellsOf(), Cell::VisitWorldObjects(), CreatureAI::VisualizeBoundary(), and npc_emily::WaypointReached().
|
inline |
Definition at line 81 of file Position.h.
Referenced by Battleground::_CheckSafePositions(), Unit::_ExitVehicle(), GameObject::_IsWithinDist(), Player::_SaveBGData(), Spell::AddCorpseTarget(), Battleground::AddCreature(), Spell::AddGOTarget(), Battleground::AddObject(), Battleground::AddSpiritGuide(), WorldObject::AddToWorld(), Spell::AddUnitTarget(), npc_announcer_toc5::npc_announcer_toc5AI::AggroAllPlayers(), boss_urom::AttackStart(), Object::BuildMovementUpdate(), Transport::CalculatePassengerOffset(), Transport::CalculatePassengerPosition(), Player::CheckAreaExplore(), Spell::CheckCast(), Spell::CheckEffectTarget(), boss_general_vezax::boss_general_vezaxAI::CheckPlayersInRange(), Map::ConvertCorpseToBones(), Creature::Create(), Corpse::Create(), GameObject::Create(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), Transport::CreateNPCPassenger(), npc_frost_sphere::DamageTaken(), npc_argent_valiant::DamageTaken(), npc_kinetic_bomb::DoAction(), boss_deathbringer_saurfang::DoAction(), boss_malygos::DoAction(), boss_algalon_the_observer::DoAction(), boss_flame_leviathan::boss_flame_leviathanAI::DoAction(), npc_ominous_cloud::npc_ominous_cloudAI::DoAction(), Creature::DoFleeToGetAssistance(), FlightPathMovementGenerator::DoReset(), ScriptedAI::DoSpawnCreature(), Spell::EffectBind(), Spell::EffectCharge(), Spell::EffectChargeDest(), Spell::EffectDuel(), Spell::EffectLeap(), Spell::EffectLeapBack(), Spell::EffectPullTowards(), Spell::EffectPullTowardsDest(), Spell::EffectStuck(), Spell::EffectTeleUnitsFaceCaster(), boss_gothik::EnterEvadeMode(), BattlegroundIC::EventPlayerClickedOnFlag(), Map::GetAreaId(), MapManager::GetAreaId(), Battleground::GetClosestGraveyard(), BattlegroundEY::GetClosestGraveyard(), WorldObject::GetDistanceOrder(), WorldObject::GetDistanceZ(), WorldObject::GetFloorZ(), Map::GetHeight(), Map::GetHeight(), WorldObject::GetHitSpherePointFor(), WorldObject::GetHitSpherePointFor(), WorldObject::GetNearPoint(), GameObjectModelOwnerImpl::GetPosition(), GetPositionOffsetTo(), npc_anubarak_anub_ar_assassin::GetRandomPositionAround(), GetRandomPositionOnCircle(), GameObject::GetStationaryZ(), go_wg_vehicle_teleporter::GetValidVehicle(), Map::GetZoneAndAreaId(), MapManager::GetZoneAndAreaId(), Map::GetZoneId(), MapManager::GetZoneId(), npc_simon_bunny::npc_simon_bunnyAI::GivePunishment(), spell_item_nitro_boosts_backfire::HandleApply(), Battleground::HandleAreaTrigger(), AuraEffect::HandleAuraFeatherFall(), WorldSession::HandleCharRaceOrFactionChangeCallback(), misc_commandscript::HandleComeToMeCommand(), debug_commandscript::HandleDebugNearGraveyard(), debug_commandscript::HandleDebugSendOpcodeCommand(), spell_sholazar_shoot_rjr::HandleDummy(), spell_z_check::HandleEffectApply(), Player::HandleFall(), boss_felmyst::HandleFlightSequence(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectInfoCommand(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), misc_commandscript::HandleGPSCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListObjectCommand(), list_commandscript::HandleListSpawnPointsCommand(), WorldSession::HandleMovementOpcode(), WorldSession::HandleMoveWorldportAck(), misc_commandscript::HandleNearGraveCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), spell_hadronox_periodic_summon_template_AuraScript::HandlePeriodic(), spell_item_nitro_boosts_backfire::HandlePeriodicDummy(), WorldSession::HandleQueryCorpseLocation(), spell_bem_wicked_strong_fetish::HandleScript(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleAddCommand(), wp_commandscript::HandleWpAddCommand(), debug_commandscript::HandleWPGPSCommand(), wp_commandscript::HandleWpModifyCommand(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::InitializeNovosSummoner(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::InitializeTrollgoreInvaderSummoner(), GameObject::IsAtInteractDistance(), GameObject::IsInRange(), WorldObject::IsInRange(), WorldObject::IsInRange3d(), PathGenerator::IsInvalidDestinationZ(), npc_coldflame::IsSummonedBy(), npc_frostbrood_skytalon::IsSummonedBy(), MapManager::IsValidMapCoord(), ZRangeBoundary::IsWithinBoundaryArea(), IsWithinBox(), Unit::IsWithinCombatRange(), IsWithinDoubleVerticalCylinder(), WorldObject::IsWithinLOSInMap(), Unit::IsWithinMeleeRangeAt(), npc_doomfire_spirit::JustAppeared(), npc_restless_soul::npc_restless_soulAI::JustDied(), boss_celebras_the_cursed::JustDied(), boss_mimiron::boss_mimironAI::JustDied(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), boss_mandokir::JustEngagedWith(), boss_slad_ran::JustSummoned(), boss_prince_keleseth_icc::JustSummoned(), boss_thorim::boss_thorimAI::JustSummoned(), boss_sara::boss_saraAI::JustSummoned(), npc_lady_sylvanas_windrunner::npc_lady_sylvanas_windrunnerAI::JustSummoned(), npc_maghar_captive::npc_maghar_captiveAI::JustSummoned(), npc_kurenai_captive::npc_kurenai_captiveAI::JustSummoned(), Movement::MoveSplineInit::Launch(), npc_frogger_trigger_naxx::LaunchSpline(), Player::LoadFromDB(), Creature::LoadFromDB(), LogCommandUsage(), MotionMaster::MoveCirclePath(), MotionMaster::MoveCloserAndStop(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), MotionMaster::MoveFall(), npc_ashtongue_sorcerer::MoveInLineOfSight(), MotionMaster::MoveJump(), MotionMaster::MoveJumpTo(), MotionMaster::MoveKnockbackFrom(), MotionMaster::MoveLand(), npc_omen::MovementInform(), MotionMaster::MoveSmoothPath(), MotionMaster::MoveTakeoff(), npc_unleashed_ballAI::MoveToNextPoint(), go_shallow_grave::go_shallow_graveAI::OnGossipHello(), go_orb_of_the_blue_flight::go_orb_of_the_blue_flightAI::OnGossipHello(), go_ethereum_prison::go_ethereum_prisonAI::OnGossipHello(), go_ethereum_stasis::go_ethereum_stasisAI::OnGossipHello(), go_veil_skith_cage::go_veil_skith_cageAI::OnGossipHello(), go_apexis_relic::go_apexis_relicAI::OnGossipSelect(), spell_kaelthas_gravity_lapse_periodic::OnPeriodic(), at_malfurion_stormrage::OnTrigger(), AreaTrigger_at_scent_larkorwi::OnTrigger(), RotfaceHeightCheck::operator()(), HeightPositionCheck::operator()(), Trinity::WorldObjectSpellAreaTargetCheck::operator()(), Trinity::HeightDifferenceCheck::operator()(), operator<<(), operator<<(), operator<<(), npc_melee_hover_disk::PassengerBoarded(), BattlegroundIC::PostUpdateImpl(), npc_jungle_punch_target::proceedCwEvent(), SmartScript::ProcessAction(), npc_dancing_flames::ReceiveEmote(), RelocateOffset(), Player::RepopAtGraveyard(), boss_mandokir::Reset(), npc_firework::Reset(), npc_oscillating_frequency_scanner_master_bunny::npc_oscillating_frequency_scanner_master_bunnyAI::Reset(), npc_invis_infernal_caster::npc_invis_infernal_casterAI::Reset(), Player::SavePositionInDB(), Corpse::SaveToDB(), Player::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), PassengerController::SelectSpawnPoint(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiMenu(), Player::SendTaxiNodeStatusMultiple(), WorldSession::SendTaxiStatus(), BattlegroundMgr::SendToBattleground(), Player::SetBattlegroundEntryPoint(), Unit::SetCanFly(), npc_idol_room_spawner::npc_idol_room_spawnerAI::SetData(), spell_muru_summon_void_sentinel_summoner::SetDest(), spell_illidan_cage_teleport::SetDest(), spell_vazruden_summon_vazruden::SetDest(), spell_spawn_blood_pool::SetDest(), instance_culling_of_stratholme::instance_culling_of_stratholme_InstanceMapScript::SetGuidData(), Unit::SetHover(), RandomMovementGenerator< T >::SetRandomLocation(), ConfusedMovementGenerator< T >::SetTargetLocation(), FleeingMovementGenerator< T >::SetTargetLocation(), npc_troll_volunteer::SpellHit(), npc_aged_dying_ancient_kodo::npc_aged_dying_ancient_kodoAI::SpellHit(), npc_wounded_skirmisher::SpellHit(), npc_pet_dk_ebon_gargoyle::SpellHit(), boss_volazj::SpellHitTarget(), boss_urom::StartAttack(), Movement::MoveSplineInit::Stop(), go_wind_stone::go_wind_stoneAI::SummonNPC(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Player::TeleportTo(), boss_malchezaar::boss_malchezaarAI::UpdateAI(), boss_priestess_delrissa::UpdateAI(), npc_unworthy_initiate::npc_unworthy_initiateAI::UpdateAI(), npc_highlord_darion_mograine::npc_highlord_darion_mograineAI::UpdateAI(), boss_arlokk::UpdateAI(), boss_jindo::UpdateAI(), npc_winterfin_playmate::npc_winterfin_playmateAI::UpdateAI(), npc_snowfall_glade_playmate::npc_snowfall_glade_playmateAI::UpdateAI(), npc_the_biggest_tree::npc_the_biggest_treeAI::UpdateAI(), npc_high_oracle_soo_roo::npc_high_oracle_soo_rooAI::UpdateAI(), npc_elder_kekek::npc_elder_kekekAI::UpdateAI(), npc_the_etymidian::npc_the_etymidianAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), boss_azuregos::UpdateAI(), boss_onyxia::UpdateAI(), boss_cthun::cthunAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), boss_viscidus::boss_viscidusAI::UpdateAI(), npc_prince_taldaram_flame_sphere::UpdateAI(), npc_hadronox_foeAI::UpdateAI(), npc_high_overlord_saurfang_icc::UpdateAI(), npc_muradin_bronzebeard_icc::UpdateAI(), npc_coldflame::UpdateAI(), npc_chaotic_rift::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), npc_minigob_manabonk::UpdateAI(), npc_venture_co_straggler::UpdateAI(), npc_frostbrood_skytalon::UpdateAI(), npc_crusade_recruit::UpdateAI(), boss_illidan_stormrage::UpdateAI(), boss_wrath_scryer_soccothrates::UpdateAI(), npc_nether_drake::npc_nether_drakeAI::UpdateAI(), npc_colonel_jules::npc_colonel_julesAI::UpdateAI(), Player::UpdateFallInformationIfNeed(), PathGenerator::UpdateFilter(), Creature::UpdateMovementFlags(), Transport::UpdatePassengerPositions(), Unit::UpdatePosition(), Unit::UpdatePosition(), Player::UpdatePosition(), WorldObject::UpdatePositionData(), GameObject::Use(), CreatureAI::VisualizeBoundary(), hyjalAI::WaypointReached(), and npc_emily::WaypointReached().
|
inline |
Definition at line 139 of file Position.h.
Referenced by boss_high_inquisitor_whitemane::DamageTaken(), Spell::EffectCharge(), Spell::EffectChargeDest(), Spell::EffectPullTowards(), HasInArc(), HasInLine(), Unit::JumpTo(), FormationMovementGenerator::LaunchMovement(), MotionMaster::MoveKnockbackFrom(), PositionOkay(), Spell::SelectImplicitTrajTargets(), and FollowMovementGenerator::Update().
|
inline |
Definition at line 140 of file Position.h.
|
inline |
Definition at line 141 of file Position.h.
| void Position::GetSinCos | ( | float | x, |
| float | y, | ||
| float & | vsin, | ||
| float & | vcos | ||
| ) | const |
Definition at line 67 of file Position.cpp.
References GetPositionX(), GetPositionY(), M_PI, and rand_norm().
Referenced by Unit::KnockbackFrom().
| bool Position::HasInArc | ( | float | arcangle, |
| Position const * | pos, | ||
| float | border = 2.0f |
||
| ) | const |
Definition at line 120 of file Position.cpp.
References GetRelativeAngle(), M_PI, and NormalizeOrientation().
Referenced by WorldObject::CanDetectStealthOf(), Spell::CheckRange(), Unit::DealMeleeDamage(), boss_nightbane::boss_nightbaneAI::ExecuteEvent(), HasInLine(), WorldObject::isInBack(), Unit::isInBackInMap(), WorldObject::isInFront(), Unit::isInFrontInMap(), WorldObject::MagicSpellHitResult(), Unit::MeleeSpellHitResult(), Unit::RollMeleeOutcomeAgainst(), Spell::SearchChainTargets(), and Player::Update().
| bool Position::HasInLine | ( | Position const * | pos, |
| float | objSize, | ||
| float | width | ||
| ) | const |
Definition at line 139 of file Position.cpp.
References GetExactDist2d(), GetPositionX(), GetPositionY(), GetRelativeAngle(), HasInArc(), and M_PI.
Referenced by Trinity::WorldObjectSpellConeTargetCheck::operator()(), and Trinity::WorldObjectSpellTrajTargetCheck::operator()().
|
inline |
Definition at line 148 of file Position.h.
Referenced by WorldObject::_IsWithinDist(), Creature::CanCreatureAttack(), list_commandscript::HandleListRespawnsCommand(), WorldObject::IsWithinDist3d(), WorldObject::IsWithinDist3d(), and ChaseMovementGenerator::Update().
|
inline |
Definition at line 149 of file Position.h.
|
inline |
Definition at line 150 of file Position.h.
|
inline |
Definition at line 145 of file Position.h.
Referenced by WorldObject::_IsWithinDist(), Creature::CanCreatureAttack(), list_commandscript::HandleListSpawnPointsCommand(), WorldObject::IsWithinDist2d(), WorldObject::IsWithinDist2d(), IsWithinDoubleVerticalCylinder(), and spell_hor_evasion::spell_hor_evasion_SpellScript::SetDest().
|
inline |
Definition at line 146 of file Position.h.
| bool Position::IsPositionValid | ( | ) | const |
Definition at line 44 of file Position.cpp.
References Trinity::IsValidMapCoord(), m_orientation, m_positionX, m_positionY, and m_positionZ.
Referenced by CinematicMgr::BeginCinematic(), Creature::Create(), Corpse::Create(), Transport::Create(), GameObject::Create(), Pet::CreateBaseAtCreature(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), Transport::CreateNPCPassenger(), Corpse::LoadCorpseFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), Player::SummonPet(), CinematicMgr::UpdateCinematicLocation(), WorldSession::ValidateMovementInfo(), Trinity::DelayedUnitRelocation::Visit(), and Map::VisitNearbyCellsOf().
| bool Position::IsWithinBox | ( | Position const & | center, |
| float | xradius, | ||
| float | yradius, | ||
| float | zradius | ||
| ) | const |
Definition at line 86 of file Position.cpp.
References GetOrientation(), GetPositionX(), GetPositionY(), GetPositionZ(), and M_PI.
Referenced by Player::IsInAreaTriggerRadius().
| bool Position::IsWithinDoubleVerticalCylinder | ( | Position const * | center, |
| float | radius, | ||
| float | height | ||
| ) | const |
Definition at line 114 of file Position.cpp.
References GetPositionZ(), and IsInDist2d().
Referenced by Trinity::AnyFriendlyUnitInObjectRangeCheck::operator()(), Trinity::AnyGroupedUnitInObjectRangeCheck::operator()(), and Trinity::AnyAoETargetUnitInObjectRangeCheck::operator()().
|
static |
Definition at line 156 of file Position.cpp.
References M_PI.
Referenced by TransportBase::CalculatePassengerOffset(), TransportBase::CalculatePassengerPosition(), TransportMgr::GeneratePath(), HasInArc(), npc_meteor_strike_initial::IsSummonedBy(), npc_doomfire_spirit::JustAppeared(), ChaseAngle::LowerBound(), FollowMovementGenerator::Update(), boss_varos::UpdateAI(), and ChaseAngle::UpperBound().
| bool Position::operator== | ( | Position const & | a | ) | const |
Definition at line 28 of file Position.cpp.
References m_orientation, m_positionX, m_positionY, and m_positionZ.
|
inline |
Definition at line 95 of file Position.h.
|
inline |
Definition at line 96 of file Position.h.
|
inline |
Definition at line 89 of file Position.h.
|
inline |
Definition at line 90 of file Position.h.
|
inline |
Definition at line 93 of file Position.h.
Referenced by operator<<(), operator>>(), and WorldPackets::Movement::NewWorld::Write().
|
inline |
Definition at line 94 of file Position.h.
|
inline |
Definition at line 91 of file Position.h.
Referenced by SpellCastTargets::Read().
|
inline |
Definition at line 92 of file Position.h.
|
inline |
Definition at line 66 of file Position.h.
Referenced by Unit::_ExitVehicle(), ObjectMgr::AddCreatureData(), ObjectMgr::AddGameObjectData(), boss_lord_marrowgar::boss_lord_marrowgar(), Map::ConvertCorpseToBones(), Creature::Create(), Corpse::Create(), Transport::Create(), GameObject::Create(), Player::Create(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), Transport::CreateNPCPassenger(), Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), Transport::DelayedTeleportTransport(), ScriptedAI::DoTeleportTo(), Map::DynamicObjectRelocation(), Spell::EffectCreateTamedPet(), Spell::EffectResurrectPet(), VehicleJoinEvent::Execute(), GameObject::GameObject(), Map::GameObjectRelocation(), Map::GameObjectRespawnRelocation(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandleUpdateProjectilePosition(), boss_felmyst::InitializeAI(), npc_coldflame::IsSummonedBy(), BattlegroundMgr::LoadBattlegroundTemplates(), Corpse::LoadCorpseFromDB(), ObjectMgr::LoadCreatures(), Player::LoadFromDB(), Creature::LoadFromDB(), ObjectMgr::LoadGameObjects(), Pet::LoadPetFromDB(), ObjectMgr::LoadTempSummons(), Map::MoveAllCreaturesInMoveList(), Map::MoveAllDynamicObjectsInMoveList(), Map::MoveAllGameObjectsInMoveList(), MovementInfo::MovementInfo(), npc_valkyr_shadowguard::MovementInform(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), instance_oculus::instance_oculus_InstanceMapScript::OnCreatureCreate(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), TaggedPosition< Tag >::operator=(), operator>>(), operator>>(), operator>>(), Map::PlayerRelocation(), SpellCastTargets::Read(), readCamera(), SpellDestination::Relocate(), spell_igb_teleport_to_enemy_ship::RelocateTransportOffset(), MovementInfo::TransportInfo::Reset(), npc_doom_blossom::Reset(), npc_dancing_flames::Reset(), Creature::SaveToDB(), GameObject::SaveToDB(), PlayerMenu::SendPointOfInterest(), Unit::SendTeleportPacket(), MapObject::SetNewCellPosition(), BattlefieldWG::SetupBattlefield(), SpellCastTargets::SpellCastTargets(), SpellDestination::SpellDestination(), SpellDestination::SpellDestination(), SpellDestination::SpellDestination(), SpellDestination::SpellDestination(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Transport::SummonPassenger(), Player::SummonPet(), boss_twinemperorsAI::TeleportToMyBrother(), SpellCastTargets::Update(), boss_saviana_ragefire::UpdateAI(), boss_lord_marrowgar::UpdateAI(), boss_sindragosa::UpdateAI(), boss_illidan_stormrage::UpdateAI(), CinematicMgr::UpdateCinematicLocation(), Unit::UpdateHeight(), Spell::UpdatePointers(), Transport::UpdatePosition(), WorldLocation::WorldRelocate(), WorldLocation::WorldRelocate(), WorldLocation::WorldRelocate(), and WorldLocation::WorldRelocate().
|
inline |
|
inline |
|
inline |
Definition at line 69 of file Position.h.
|
inline |
Definition at line 70 of file Position.h.
| void Position::RelocateOffset | ( | Position const & | offset | ) |
Definition at line 36 of file Position.cpp.
References GetOrientation(), GetPositionX(), GetPositionY(), GetPositionZ(), M_PI, m_positionX, m_positionY, m_positionZ, and SetOrientation().
Referenced by Unit::_ExitVehicle(), GetPositionWithOffset(), go_commandscript::HandleGoOffsetCommand(), spell_the_lich_king_summon_into_air::ModDestHeight(), SpellDestination::Relocate(), spell_igb_gunship_fall_teleport::RelocateDest(), SpellDestination::RelocateOffset(), spell_the_lich_king_harvest_souls_teleport::RelocateTransportOffset(), SpellCastTargets::Update(), npc_ruby_emerald_amber_drake::UpdateAI(), and Spell::UpdatePointers().
|
inline |
Definition at line 74 of file Position.h.
Referenced by Unit::_ExitVehicle(), Spell::EffectTeleportUnits(), GetPositionOffsetTo(), gobject_commandscript::HandleGameObjectMoveCommand(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleMovementOpcode(), WorldSession::HandleWorldTeleportOpcode(), npc_coldflame::IsSummonedBy(), npc_meteor_strike_initial::IsSummonedBy(), boss_herod::JustDied(), npc_image_of_medivh::npc_image_of_medivhAI::MovementInform(), WorldObject::MovePosition(), npc_wyrmrest_skytalon::PassengerBoarded(), readCamera(), RelocateOffset(), Creature::RemoveCorpse(), npc_firework::Reset(), Spell::SelectImplicitTrajTargets(), PassengerController::SelectSpawnPoint(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::SetData(), Unit::SetInFront(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), EscortAI::UpdateAI(), npc_alexstraza_the_lifebinder::npc_alexstraza_the_lifebinderAI::UpdateAI(), boss_eye_of_cthun::eye_of_cthunAI::UpdateAI(), npc_ruby_emerald_amber_drake::UpdateAI(), boss_illidan_stormrage::UpdateAI(), Unit::UpdateOrientation(), and Unit::UpdateSplinePosition().
|
inline |
Definition at line 136 of file Position.h.
Referenced by ChaseMovementGenerator::Update(), and FollowMovementGenerator::Update().
|
inline |
Definition at line 138 of file Position.h.
| std::string Position::ToString | ( | ) | const |
Definition at line 149 of file Position.cpp.
References m_orientation, m_positionX, m_positionY, and m_positionZ.
Referenced by Player::_LoadActions(), Pet::_LoadAuras(), Player::_LoadAuras(), Player::_LoadBoundInstances(), Player::_LoadDailyQuestStatus(), Player::_LoadGlyphAuras(), Player::_LoadHomeBind(), Player::_LoadInventory(), Player::_LoadItem(), Player::_LoadMonthlyQuestStatus(), Player::_LoadPetStable(), Player::_LoadQuestStatus(), Player::_LoadSeasonalQuestStatus(), Player::_LoadSkills(), Player::_LoadWeeklyQuestStatus(), Player::_SaveInventory(), Player::_StoreItem(), Player::AddActionButton(), ObjectMgr::AddGameObjectData(), Player::AddItemToBuyBackSlot(), WorldObject::AddObjectToRemoveList(), Player::AddSpellMod(), Creature::AddToWorld(), Player::ApplyBaseModPctValue(), Player::ApplyEnchantment(), Player::ApplyEquipSpell(), Unit::AttackerStateUpdate(), Player::BindToInstance(), Player::BuildPlayerRepop(), Player::BuyItemFromVendorSlot(), Player::CanBankItem(), Player::CanEquipItem(), Player::CanStoreItems(), Player::CanUnequipItem(), Player::CanUseItem(), Player::CastItemCombatSpell(), WorldObject::CastSpell(), Player::CharmSpellInitialize(), Player::CheckAreaExplore(), Player::CleanupChannels(), Player::ContinueTaxiFlight(), Pet::CreateBaseAtCreature(), Player::DestroyConjuredItems(), Player::DestroyItem(), Player::DestroyItemCount(), Player::DestroyItemCount(), Player::DestroyZoneLimitedItem(), Player::DuelComplete(), Player::DurabilityRepair(), Player::EnvironmentalDamage(), Player::EquipItem(), Player::GetBaseModValue(), Player::GetCoordsMapAreaAndZoneString(), WorldLocation::GetDebugInfo(), Player::GetItemFromBuyBackSlot(), Player::GetTotalBaseModValue(), Player::GetXPRestBonus(), Player::HandleBaseModFlatValue(), debug_commandscript::HandleDebugTransportCommand(), WorldSession::HandleWorldTeleportOpcode(), Player::InitDisplayIds(), Player::IsActionButtonDataValid(), Player::LearnCustomSpells(), Corpse::LoadCorpseFromDB(), Creature::LoadCreaturesAddon(), Player::LoadFromDB(), Pet::LoadPetFromDB(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), Player::OnGossipSelect(), MovementInfo::OutDebug(), Unit::OutDebugInfo(), Player::PrepareGossipMenu(), Player::RemoveActionButton(), Unit::RemoveAllControlled(), Unit::RemoveCharmedBy(), GameObject::RemoveFromOwner(), Creature::RemoveFromWorld(), Player::RemoveFromWorld(), Player::RemoveItem(), Player::RemoveItemFromBuyBackSlot(), Player::RemovePet(), Creature::Respawn(), Player::SatisfyQuestBreadcrumbQuest(), Player::SatisfyQuestClass(), Player::SatisfyQuestConditions(), Player::SatisfyQuestDependentBreadcrumbQuests(), Player::SatisfyQuestDependentPreviousQuests(), Player::SatisfyQuestExclusiveGroup(), Player::SatisfyQuestLevel(), Player::SatisfyQuestPreviousQuest(), Player::SatisfyQuestRace(), Player::SatisfyQuestReputation(), Player::SatisfyQuestSkill(), Player::SatisfyQuestStatus(), Player::SatisfyQuestTimed(), Creature::SelectNearestTargetInAttackDistance(), Player::SendLoot(), Unit::SendMeleeAttackStop(), BattlegroundMgr::SendToBattleground(), Unit::SetCharm(), Unit::SetCharmedBy(), Player::setDeathState(), Player::SetEquipmentSet(), Player::SetSkill(), Creature::SetTextRepeatId(), Player::SetViewpoint(), Player::SplitItem(), Player::StopCastingCharm(), Player::StoreNewItemInBestSlots(), WorldObject::SummonCreatureGroup(), Player::SwapItem(), Player::TeleportTo(), Creature::Update(), Player::Update(), EscortAI::UpdateAI(), Unit::UpdateCharmAI(), Player::UpdateCraftSkill(), Player::UpdateFishingSkill(), Player::UpdateGatherSkill(), Player::UpdateHomebindTime(), Player::UpdateItemDuration(), Player::UpdateSkillPro(), Player::UpdateVisibilityOf(), Player::UpdateVisibilityOf(), GameObject::Use(), Player::VehicleSpellInitialize(), Player::VisualizeItem(), and WorldObject::~WorldObject().
|
private |
Definition at line 61 of file Position.h.
Referenced by IsPositionValid(), operator==(), and ToString().
| float Position::m_positionX |
Definition at line 56 of file Position.h.
Referenced by CinematicMgr::BeginCinematic(), spell_the_lich_king_valkyr_charge::ChargeDest(), boss_malygos::DoAction(), Spell::EffectCharge(), Spell::EffectChargeDest(), GetAbsoluteAngle(), GetExactDist(), GetExactDist2d(), GetExactDist2dSq(), GetExactDistSq(), GetPositionOffsetTo(), WorldObject::GetRandomPoint(), spell_malygos_random_portal::HandleDummy(), Player::HandleFall(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), IsPositionValid(), npc_coldflame::IsSummonedBy(), boss_sara::boss_saraAI::JustSummoned(), Map::MoveAllCreaturesInMoveList(), Map::MoveAllDynamicObjectsInMoveList(), Map::MoveAllGameObjectsInMoveList(), MotionMaster::MovePoint(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), operator==(), npc_wyrmrest_skytalon::PassengerBoarded(), SmartScript::ProcessAction(), RelocateOffset(), Creature::RemoveCorpse(), Spell::SelectImplicitTrajTargets(), PassengerController::SelectSpawnPoint(), HomeMovementGenerator< T >::SetTargetLocation(), ToString(), EscortAI::UpdateAI(), boss_malygos::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_frostbrood_skytalon::UpdateAI(), CinematicMgr::UpdateCinematicLocation(), and Unit::UpdateSplinePosition().
| float Position::m_positionY |
Definition at line 57 of file Position.h.
Referenced by CinematicMgr::BeginCinematic(), spell_the_lich_king_valkyr_charge::ChargeDest(), boss_malygos::DoAction(), Spell::EffectCharge(), Spell::EffectChargeDest(), GetAbsoluteAngle(), GetExactDist(), GetExactDist2d(), GetExactDist2dSq(), GetExactDistSq(), GetPositionOffsetTo(), WorldObject::GetRandomPoint(), spell_malygos_random_portal::HandleDummy(), Player::HandleFall(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), IsPositionValid(), npc_coldflame::IsSummonedBy(), boss_sara::boss_saraAI::JustSummoned(), Map::MoveAllCreaturesInMoveList(), Map::MoveAllDynamicObjectsInMoveList(), Map::MoveAllGameObjectsInMoveList(), MotionMaster::MovePoint(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), operator==(), npc_wyrmrest_skytalon::PassengerBoarded(), SmartScript::ProcessAction(), RelocateOffset(), Creature::RemoveCorpse(), Spell::SelectImplicitTrajTargets(), PassengerController::SelectSpawnPoint(), HomeMovementGenerator< T >::SetTargetLocation(), ToString(), EscortAI::UpdateAI(), boss_malygos::UpdateAI(), boss_stormcaller_brundir::boss_stormcaller_brundirAI::UpdateAI(), npc_frostbrood_skytalon::UpdateAI(), CinematicMgr::UpdateCinematicLocation(), and Unit::UpdateSplinePosition().
| float Position::m_positionZ |
Definition at line 58 of file Position.h.
Referenced by CinematicMgr::BeginCinematic(), boss_malygos::DoAction(), CreatureAI::DoSummonFlyer(), Spell::EffectCharge(), Spell::EffectChargeDest(), GetExactDist(), GetExactDistSq(), GetPositionOffsetTo(), WorldObject::GetRandomPoint(), spell_malygos_random_portal::HandleDummy(), Player::HandleFall(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), IsPositionValid(), npc_hive_zara_swarmer::JustAppeared(), boss_sara::boss_saraAI::JustSummoned(), spell_mimiron_magnetic_core_summon::ModDest(), spell_skyguard_flare::ModDestHeight(), MotionMaster::MovePoint(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), operator==(), npc_wyrmrest_skytalon::PassengerBoarded(), SmartScript::ProcessAction(), RelocateOffset(), Creature::RemoveCorpse(), npc_doom_blossom::Reset(), Spell::SelectImplicitTrajTargets(), PassengerController::SelectSpawnPoint(), spell_muru_summon_void_sentinel_summoner::SetDest(), spell_vazruden_summon_vazruden::SetDest(), spell_spawn_blood_pool::SetDest(), HomeMovementGenerator< T >::SetTargetLocation(), ToString(), EscortAI::UpdateAI(), boss_saviana_ragefire::UpdateAI(), boss_sindragosa::UpdateAI(), npc_valkyr_shadowguard::UpdateAI(), boss_malygos::UpdateAI(), boss_razorscale::UpdateAI(), npc_frostbrood_skytalon::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), CinematicMgr::UpdateCinematicLocation(), and Unit::UpdateSplinePosition().