|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <Object.h>
Classes | |
| struct | PositionXYZOStreamer |
| struct | PositionXYZStreamer |
Public Member Functions | |
| float | GetAngle (float x, float y) const |
| float | GetAngle (Position const *pos) const |
| float | GetExactDist (float x, float y, float z) const |
| float | GetExactDist (Position const *pos) const |
| float | GetExactDist2d (const float x, const float y) const |
| float | GetExactDist2d (Position const *pos) const |
| float | GetExactDist2dSq (float x, float y) const |
| float | GetExactDist2dSq (Position const *pos) const |
| float | GetExactDistSq (float x, float y, float z) const |
| float | GetExactDistSq (Position const *pos) 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 |
| void | GetPosition (Position *pos) const |
| void | GetPositionOffsetTo (Position const &endPos, Position &retOffset) const |
| float | GetPositionX () const |
| float | GetPositionY () const |
| float | GetPositionZ () const |
| float | GetRelativeAngle (float x, float y) const |
| float | GetRelativeAngle (Position const *pos) const |
| void | GetSinCos (float x, float y, float &vsin, float &vcos) const |
| bool | HasInArc (float arcangle, Position const *pos, float border=2.0f) const |
| bool | HasInLine (WorldObject const *target, float width) const |
| bool | IsInDist (float x, float y, float z, float dist) const |
| bool | IsInDist (Position const *pos, float dist) const |
| bool | IsInDist2d (float x, float y, float dist) const |
| bool | IsInDist2d (Position const *pos, float dist) const |
| bool | IsPositionValid () const |
| bool | operator!= (Position const &a) |
| bool | operator== (Position const &a) |
| Position::PositionXYZOStreamer | PositionXYZOStream () |
| Position::PositionXYZStreamer | PositionXYZStream () |
| void | Relocate (float x, float y) |
| void | Relocate (float x, float y, float z) |
| void | Relocate (float x, float y, float z, float orientation) |
| void | Relocate (Position const &pos) |
| void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| void | SetOrientation (float orientation) |
| std::string | ToString () const |
Static Public Member Functions | |
| static float | NormalizeOrientation (float o) |
Public Attributes | |
| float | m_orientation |
| float | m_positionX |
| float | m_positionY |
| float | m_positionZ |
| float Position::GetAngle | ( | float | x, |
| float | y ) const |
Definition at line 1869 of file Object.cpp.
References GetPositionX(), GetPositionY(), and M_PI.
| float Position::GetAngle | ( | Position const * | pos | ) | const |
Definition at line 1860 of file Object.cpp.
References GetAngle(), GetPositionX(), and GetPositionY().
Referenced by GetAngle(), WorldObject::GetContactPoint(), Unit::GetRandomContactPoint(), GetRelativeAngle(), GetRelativeAngle(), misc_commandscript::HandleAppearCommand(), npc_commandscript::HandleNpcAddFormationCommand(), spell_archaeology_survey::spell_archaeology_survey_SpellScript::HandleSummon(), HasInArc(), WorldObject::IsInBetween(), npc_coldflame::npc_coldflameAI::IsSummonedBy(), spell_varos_energize_core_area_enemy::spell_varos_energize_core_area_enemySpellScript::PrepareSpellScript(), spell_varos_energize_core_area_entry::spell_varos_energize_core_area_entrySpellScript::PrepareSpellScript(), Unit::SetFacingToObject(), Unit::SetInFront(), spell_archaeology_survey::spell_archaeology_survey_SpellScript::SetTelescopeOrientation(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), and npc_strangulate_vehicle::npc_strangulate_vehicleAI::UpdateAI().
|
inline |
Definition at line 382 of file Object.h.
References GetExactDistSq().
Referenced by npc_living_mojo::npc_living_mojoAI::AttackStart(), WorldObject::CanDetectStealthOf(), WorldObject::GetDistance(), WorldObject::GetDistance(), WorldObject::GetDistance(), and misc_commandscript::HandleGetDistanceCommand().
|
inline |
Definition at line 390 of file Object.h.
References GetExactDistSq().
|
inline |
Definition at line 366 of file Object.h.
References GetExactDist2dSq().
Referenced by spell_marrowgar_coldflame_damage::spell_marrowgar_coldflame_damage_AuraScript::CanBeAppliedOn(), WorldObject::GetDistance2d(), WorldObject::GetDistance2d(), misc_commandscript::HandleGetDistanceCommand(), HasInLine(), WorldObject::IsInBetween(), Unit::JumpTo(), and spell_gen_launch::spell_gen_launch_SpellScript::Launch().
|
inline |
Definition at line 374 of file Object.h.
References GetExactDist2dSq().
|
inline |
Definition at line 362 of file Object.h.
References m_positionX, and m_positionY.
Referenced by GetExactDist2d(), GetExactDist2d(), GetExactDistSq(), WorldObject::IsInBetween(), IsInDist2d(), IsInDist2d(), Skyfire::MessageDistDeliverer::Visit(), Skyfire::MessageDistDeliverer::Visit(), and Skyfire::MessageDistDeliverer::Visit().
|
inline |
Definition at line 370 of file Object.h.
References m_positionX, and m_positionY.
|
inline |
Definition at line 378 of file Object.h.
References GetExactDist2dSq(), and m_positionZ.
Referenced by Battleground::_CheckSafePositions(), GetExactDist(), GetExactDist(), IsInDist(), and IsInDist().
|
inline |
Definition at line 386 of file Object.h.
References m_positionX, m_positionY, and m_positionZ.
|
inline |
Definition at line 331 of file Object.h.
References m_orientation.
Referenced by Unit::_ExitVehicle(), Player::ActivateTaxiPathTo(), Object::BuildMovementUpdate(), Transport::CalculatePassengerOffset(), Transport::CalculatePassengerPosition(), Unit::CastSpell(), ObjectAccessor::ConvertCorpseForPlayer(), Corpse::Create(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), TransportMgr::CreateLocalTransport(), Transport::CreateNPCPassenger(), Spell::EffectLeap(), Spell::EffectSummonDeadPet(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPet(), BattlegroundIC::EventPlayerClickedOnFlag(), WorldObject::GetClosePoint(), LuaWorldObject::GetLocation(), LuaWorldObject::GetO(), GetPositionOffsetTo(), WorldObject::GetRandomPoint(), LuaGameObject::GetRelativePoint(), LuaUnit::GetRelativePoint(), Creature::GetRespawnPosition(), GameObject::GetRespawnPosition(), GameObject::GetStationaryO(), WorldObject::GetStationaryO(), misc_commandscript::HandleAppearCommand(), debug_commandscript::HandleDebugRestCommand(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectAddTempCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), gm_commandscript::HandleGMNoteCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoTaxinodeCommand(), go_commandscript::HandleGoTriggerCommand(), go_commandscript::HandleGoXYZCommand(), go_commandscript::HandleGoZoneXYCommand(), misc_commandscript::HandleGPSCommand(), group_commandscript::HandleGroupSummonCommand(), WorldSession::HandleMovementOpcodes(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcTameCommand(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleAddCommand(), tele_commandscript::HandleTeleNameCommand(), misc_commandscript::HandleUnstuckCommand(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), GameObject::IsInRange(), MapManager::IsValidMapCoord(), Unit::JumpTo(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustSummoned(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ObjectMgr::MoveCreData(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), item_pile_fake_furs::OnUse(), BattlegroundIC::PostUpdateImpl(), Battleground::RelocateDeadPlayers(), BfGraveyard::RelocateDeadPlayers(), RelocateOffset(), Map::RemoveAllPlayers(), Skyfire::PetTransport::RemoveOwnerHunterPet(), Player::RepopAtGraveyard(), Player::SaveRecallPosition(), Corpse::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Player::SaveToDB(), Map::ScriptsProcess(), Player::SendCinematicStart(), Unit::SendTeleportPacket(), Player::SetBattlegroundEntryPoint(), Unit::SetInCombatState(), Creature::SetPosition(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), BattlePetWildZonePool::SpawnReplacement(), SpellDestination::SpellDestination(), WaypointMovementGenerator< Creature >::StartMove(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), Map::SummonCreature(), WorldObject::SummonCreature(), Player::SummonIfPossible(), go_wind_stone::SummonNPC(), spell_sindragosa_ice_tomb::spell_sindragosa_ice_tomb_SpellScript::SummonTomb(), lfg::LFGMgr::TeleportPlayer(), boss_mother_shahraz::boss_shahrazAI::TeleportPlayers(), Player::TeleportTo(), Player::TeleportTo(), Transport::TeleportTransport(), instance_gundrak::instance_gundrak_InstanceMapScript::Update(), RotateMovementGenerator::Update(), boss_azuregos::boss_azuregosAI::UpdateAI(), boss_kaelthas::boss_kaelthasAI::UpdateAI(), boss_urom::boss_uromAI::UpdateAI(), Player::UpdatePosition(), Unit::UpdatePosition(), Unit::UpdatePosition(), GameObject::UpdateRotationFields(), Unit::UpdateSplinePosition(), GameObject::UpdateWorldRotationField(), GameObject::Use(), and Unit::WriteMovementInfo().
|
inline |
Definition at line 333 of file Object.h.
References m_positionX, and m_positionY.
Referenced by Unit::_ExitVehicle(), npc_living_mojo::npc_living_mojoAI::AttackStart(), boss_maiev_shadowsong::boss_maievAI::BlinkToPlayer(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::boss_leotheras_the_blindAI(), spell_rotface_unstable_ooze_explosion::spell_rotface_unstable_ooze_explosion_SpellScript::CheckTarget(), boss_anub_arak::boss_anub_arakAI::DoSummonImpaleTarget(), Spell::EffectBind(), Spell::EffectSummonDeadPet(), BattlegroundAV::GetClosestGraveYard(), BattlegroundSA::GetClosestGraveYard(), WorldObject::GetFirstCollisionPosition(), WorldObject::GetNearPosition(), WorldObject::GetRandomNearPosition(), WorldObject::GetRandomPoint(), RandomMovementGenerator< T >::GetResetPos(), LuaSpell::GetTargetDest(), spell_rotface_unstable_ooze_explosion_init::spell_rotface_unstable_ooze_explosion_init_SpellScript::HandleCast(), spell_wintergrasp_defender_teleport_trigger::spell_wintergrasp_defender_teleport_trigger_SpellScript::HandleDummy(), spell_pri_leap_of_faith::spell_pri_leap_of_faith_SpellScript::HandleEffectDummy(), spell_mage_blast_wave::spell_mage_blast_wave_SpellScript::HandleImprovedFlamestrike(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapPathCommand(), spell_occuthar_eyes_of_occuthar_vehicle::spell_occuthar_eyes_of_occuthar_vehicle_SpellScript::HandleScript(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), spell_freya_iron_roots::spell_freya_iron_roots_SpellScript::HandleSummon(), spell_halion_damage_aoe_summon::spell_halion_damage_aoe_summon_SpellScript::HandleSummon(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), npc_ruby_emerald_amber_drake::npc_ruby_emerald_amber_drakeAI::IsSummonedBy(), WorldObject::IsWithinLOSInMap(), spell_svalna_revive_champion::spell_svalna_revive_champion_SpellScript::Land(), MotionMaster::MoveLand(), MotionMaster::MoveTakeoff(), instance_onyxias_lair::instance_onyxias_lair_InstanceMapScript::OnGameObjectCreate(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), operator<<(), operator<<(), spell_varos_energize_core_area_enemy::spell_varos_energize_core_area_enemySpellScript::PrepareSpellScript(), spell_varos_energize_core_area_entry::spell_varos_energize_core_area_entrySpellScript::PrepareSpellScript(), Skyfire::PetTransport::RemoveOwnerHunterPet(), npc_pummeller::npc_pummellerAI::Reset(), instance_stratholme::instance_stratholme_InstanceMapScript::SetData(), Player::SetHomebind(), boss_lady_deathwhisper::boss_lady_deathwhisperAI::SpellHitTarget(), spell_sindragosa_ice_tomb::spell_sindragosa_ice_tomb_SpellScript::SummonTomb(), Player::TeleportTo(), Transport::TeleportTransport(), boss_kiljaeden::boss_kiljaedenAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), npc_spark_of_ionar::npc_spark_of_ionarAI::UpdateAI(), npc_twiggy_flathead::npc_twiggy_flatheadAI::UpdateAI(), and Transport::UpdatePassengerPositions().
|
inline |
Definition at line 337 of file Object.h.
References m_positionX, m_positionY, and m_positionZ.
|
inline |
Definition at line 341 of file Object.h.
References m_orientation, m_positionX, m_positionY, and m_positionZ.
|
inline |
Definition at line 345 of file Object.h.
References m_orientation, m_positionX, m_positionY, m_positionZ, and Relocate().
Definition at line 1849 of file Object.cpp.
References GetOrientation(), GetPositionX(), GetPositionY(), GetPositionZ(), m_positionX, m_positionY, m_positionZ, and SetOrientation().
|
inline |
Definition at line 328 of file Object.h.
References m_positionX.
Referenced by Unit::_ExitVehicle(), Map::_FindGameObject(), WorldObject::_IsWithinDist(), Player::ActivateTaxiPathTo(), Map::ActiveObjectsNearGrid(), ObjectAccessor::AddCorpse(), InstanceScript::AddDoor(), Spell::AddGOTarget(), Map::AddPlayerToMap(), Map::AddToActive(), Map::AddToMap(), Spell::AddUnitTarget(), npc_living_mojo::npc_living_mojoAI::AttackStart(), boss_warp_splinter::boss_warp_splinterAI::boss_warp_splinterAI(), Object::BuildMovementUpdate(), WorldSession::BuildPartyMemberStatsChangedPacket(), WorldObject::BuildUpdate(), Transport::CalculatePassengerOffset(), Transport::CalculatePassengerPosition(), Creature::CallAssistance(), Creature::CallForHelp(), boss_sapphiron::boss_sapphironAI::CastExplosion(), GameObject::CastSpell(), Player::CheckAreaExploreAndOutdoor(), BossAI::CheckBoundary(), Map::CheckGridIntegrity(), Player::ContinueTaxiFlight(), ObjectAccessor::ConvertCorpseForPlayer(), Corpse::Create(), AreaTrigger::CreateAreaTrigger(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), TransportMgr::CreateLocalTransport(), Transport::CreateNPCPassenger(), boss_temple_guardian_anhuur::boss_temple_guardian_anhuurAI::DamageTaken(), npc_snufflenose_gopher::npc_snufflenose_gopherAI::DoFindNewTubber(), Creature::DoFleeToGetAssistance(), Spell::EffectBind(), Spell::EffectChargeDest(), Spell::EffectLeap(), Spell::EffectPullTowards(), Spell::EffectStuck(), BattlegroundIC::EventPlayerClickedOnFlag(), ChatHandler::ExecuteCommandInTable(), SmartScript::FindCreatureNear(), SmartScript::FindGameObjectNear(), Map::GameObjectRelocation(), GetAngle(), GetAngle(), Unit::GetAttackableUnitListInRange(), Battleground::GetClosestGraveYard(), BattlegroundAB::GetClosestGraveYard(), BattlegroundBFG::GetClosestGraveYard(), BattlegroundEY::GetClosestGraveYard(), BattlegroundIC::GetClosestGraveYard(), WorldObject::GetCreatureListWithEntryInGrid(), WorldObject::GetDistanceOrder(), WorldObject::GetGameObjectListWithEntryInGrid(), LuaWorldObject::GetLocation(), WorldObject::GetNearPoint2D(), ChatHandler::GetObjectGlobalyWithGuidOrNearWithDbGuid(), GetPositionOffsetTo(), GetPositionWithDistInOrientation(), LuaGameObject::GetRelativePoint(), LuaUnit::GetRelativePoint(), Creature::GetRespawnPosition(), GameObject::GetRespawnPosition(), GetSinCos(), GameObject::GetStationaryX(), WorldObject::GetStationaryX(), LuaWorldObject::GetX(), Battleground::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), misc_commandscript::HandleComeToMeCommand(), WorldSession::HandleCorpseQueryOpcode(), debug_commandscript::HandleDebugRestCommand(), OutdoorPvPSI::HandleDropFlag(), spell_dk_death_grip::spell_dk_death_grip_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), boss_felmyst::boss_felmystAI::HandleFlightSequence(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectAddTempCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), gm_commandscript::HandleGMNoteCommand(), misc_commandscript::HandleGPSCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListObjectCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapTestArea(), WorldSession::HandleMovementOpcodes(), misc_commandscript::HandleNearGraveCommand(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), misc_commandscript::HandleRespawnCommand(), spell_razorscale_devouring_flame::spell_razorscale_devouring_flame_SpellScript::HandleSummon(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleAddCommand(), wp_commandscript::HandleWpAddCommand(), debug_commandscript::HandleWPGPSCommand(), wp_commandscript::HandleWpModifyCommand(), HasInLine(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::InitializeNovosSummoner(), boss_netherspite::boss_netherspiteAI::IsBetween(), WorldObject::IsInBetween(), Player::IsInCurrentInnArea(), GameObject::IsInRange(), WorldObject::IsInRange(), WorldObject::IsInRange2d(), WorldObject::IsInRange3d(), Unit::IsInWater(), npc_coldflame::npc_coldflameAI::IsSummonedBy(), Player::IsUnderWater(), Unit::IsUnderWater(), MapManager::IsValidMapCoord(), Unit::IsWithinCombatRange(), WorldObject::IsWithinLOS(), Unit::IsWithinMeleeRange(), Player::IsWithinResearchDigsite(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustSummoned(), boss_sara::boss_saraAI::JustSummoned(), spell_gen_launch::spell_gen_launch_SpellScript::Launch(), Corpse::LoadCorpseFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), GameObject::LookupFishingHoleAround(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), WorldObject::MonsterSay(), WorldObject::MonsterSay(), WorldObject::MonsterTextEmote(), WorldObject::MonsterYell(), WorldObject::MonsterYell(), ObjectMgr::MoveCreData(), go_demon_portal::OnGossipHello(), item_pile_fake_furs::OnUse(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_SpellScript::Phase(), Map::PlayerRelocation(), BattlegroundIC::PostUpdateImpl(), SmartScript::ProcessAction(), instance_oculus::instance_oculus_InstanceMapScript::ProcessEvent(), RelocateOffset(), ObjectAccessor::RemoveCorpse(), Map::RemoveFromActive(), Player::RepopAtGraveyard(), Player::SaveRecallPosition(), Corpse::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Player::SaveToDB(), Map::ScriptsProcess(), Spell::SearchTargets(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), Unit::SendTeleportPacket(), Player::SetBattlegroundEntryPoint(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), spell_omega_stance_spider_effect::spell_omega_stance_spider_effect_SpellScript::SetDestPosition(), Unit::SetFacingTo(), Unit::SetFacingToObject(), Unit::SetHover(), Unit::SetInCombatState(), Creature::SetPosition(), boss_amanitar::boss_amanitarAI::SpawnAdds(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), BattlePetWildZonePool::SpawnReplacement(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::StorePrisoner(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), Map::SummonCreature(), boss_archimonde::boss_archimondeAI::SummonDoomfire(), go_wind_stone::SummonNPC(), Player::SummonPet(), spell_sindragosa_ice_tomb::spell_sindragosa_ice_tomb_SpellScript::SummonTomb(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Player::TeleportTo(), GameObject::TriggeringLinkedGameObject(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), instance_gundrak::instance_gundrak_InstanceMapScript::Update(), boss_hoptallus::boss_hoptallusAI::UpdateAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::UpdateAI(), boss_najentus::boss_najentusAI::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), boss_shirrak_the_dead_watcher::boss_shirrak_the_dead_watcherAI::UpdateAI(), boss_supremus::boss_supremusAI::UpdateAI(), boss_urom::boss_uromAI::UpdateAI(), npc_av_marshal_or_warmaster::npc_av_marshal_or_warmasterAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_coldflame::npc_coldflameAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), Player::UpdateAreaDependentAuras(), Unit::UpdateHeight(), Creature::UpdateMovementFlags(), Player::UpdatePosition(), Transport::UpdatePosition(), Unit::UpdatePosition(), Unit::UpdatePosition(), Player::UpdateRestAreaState(), GameObject::Use(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::UseStatue(), Cell::Visit(), Skyfire::DelayedUnitRelocation::Visit(), Map::VisitNearbyCellsOf(), WorldObject::VisitNearbyGridObject(), WorldObject::VisitNearbyObject(), WorldObject::VisitNearbyWorldObject(), and Unit::WriteMovementInfo().
|
inline |
Definition at line 329 of file Object.h.
References m_positionY.
Referenced by Unit::_ExitVehicle(), Map::_FindGameObject(), WorldObject::_IsWithinDist(), Player::ActivateTaxiPathTo(), Map::ActiveObjectsNearGrid(), ObjectAccessor::AddCorpse(), InstanceScript::AddDoor(), Spell::AddGOTarget(), Map::AddPlayerToMap(), Map::AddToActive(), Map::AddToMap(), Spell::AddUnitTarget(), npc_living_mojo::npc_living_mojoAI::AttackStart(), boss_warp_splinter::boss_warp_splinterAI::boss_warp_splinterAI(), Object::BuildMovementUpdate(), WorldSession::BuildPartyMemberStatsChangedPacket(), WorldObject::BuildUpdate(), Transport::CalculatePassengerOffset(), Transport::CalculatePassengerPosition(), Creature::CallAssistance(), Creature::CallForHelp(), boss_sapphiron::boss_sapphironAI::CastExplosion(), GameObject::CastSpell(), Player::CheckAreaExploreAndOutdoor(), BossAI::CheckBoundary(), Map::CheckGridIntegrity(), Player::ContinueTaxiFlight(), ObjectAccessor::ConvertCorpseForPlayer(), Corpse::Create(), AreaTrigger::CreateAreaTrigger(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), TransportMgr::CreateLocalTransport(), Transport::CreateNPCPassenger(), npc_snufflenose_gopher::npc_snufflenose_gopherAI::DoFindNewTubber(), Creature::DoFleeToGetAssistance(), Spell::EffectBind(), Spell::EffectChargeDest(), Spell::EffectLeap(), Spell::EffectPullTowards(), Spell::EffectStuck(), BattlegroundIC::EventPlayerClickedOnFlag(), ChatHandler::ExecuteCommandInTable(), SmartScript::FindCreatureNear(), SmartScript::FindGameObjectNear(), Map::GameObjectRelocation(), GetAngle(), GetAngle(), Unit::GetAttackableUnitListInRange(), Battleground::GetClosestGraveYard(), BattlegroundAB::GetClosestGraveYard(), BattlegroundBFG::GetClosestGraveYard(), BattlegroundEY::GetClosestGraveYard(), BattlegroundIC::GetClosestGraveYard(), WorldObject::GetCreatureListWithEntryInGrid(), WorldObject::GetDistanceOrder(), WorldObject::GetGameObjectListWithEntryInGrid(), LuaWorldObject::GetLocation(), WorldObject::GetNearPoint2D(), ChatHandler::GetObjectGlobalyWithGuidOrNearWithDbGuid(), GetPositionOffsetTo(), GetPositionWithDistInOrientation(), LuaGameObject::GetRelativePoint(), LuaUnit::GetRelativePoint(), Creature::GetRespawnPosition(), GameObject::GetRespawnPosition(), GetSinCos(), GameObject::GetStationaryY(), WorldObject::GetStationaryY(), LuaWorldObject::GetY(), Battleground::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattlegroundPlayerPositionsOpcode(), misc_commandscript::HandleComeToMeCommand(), WorldSession::HandleCorpseQueryOpcode(), debug_commandscript::HandleDebugRestCommand(), OutdoorPvPSI::HandleDropFlag(), spell_dk_death_grip::spell_dk_death_grip_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), boss_felmyst::boss_felmystAI::HandleFlightSequence(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectAddTempCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), gm_commandscript::HandleGMNoteCommand(), misc_commandscript::HandleGPSCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListObjectCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapTestArea(), WorldSession::HandleMovementOpcodes(), misc_commandscript::HandleNearGraveCommand(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcAddFormationCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), misc_commandscript::HandleRespawnCommand(), spell_razorscale_devouring_flame::spell_razorscale_devouring_flame_SpellScript::HandleSummon(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleAddCommand(), wp_commandscript::HandleWpAddCommand(), debug_commandscript::HandleWPGPSCommand(), wp_commandscript::HandleWpModifyCommand(), HasInLine(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::InitializeNovosSummoner(), instance_drak_tharon_keep::instance_drak_tharon_keep_InstanceScript::InitializeTrollgoreInvaderSummoner(), boss_netherspite::boss_netherspiteAI::IsBetween(), WorldObject::IsInBetween(), Player::IsInCurrentInnArea(), GameObject::IsInRange(), WorldObject::IsInRange(), WorldObject::IsInRange2d(), WorldObject::IsInRange3d(), Unit::IsInWater(), npc_coldflame::npc_coldflameAI::IsSummonedBy(), Player::IsUnderWater(), Unit::IsUnderWater(), MapManager::IsValidMapCoord(), Unit::IsWithinCombatRange(), WorldObject::IsWithinLOS(), Unit::IsWithinMeleeRange(), Player::IsWithinResearchDigsite(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustSummoned(), boss_sara::boss_saraAI::JustSummoned(), spell_gen_launch::spell_gen_launch_SpellScript::Launch(), Corpse::LoadCorpseFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), GameObject::LookupFishingHoleAround(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), WorldObject::MonsterSay(), WorldObject::MonsterSay(), WorldObject::MonsterTextEmote(), WorldObject::MonsterYell(), WorldObject::MonsterYell(), ObjectMgr::MoveCreData(), go_demon_portal::OnGossipHello(), item_pile_fake_furs::OnUse(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_SpellScript::Phase(), Map::PlayerRelocation(), BattlegroundIC::PostUpdateImpl(), SmartScript::ProcessAction(), instance_oculus::instance_oculus_InstanceMapScript::ProcessEvent(), RelocateOffset(), ObjectAccessor::RemoveCorpse(), Map::RemoveFromActive(), Player::RepopAtGraveyard(), Player::SaveRecallPosition(), Corpse::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Player::SaveToDB(), Map::ScriptsProcess(), Spell::SearchTargets(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), Unit::SendTeleportPacket(), Player::SetBattlegroundEntryPoint(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), spell_omega_stance_spider_effect::spell_omega_stance_spider_effect_SpellScript::SetDestPosition(), Unit::SetFacingTo(), Unit::SetFacingToObject(), Unit::SetHover(), Unit::SetInCombatState(), Creature::SetPosition(), boss_amanitar::boss_amanitarAI::SpawnAdds(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), BattlePetWildZonePool::SpawnReplacement(), instance_blood_furnace::instance_blood_furnace_InstanceMapScript::StorePrisoner(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), Map::SummonCreature(), boss_archimonde::boss_archimondeAI::SummonDoomfire(), go_wind_stone::SummonNPC(), Player::SummonPet(), spell_sindragosa_ice_tomb::spell_sindragosa_ice_tomb_SpellScript::SummonTomb(), Map::SwitchGridContainers(), Map::SwitchGridContainers(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Player::TeleportTo(), GameObject::TriggeringLinkedGameObject(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), instance_gundrak::instance_gundrak_InstanceMapScript::Update(), boss_hoptallus::boss_hoptallusAI::UpdateAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::UpdateAI(), boss_najentus::boss_najentusAI::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), boss_shirrak_the_dead_watcher::boss_shirrak_the_dead_watcherAI::UpdateAI(), boss_supremus::boss_supremusAI::UpdateAI(), boss_urom::boss_uromAI::UpdateAI(), npc_av_marshal_or_warmaster::npc_av_marshal_or_warmasterAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_coldflame::npc_coldflameAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), Unit::UpdateHeight(), Creature::UpdateMovementFlags(), Player::UpdatePosition(), Transport::UpdatePosition(), Unit::UpdatePosition(), Unit::UpdatePosition(), Player::UpdateRestAreaState(), GameObject::Use(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::UseStatue(), Cell::Visit(), Skyfire::DelayedUnitRelocation::Visit(), Map::VisitNearbyCellsOf(), WorldObject::VisitNearbyGridObject(), WorldObject::VisitNearbyObject(), WorldObject::VisitNearbyWorldObject(), and Unit::WriteMovementInfo().
|
inline |
Definition at line 330 of file Object.h.
References m_positionZ.
Referenced by Unit::_ExitVehicle(), WorldObject::_IsWithinDist(), Player::ActivateTaxiPathTo(), Spell::AddGOTarget(), Spell::AddUnitTarget(), npc_living_mojo::npc_living_mojoAI::AttackStart(), WorldSession::BuildPartyMemberStatsChangedPacket(), Transport::CalculatePassengerOffset(), Transport::CalculatePassengerPosition(), GameObject::CastSpell(), Player::CheckAreaExploreAndOutdoor(), Player::ContinueTaxiFlight(), ObjectAccessor::ConvertCorpseForPlayer(), Corpse::Create(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), TransportMgr::CreateLocalTransport(), Transport::CreateNPCPassenger(), npc_snufflenose_gopher::npc_snufflenose_gopherAI::DoFindNewTubber(), Creature::DoFleeToGetAssistance(), Spell::EffectBind(), Spell::EffectLeap(), Spell::EffectPullTowards(), Spell::EffectStuck(), BattlegroundIC::EventPlayerClickedOnFlag(), ChatHandler::ExecuteCommandInTable(), Battleground::GetClosestGraveYard(), BattlegroundEY::GetClosestGraveYard(), WorldObject::GetDistanceOrder(), WorldObject::GetDistanceZ(), LuaWorldObject::GetLocation(), WorldObject::GetNearPoint(), GetPositionOffsetTo(), Unit::GetPositionZMinusOffset(), Creature::GetRespawnPosition(), GameObject::GetRespawnPosition(), GameObject::GetStationaryZ(), WorldObject::GetStationaryZ(), LuaWorldObject::GetZ(), Battleground::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraFeatherFall(), misc_commandscript::HandleComeToMeCommand(), WorldSession::HandleCorpseQueryOpcode(), debug_commandscript::HandleDebugRestCommand(), OutdoorPvPSI::HandleDropFlag(), spell_dk_death_grip::spell_dk_death_grip_SpellScript::HandleDummy(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), Player::HandleFall(), boss_felmyst::boss_felmystAI::HandleFlightSequence(), gobject_commandscript::HandleGameObjectAddCommand(), gobject_commandscript::HandleGameObjectAddTempCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), gobject_commandscript::HandleGameObjectTurnCommand(), gm_commandscript::HandleGMNoteCommand(), misc_commandscript::HandleGPSCommand(), list_commandscript::HandleListCreatureCommand(), list_commandscript::HandleListObjectCommand(), WorldSession::HandleMovementOpcodes(), misc_commandscript::HandleNearGraveCommand(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcInfoCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), WorldSession::HandlePlayerLogin(), AuraEffect::HandlePlayScene(), 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(), Player::IsInCurrentInnArea(), GameObject::IsInRange(), WorldObject::IsInRange(), WorldObject::IsInRange3d(), Unit::IsInWater(), Player::IsUnderWater(), Unit::IsUnderWater(), MapManager::IsValidMapCoord(), Unit::IsWithinCombatRange(), WorldObject::IsWithinLOS(), Unit::IsWithinMeleeRange(), npc_enraged_spirit::npc_enraged_spiritAI::JustDied(), boss_prince_keleseth_icc::boss_prince_kelesethAI::JustSummoned(), spell_gen_launch::spell_gen_launch_SpellScript::Launch(), Player::LoadFromDB(), boss_teron_gorefiend::boss_teron_gorefiendAI::MindControlGhost(), instance_deadmines::instance_deadmines_InstanceMapScript::MoveCreatureInside(), ObjectMgr::MoveCreData(), go_demon_portal::OnGossipHello(), item_pile_fake_furs::OnUse(), RotfaceHeightCheck::operator()(), Skyfire::HeightDifferenceCheck::operator()(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_SpellScript::Phase(), BattlegroundIC::PostUpdateImpl(), SmartScript::ProcessAction(), instance_oculus::instance_oculus_InstanceMapScript::ProcessEvent(), RelocateOffset(), Player::RepopAtGraveyard(), Player::SaveRecallPosition(), Corpse::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Player::SaveToDB(), WorldSession::SendLearnNewTaxiNode(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), Player::SetBattlegroundEntryPoint(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), spell_omega_stance_spider_effect::spell_omega_stance_spider_effect_SpellScript::SetDestPosition(), Unit::SetHover(), Unit::SetInCombatState(), Creature::SetPosition(), instance_eye_of_eternity::instance_eye_of_eternity_InstanceMapScript::SpawnGameObject(), BattlePetWildZonePool::SpawnReplacement(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), Map::SummonCreature(), SummonCroneIfReady(), boss_archimonde::boss_archimondeAI::SummonDoomfire(), go_wind_stone::SummonNPC(), spell_sindragosa_ice_tomb::spell_sindragosa_ice_tomb_SpellScript::SummonTomb(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Player::TeleportTo(), instance_gundrak::instance_gundrak_InstanceMapScript::Update(), boss_hoptallus::boss_hoptallusAI::UpdateAI(), boss_kalecgos::boss_kalecgosAI::UpdateAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::UpdateAI(), boss_najentus::boss_najentusAI::UpdateAI(), boss_ouro::boss_ouroAI::UpdateAI(), boss_shirrak_the_dead_watcher::boss_shirrak_the_dead_watcherAI::UpdateAI(), boss_supremus::boss_supremusAI::UpdateAI(), boss_urom::boss_uromAI::UpdateAI(), npc_claw_tentacle::claw_tentacleAI::UpdateAI(), npc_giant_claw_tentacle::giant_claw_tentacleAI::UpdateAI(), npc_mechanolift::npc_mechanoliftAI::UpdateAI(), Player::UpdateFallInformationIfNeed(), Player::UpdatePosition(), Unit::UpdatePosition(), Unit::UpdatePosition(), Player::UpdateRestAreaState(), GameObject::Use(), instance_sunken_temple::instance_sunken_temple_InstanceMapScript::UseStatue(), and Unit::WriteMovementInfo().
|
inline |
Definition at line 403 of file Object.h.
References GetAngle(), and m_orientation.
|
inline |
Definition at line 399 of file Object.h.
References GetAngle(), and m_orientation.
Referenced by Spell::CheckCast(), and HasInLine().
| void Position::GetSinCos | ( | float | x, |
| float | y, | ||
| float & | vsin, | ||
| float & | vcos ) const |
Definition at line 1879 of file Object.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 1898 of file Object.cpp.
References GetAngle(), m_orientation, M_PI, and NormalizeOrientation().
Referenced by WorldObject::CanDetectStealthOf(), Unit::DealMeleeDamage(), HasInLine(), WorldObject::isInBack(), Unit::isInBackInMap(), WorldObject::isInFront(), Unit::isInFrontInMap(), Unit::isSpellBlocked(), Unit::MagicSpellHitResult(), Unit::MeleeSpellHitResult(), Unit::RollMeleeOutcomeAgainst(), and Player::Update().
| bool Position::HasInLine | ( | WorldObject const * | target, |
| float | width ) const |
Definition at line 1432 of file Object.cpp.
References GetExactDist2d(), WorldObject::GetObjectSize(), GetPositionX(), GetPositionY(), GetRelativeAngle(), HasInArc(), and M_PI.
|
inline |
Definition at line 414 of file Object.h.
References GetExactDistSq().
Referenced by Creature::CanCreatureAttack(), WorldObject::IsWithinDist3d(), and WorldObject::IsWithinDist3d().
|
inline |
Definition at line 418 of file Object.h.
References GetExactDistSq().
|
inline |
Definition at line 406 of file Object.h.
References GetExactDist2dSq().
Referenced by WorldObject::IsWithinDist2d(), and WorldObject::IsWithinDist2d().
|
inline |
Definition at line 410 of file Object.h.
References GetExactDist2dSq().
| bool Position::IsPositionValid | ( | ) | const |
Definition at line 2049 of file Object.cpp.
References Skyfire::IsValidMapCoord(), m_orientation, m_positionX, m_positionY, and m_positionZ.
Referenced by Corpse::Create(), Creature::Create(), GameObject::Create(), Transport::Create(), AreaTrigger::CreateAreaTrigger(), Pet::CreateBaseAtCreature(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), Transport::CreateLocal(), Transport::CreateNPCPassenger(), Corpse::LoadCorpseFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), Player::SummonPet(), Skyfire::DelayedUnitRelocation::Visit(), and Map::VisitNearbyCellsOf().
|
inlinestatic |
Definition at line 427 of file Object.h.
References M_PI.
Referenced by Object::BuildMovementUpdate(), TransportBase::CalculatePassengerOffset(), TransportBase::CalculatePassengerPosition(), LuaGameObject::GetRelativePoint(), LuaUnit::GetRelativePoint(), HasInArc(), npc_coldflame::npc_coldflameAI::IsSummonedBy(), npc_meteor_strike_initial::npc_meteor_strike_initialAI::IsSummonedBy(), SetOrientation(), and boss_varos::boss_varosAI::UpdateAI().
|
inline |
Definition at line 297 of file Object.h.
References operator==().
| bool Position::operator== | ( | Position const & | a | ) |
Definition at line 1424 of file Object.cpp.
References m_orientation, m_positionX, m_positionY, and m_positionZ.
Referenced by operator!=().
|
inline |
|
inline |
|
inline |
Definition at line 302 of file Object.h.
References m_positionX, and m_positionY.
Referenced by ObjectAccessor::ConvertCorpseForPlayer(), Corpse::Create(), Creature::Create(), GameObject::Create(), Player::Create(), Transport::Create(), AreaTrigger::CreateAreaTrigger(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), Transport::CreateLocal(), Transport::CreateNPCPassenger(), Map::CreatureRelocation(), Map::CreatureRespawnRelocation(), ConfusedMovementGenerator< T >::DoUpdate(), Spell::EffectCreateTamedPet(), Spell::EffectPullTowards(), Creature::FarTeleportTo(), Map::GameObjectRelocation(), Map::GameObjectRespawnRelocation(), GetPosition(), WorldObject::GetRandomPoint(), gobject_commandscript::HandleGameObjectMoveCommand(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleMoveWorldportAckOpcode(), npc_commandscript::HandleNpcTameCommand(), WorldSession::HandleUpdateMissileTrajectory(), WorldSession::HandleUpdateProjectilePosition(), npc_coldflame::npc_coldflameAI::IsSummonedBy(), Corpse::LoadCorpseFromDB(), Creature::LoadCreatureFromDB(), Player::LoadFromDB(), Pet::LoadPetFromDB(), ObjectMgr::LoadTempSummons(), spell_q12308_escape_from_silverbrook_summon_worgen::spell_q12308_escape_from_silverbrook_summon_worgen_SpellScript::ModDest(), LuaGameObject::Move(), Map::MoveAllCreaturesInMoveList(), Map::MoveAllGameObjectsInMoveList(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), operator>>(), operator>>(), Map::PlayerRelocation(), Spell::SelectImplicitTrajTargets(), Unit::SendTeleportPacket(), spell_omega_stance_spider_effect::spell_omega_stance_spider_effect_SpellScript::SetDestPosition(), WorldObject::SummonCreature(), LuaUnit::SummonGuardian(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Player::SummonPet(), Player::TeleportTo(), boss_twinemperorsAI::TeleportToMyBrother(), Transport::TeleportTransport(), boss_saviana_ragefire::boss_saviana_ragefireAI::UpdateAI(), boss_sindragosa::boss_sindragosaAI::UpdateAI(), Unit::UpdateHeight(), Spell::UpdatePointers(), Transport::UpdatePosition(), WorldLocation::WorldLocation(), and WorldLocation::WorldRelocate().
|
inline |
Definition at line 306 of file Object.h.
References m_positionX, m_positionY, and m_positionZ.
|
inline |
Definition at line 310 of file Object.h.
References m_positionX, m_positionY, m_positionZ, and SetOrientation().
|
inline |
Definition at line 314 of file Object.h.
References m_orientation, m_positionX, m_positionY, m_positionZ, and SetOrientation().
|
inline |
Definition at line 318 of file Object.h.
References m_orientation, m_positionX, m_positionY, m_positionZ, and SetOrientation().
| void Position::RelocateOffset | ( | Position const & | offset | ) |
Definition at line 1841 of file Object.cpp.
References GetOrientation(), GetPositionX(), GetPositionY(), GetPositionZ(), M_PI, m_positionX, m_positionY, m_positionZ, and SetOrientation().
Referenced by spell_call_ruby_emerald_amber_drake::spell_call_ruby_emerald_amber_drake_SpellScript::ChangeSummonPos(), spell_q12661_q12669_q12676_q12677_q12713_summon_stefan::spell_q12661_q12669_q12676_q12677_q12713_summon_stefan_SpellScript::ChangeSummonPos(), spell_q12847_summon_soul_moveto_bunny::spell_q12847_summon_soul_moveto_bunny_SpellScript::ChangeSummonPos(), spell_q13291_q13292_q13239_q13261_armored_decoy_summon_skytalon::spell_q13291_q13292_q13239_q13261_armored_decoy_summon_skytalon_SpellScript::ChangeSummonPos(), spell_valanar_kinetic_bomb::spell_valanar_kinetic_bomb_SpellScript::ChangeSummonPos(), spell_wyrmrest_skytalon_summon_red_dragon_buddy::spell_wyrmrest_skytalon_summon_red_dragon_buddy_SpellScript::ChangeSummonPos(), spell_algalon_cosmic_smash::spell_algalon_cosmic_smash_SpellScript::ModDestHeight(), spell_anraphet_omega_stance_summon::spell_anraphet_omega_stance_summon_SpellScript::ModDestHeight(), spell_the_lich_king_summon_into_air::spell_the_lich_king_summon_into_air_SpellScript::ModDestHeight(), spell_halion_summon_exit_portals::spell_halion_summon_exit_portals_SpellScript::OnSummon(), and Spell::UpdatePointers().
|
inline |
Definition at line 323 of file Object.h.
References m_orientation, and NormalizeOrientation().
Referenced by GetPositionOffsetTo(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleMovementOpcodes(), spell_alysrazor_turn_monstrosity::spell_alysrazor_turn_monstrosity_SpellScript::KnockBarrage(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), Player::ReadMovementInfo(), Relocate(), Relocate(), Relocate(), RelocateOffset(), Unit::SetInFront(), npc_image_of_medivh::npc_image_of_medivhAI::StartEvent(), npc_commander_dawnforge::npc_commander_dawnforgeAI::Turn_to_Pathaleons_Image(), RotateMovementGenerator::Update(), Unit::UpdateOrientation(), and Unit::UpdateSplinePosition().
| std::string Position::ToString | ( | ) | const |
Definition at line 1441 of file Object.cpp.
References m_orientation, m_positionX, m_positionY, and m_positionZ.
Referenced by Player::GetCoordsMapAreaAndZoneString().
| float Position::m_orientation |
Definition at line 292 of file Object.h.
Referenced by GetOrientation(), GetPosition(), GetPosition(), GetRelativeAngle(), GetRelativeAngle(), WorldSession::HandleMovementOpcodes(), HasInArc(), IsPositionValid(), operator==(), Relocate(), Relocate(), SetOrientation(), Battlefield::SpawnCreature(), and ToString().
| float Position::m_positionX |
Definition at line 287 of file Object.h.
Referenced by FleeingMovementGenerator< T >::_getPoint(), WorldObject::_IsWithinDist(), Spell::CheckCast(), spell_gen_cannibalize::spell_gen_cannibalize_SpellScript::CheckIfCorpseNear(), spell_hun_pet_carrion_feeder::spell_hun_pet_carrion_feeder_SpellScript::CheckIfCorpseNear(), BattlegroundIC::DoAction(), boss_malygos::boss_malygosAI::DoAction(), npc_time_rift::npc_time_riftAI::DoSummonAtRift(), ConfusedMovementGenerator< T >::DoUpdate(), Spell::EffectCharge(), Spell::EffectChargeDest(), WorldObject::GetAreaId(), GetExactDist2dSq(), GetExactDist2dSq(), GetExactDistSq(), GetPosition(), GetPosition(), GetPosition(), GetPosition(), GetPositionOffsetTo(), GetPositionX(), WorldObject::GetRandomPoint(), WorldObject::GetZoneAndAreaId(), WorldObject::GetZoneId(), spell_malygos_random_portal::spell_malygos_random_portal_SpellScript::HandleDummy(), Player::HandleFall(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleMovementOpcodes(), IsPositionValid(), npc_coldflame::npc_coldflameAI::IsSummonedBy(), boss_sara::boss_saraAI::JustSummoned(), Map::MoveAllCreaturesInMoveList(), Map::MoveAllGameObjectsInMoveList(), MotionMaster::MoveJump(), MotionMaster::MovePoint(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), operator==(), npc_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::PassengerBoarded(), Player::ReadMovementInfo(), Relocate(), Relocate(), Relocate(), Relocate(), Relocate(), RelocateOffset(), Player::SendCinematicStart(), Battlefield::SpawnCreature(), npc_agitated_earth_spirit::npc_agitated_earth_spiritAI::SpellHit(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SummonedPortalBoss(), ToString(), boss_malygos::boss_malygosAI::UpdateAI(), npc_doomfire_targetting::npc_doomfire_targettingAI::UpdateAI(), npc_frostbrood_skytalon::npc_frostbrood_skytalonAI::UpdateAI(), npc_frozen_orb_stalker::npc_frozen_orb_stalkerAI::UpdateAI(), npc_ruby_emerald_amber_drake::npc_ruby_emerald_amber_drakeAI::UpdateAI(), and Unit::UpdateSplinePosition().
| float Position::m_positionY |
Definition at line 288 of file Object.h.
Referenced by FleeingMovementGenerator< T >::_getPoint(), WorldObject::_IsWithinDist(), Spell::CheckCast(), spell_gen_cannibalize::spell_gen_cannibalize_SpellScript::CheckIfCorpseNear(), spell_hun_pet_carrion_feeder::spell_hun_pet_carrion_feeder_SpellScript::CheckIfCorpseNear(), BattlegroundIC::DoAction(), boss_malygos::boss_malygosAI::DoAction(), npc_time_rift::npc_time_riftAI::DoSummonAtRift(), ConfusedMovementGenerator< T >::DoUpdate(), Spell::EffectCharge(), Spell::EffectChargeDest(), WorldObject::GetAreaId(), GetExactDist2dSq(), GetExactDist2dSq(), GetExactDistSq(), GetPosition(), GetPosition(), GetPosition(), GetPosition(), GetPositionOffsetTo(), GetPositionY(), WorldObject::GetRandomPoint(), WorldObject::GetZoneAndAreaId(), WorldObject::GetZoneId(), spell_malygos_random_portal::spell_malygos_random_portal_SpellScript::HandleDummy(), Player::HandleFall(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleMovementOpcodes(), IsPositionValid(), npc_coldflame::npc_coldflameAI::IsSummonedBy(), boss_sara::boss_saraAI::JustSummoned(), Map::MoveAllCreaturesInMoveList(), Map::MoveAllGameObjectsInMoveList(), MotionMaster::MoveJump(), MotionMaster::MovePoint(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), spell_halion_summon_exit_portals::spell_halion_summon_exit_portals_SpellScript::OnSummon(), operator==(), npc_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::PassengerBoarded(), Player::ReadMovementInfo(), Relocate(), Relocate(), Relocate(), Relocate(), Relocate(), RelocateOffset(), boss_anubrekhan::boss_anubrekhanAI::Reset(), Player::SendCinematicStart(), Battlefield::SpawnCreature(), npc_agitated_earth_spirit::npc_agitated_earth_spiritAI::SpellHit(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SummonedPortalBoss(), ToString(), boss_malygos::boss_malygosAI::UpdateAI(), npc_doomfire_targetting::npc_doomfire_targettingAI::UpdateAI(), npc_frostbrood_skytalon::npc_frostbrood_skytalonAI::UpdateAI(), npc_frozen_orb_stalker::npc_frozen_orb_stalkerAI::UpdateAI(), npc_ruby_emerald_amber_drake::npc_ruby_emerald_amber_drakeAI::UpdateAI(), and Unit::UpdateSplinePosition().
| float Position::m_positionZ |
Definition at line 289 of file Object.h.
Referenced by FleeingMovementGenerator< T >::_getPoint(), WorldObject::_IsWithinDist(), Spell::CheckCast(), BattlegroundIC::DoAction(), boss_malygos::boss_malygosAI::DoAction(), npc_time_rift::npc_time_riftAI::DoSummonAtRift(), CreatureAI::DoSummonFlyer(), ConfusedMovementGenerator< T >::DoUpdate(), Spell::EffectCharge(), Spell::EffectChargeDest(), WorldObject::GetAreaId(), GetExactDistSq(), GetExactDistSq(), GetPosition(), GetPosition(), GetPosition(), GetPositionOffsetTo(), GetPositionZ(), WorldObject::GetRandomPoint(), WorldObject::GetZoneAndAreaId(), WorldObject::GetZoneId(), spell_malygos_random_portal::spell_malygos_random_portal_SpellScript::HandleDummy(), Player::HandleFall(), spell_ulduar_squeezed_lifeless::spell_ulduar_squeezed_lifeless_SpellScript::HandleInstaKill(), WorldSession::HandleMovementOpcodes(), IsPositionValid(), boss_sara::boss_saraAI::JustSummoned(), MotionMaster::MoveJump(), MotionMaster::MovePoint(), WorldObject::MovePosition(), WorldObject::MovePositionToFirstCollision(), spell_ulduar_stone_grip::spell_ulduar_stone_grip_AuraScript::OnRemoveVehicle(), operator==(), npc_wyrmrest_skytalon::npc_wyrmrest_skytalonAI::PassengerBoarded(), Player::ReadMovementInfo(), Relocate(), Relocate(), Relocate(), Relocate(), RelocateOffset(), Player::SendCinematicStart(), boss_amanitar::boss_amanitarAI::SpawnAdds(), Battlefield::SpawnCreature(), npc_agitated_earth_spirit::npc_agitated_earth_spiritAI::SpellHit(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SummonedPortalBoss(), ToString(), boss_malygos::boss_malygosAI::UpdateAI(), boss_saviana_ragefire::boss_saviana_ragefireAI::UpdateAI(), boss_sindragosa::boss_sindragosaAI::UpdateAI(), npc_doomfire_targetting::npc_doomfire_targettingAI::UpdateAI(), npc_enslaved_netherwing_drake::npc_enslaved_netherwing_drakeAI::UpdateAI(), npc_frostbrood_skytalon::npc_frostbrood_skytalonAI::UpdateAI(), npc_frozen_orb_stalker::npc_frozen_orb_stalkerAI::UpdateAI(), npc_ruby_emerald_amber_drake::npc_ruby_emerald_amber_drakeAI::UpdateAI(), and Unit::UpdateSplinePosition().