![]() |
TrinityCore
|
#include <Position.h>
Inheritance diagram for WorldLocation:Public Member Functions | |
| constexpr | WorldLocation () |
| constexpr | WorldLocation (uint32 mapId, float x, float y) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z) |
| constexpr | WorldLocation (uint32 mapId, float x, float y, float z, float o) |
| constexpr | WorldLocation (uint32 mapId, Position const &position) |
| constexpr void | WorldRelocate (WorldLocation const &loc) |
| constexpr void | WorldRelocate (WorldLocation const *loc) |
| constexpr void | WorldRelocate (uint32 mapId, Position const &pos) |
| constexpr void | WorldRelocate (uint32 mapId, float x, float y, float z, float o) |
| constexpr WorldLocation | GetWorldLocation () const |
| constexpr uint32 | GetMapId () const |
| std::string | GetDebugInfo () const |
Public Member Functions inherited from Position | |
| constexpr | Position () |
| constexpr | Position (float x, float y) |
| constexpr | Position (float x, float y, float z) |
| constexpr | Position (float x, float y, float z, float o) |
| bool | operator== (Position const &a) const |
| constexpr void | Relocate (float x, float y) |
| constexpr void | Relocate (float x, float y, float z) |
| constexpr void | Relocate (float x, float y, float z, float o) |
| constexpr void | Relocate (Position const &pos) |
| constexpr void | Relocate (Position const *pos) |
| void | RelocateOffset (Position const &offset) |
| constexpr void | SetOrientation (float orientation) |
| constexpr float | GetPositionX () const |
| constexpr float | GetPositionY () const |
| constexpr float | GetPositionZ () const |
| constexpr float | GetOrientation () const |
| constexpr void | GetPosition (float &x, float &y) const |
| constexpr void | GetPosition (float &x, float &y, float &z) const |
| constexpr void | GetPosition (float &x, float &y, float &z, float &o) const |
| constexpr 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 |
| constexpr float | GetExactDist2dSq (const float x, const float y) const |
| constexpr float | GetExactDist2dSq (Position const &pos) const |
| constexpr 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 |
| constexpr float | GetExactDistSq (float x, float y, float z) const |
| constexpr float | GetExactDistSq (Position const &pos) const |
| constexpr 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 |
| Position | GetPositionOffsetTo (Position const &endPos) 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 |
| constexpr bool | IsInDist2d (float x, float y, float dist) const |
| constexpr bool | IsInDist2d (Position const &pos, float dist) const |
| constexpr bool | IsInDist2d (Position const *pos, float dist) const |
| constexpr bool | IsInDist (float x, float y, float z, float dist) const |
| constexpr bool | IsInDist (Position const &pos, float dist) const |
| constexpr bool | IsInDist (Position const *pos, float dist) const |
| bool | IsWithinBox (Position const &boxOrigin, float length, float width, float height) const |
| bool | IsWithinVerticalCylinder (Position const &cylinderOrigin, float radius, float height, bool isDoubleVertical=false) const |
| bool | IsInPolygon2D (Position const &polygonOrigin, std::span< Position const > vertices) 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 |
Public Attributes | |
| uint32 | m_mapId |
Public Attributes inherited from Position | |
| float | m_positionX |
| float | m_positionY |
| float | m_positionZ |
Additional Inherited Members | |
Static Public Member Functions inherited from Position | |
| static float | NormalizeOrientation (float o) |
Definition at line 191 of file Position.h.
|
inlineconstexpr |
Definition at line 194 of file Position.h.
Referenced by Player::_LoadBGData(), Player::SetBattlegroundEntryPoint(), Transport::TeleportPassengersAndHideTransport(), and Player::TeleportTo().
|
inlineconstexpr |
Definition at line 196 of file Position.h.
|
inlineconstexpr |
Definition at line 197 of file Position.h.
|
inlineconstexpr |
Definition at line 198 of file Position.h.
Definition at line 200 of file Position.h.
| std::string WorldLocation::GetDebugInfo | ( | ) | const |
Definition at line 316 of file Position.cpp.
References m_mapId, MapEntry::MapName, sMapStore, Trinity::StringFormat(), and sWorld.
Referenced by WorldObject::GetDebugInfo().
|
inlineconstexpr |
Definition at line 216 of file Position.h.
Referenced by Group::_homebindIfInstance(), Pet::_LoadAuras(), Player::_LoadAuras(), Player::_LoadHomeBind(), Player::_LoadItem(), KillRewarder::_RewardGroup(), Player::_SaveBGData(), Player::_SaveStoredAuraTeleportLocations(), Unit::AddAura(), Group::AddMember(), WorldObject::AddObjectToRemoveList(), Map::AddObjectToRemoveList(), Map::AddObjectToSwitchList(), BaseEntity::BuildFieldsUpdate(), Player::BuildPlayerRepop(), PathGenerator::BuildPolyPath(), Player::CheckAreaExplore(), spell_dru_travel_form_dummy::CheckCast(), Spell::CheckCast(), spell_dru_travel_form::CheckLocationForForm(), Player::ContinueTaxiFlight(), AreaTrigger::Create(), Corpse::Create(), Player::Create(), SceneObject::Create(), Conversation::Create(), Vignettes::Create(), DynamicObject::CreateDynamicObject(), Creature::CreateFromProto(), BaseEntity::DestroyForPlayer(), Player::DestroyZoneLimitedItem(), go_commandscript::DoTeleport(), ScriptedAI::DoTeleportAll(), ScriptedAI::DoTeleportPlayer(), Spell::EffectBind(), Spell::EffectChangeRaidMarker(), Spell::EffectStuck(), Spell::EffectTeleportUnits(), Spell::EffectTeleportUnitsWithVisualLoadingScreen(), Battleground::EndBattleground(), Garrison::Enter(), DelayedSpellTeleportEvent::Execute(), lfg::LFGMgr::FinishDungeon(), TerrainMgr::GetAreaId(), ObjectMgr::GetClosestGraveyard(), ObjectMgr::GetClosestGraveyardInZone(), Unit::GetMountCapability(), ConditionMgr::GetPlayerConditionLfgValue(), GetTeleportOptions(), TerrainMgr::GetZoneAndAreaId(), TerrainMgr::GetZoneId(), account_commandscript::HandleAccountOnlineListCommandWithParameters(), WorldSession::HandleActivateTaxiOpcode(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleCharRaceOrFactionChangeCallback(), debug_commandscript::HandleDebugNearGraveyard(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), go_commandscript::HandleGoGraveyardCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoXYZCommand(), misc_commandscript::HandleGPSCommand(), group_commandscript::HandleGroupSummonCommand(), mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapPathCommand(), mmaps_commandscript::HandleMmapStatsCommand(), modify_commandscript::HandleModifyPhaseCommand(), WorldSession::HandleMoveSplineDoneOpcode(), WorldSession::HandleMoveWorldportAck(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), WorldSession::HandlePartyInviteOpcode(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), WorldSession::HandleQueryCorpseLocation(), WorldSession::HandleSendPingWorldPoint(), WorldSession::HandleSetSavedInstanceExtend(), WorldSession::HandleSpawnTrackingUpdate(), Unit::HandleSpellClick(), misc_commandscript::HandleSummonCommand(), WorldSession::HandleSuspendTokenResponse(), tele_commandscript::HandleTeleAddCommand(), tele_commandscript::HandleTeleCommand(), DisableMgr::IsDisabledFor(), Player::IsInAreaTrigger(), Creature::IsSpawnedOnTransport(), MapManager::IsValidMapCoord(), Player::KillPlayer(), Garrison::Leave(), spell_blades_edge_arena_game_event::Load(), spell_undermine_arena_reaction_trigger_low_health::Load(), spell_undermine_arena_reaction_trigger::Load(), spell_undermine_arena_warning_countdown::Load(), spell_undermine_arena_warning_teleport::Load(), spell_enigma_arena_reaction_trigger_low_health::Load(), spell_enigma_arena_reaction_trigger::Load(), spell_enigma_arena_warning_countdown::Load(), spell_enigma_arena_warning_teleport::Load(), spell_arena_reaction_trigger_low_health::Load(), spell_arena_reaction_trigger::Load(), spell_arena_low_health_dying_trigger::Load(), spell_zandalar_arena_reaction_trigger_low_health::Load(), spell_zandalar_arena_reaction_trigger::Load(), spell_nokhudon_proving_grounds_trigger_low_health::Load(), spell_nokhudon_proving_grounds_reaction_trigger::Load(), AreaTriggerDataStore::LoadAreaTriggerSpawns(), Player::LoadCorpse(), Player::LoadFromDB(), lfg::LFGMgr::LoadLFGDungeons(), SpellMgr::LoadSpellTargetPositions(), LogCommandUsage(), CriteriaHandler::ModifierSatisfied(), MotionMaster::MoveFall(), WorldObject::MovePositionToFirstCollision(), Unit::NearTeleportTo(), GameObject::OnLootRelease(), PhasingHandler::OnMapChange(), AreaTrigger::ValuesUpdateForPlayerWithMaskSender::operator()(), Conversation::ValuesUpdateForPlayerWithMaskSender::operator()(), Corpse::ValuesUpdateForPlayerWithMaskSender::operator()(), Creature::ValuesUpdateForPlayerWithMaskSender::operator()(), DynamicObject::ValuesUpdateForPlayerWithMaskSender::operator()(), GameObject::ValuesUpdateForPlayerWithMaskSender::operator()(), AzeriteEmpoweredItem::ValuesUpdateForPlayerWithMaskSender::operator()(), AzeriteItem::ValuesUpdateForPlayerWithMaskSender::operator()(), Bag::ValuesUpdateForPlayerWithMaskSender::operator()(), Item::ValuesUpdateForPlayerWithMaskSender::operator()(), Player::ValuesUpdateForPlayerWithMaskSender::operator()(), SceneObject::ValuesUpdateForPlayerWithMaskSender::operator()(), Unit::OutDebugInfo(), PathGenerator::PathGenerator(), Player::PrepareQuestMenu(), Group::RemoveMember(), Player::RepopAtGraveyard(), CriteriaHandler::RequirementsSatisfied(), Player::SavePositionInDB(), Corpse::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Player::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Spell::SelectImplicitCasterDestTargets(), Spell::SelectImplicitNearbyTargets(), Player::SendBindPointUpdate(), Map::SendInitSelf(), Player::SendInitWorldStates(), WorldSession::SendLearnNewTaxiNode(), BaseEntity::SendOutOfRangeForPlayer(), Garrison::SendRemoteInfo(), Map::SendRemoveTransports(), OutdoorPvPHP::SendRemoveWorldStates(), OutdoorPvPNA::SendRemoveWorldStates(), OutdoorPvPSI::SendRemoveWorldStates(), OutdoorPvPTF::SendRemoveWorldStates(), OutdoorPvPZM::SendRemoveWorldStates(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), BaseEntity::SendUpdateToPlayer(), Map::SendUpdateTransportVisibility(), Player::SetBattlegroundEntryPoint(), Player::SetHomebind(), Unit::SetOwnerGUID(), Spell::Spell(), boss_malchezaar::boss_malchezaarAI::SummonInfernal(), Transport::TeleportPassengersAndHideTransport(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), GameObject::Update(), Transport::Update(), Creature::Update(), Map::Update(), Player::UpdateAreaDependentAuras(), Creature::UpdateEntry(), Transport::UpdatePosition(), Player::UpdateTriggerVisibility(), Player::UpdateVisibilityOf(), Player::UpdateVisibleObjectInteractions(), GameObject::Use(), WorldRelocate(), and WorldRelocate().
|
inlineconstexpr |
Definition at line 211 of file Position.h.
Referenced by Spell::EffectBind(), spell_midsummer_juggle_torch::HandleDummy(), spell_wintergrasp_defender_teleport_trigger::HandleDummy(), and spell_dracthyr_login::HandleTeleport().
|
inlineconstexpr |
Definition at line 205 of file Position.h.
Definition at line 204 of file Position.h.
|
inlineconstexpr |
Definition at line 202 of file Position.h.
References GetMapId().
Referenced by Player::_LoadHomeBind(), Player::AddStoredAuraTeleportLocation(), Player::CreateCorpse(), Spell::EffectBind(), WorldSession::HandleCharRaceOrFactionChangeCallback(), Player::LoadCorpse(), Player::LoadFromDB(), ObjectMgr::LoadWorldSafeLocs(), RaidMarker::RaidMarker(), Player::RemovedInsignia(), Player::SendSummonRequestFrom(), Player::SetBattlegroundEntryPoint(), Player::SetHomebind(), Player::SpawnCorpseBones(), and battleground_strand_of_the_ancients::TeleportToEntrancePosition().
|
inlineconstexpr |
Definition at line 203 of file Position.h.
References GetMapId().
| uint32 WorldLocation::m_mapId |
Definition at line 218 of file Position.h.
Referenced by Spell::EffectTeleportUnits(), Spell::EffectTeleportUnitsWithVisualLoadingScreen(), GetDebugInfo(), Player::SetBattlegroundEntryPoint(), WorldObject::SetMap(), BattlefieldTB::SetupBattlefield(), BattlefieldWG::SetupBattlefield(), and Player::TeleportToBGEntryPoint().