Project SkyFire Core
SkyFire 5.4.8 server core API documentation
Loading...
Searching...
No Matches
WorldLocation Class Reference

#include <Object.h>

Inheritance diagram for WorldLocation:
Collaboration diagram for WorldLocation:

Public Member Functions

uint32 GetMapId () const
 WorldLocation (const WorldLocation &loc)
 WorldLocation (uint32 _mapid=MAPID_INVALID, float _x=0, float _y=0, float _z=0, float _o=0)
void WorldRelocate (const WorldLocation &loc)
Public Member Functions inherited from Position
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

Public Attributes

uint32 m_mapId
Public Attributes inherited from Position
float m_orientation
float m_positionX
float m_positionY
float m_positionZ

Additional Inherited Members

Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)

Detailed Description

Definition at line 533 of file Object.h.

Constructor & Destructor Documentation

◆ WorldLocation() [1/2]

◆ WorldLocation() [2/2]

WorldLocation::WorldLocation ( const WorldLocation & loc)
inline

Definition at line 540 of file Object.h.

References WorldLocation(), and WorldRelocate().

Member Function Documentation

◆ GetMapId()

uint32 WorldLocation::GetMapId ( ) const
inline

Definition at line 546 of file Object.h.

References m_mapId.

Referenced by Group::_homebindIfInstance(), Player::_LoadItem(), Player::ActivateTaxiPathTo(), ObjectAccessor::AddCorpse(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Group::AddMember(), Map::AddObjectToRemoveList(), WorldObject::AddObjectToRemoveList(), Map::AddObjectToSwitchList(), Object::BuildFieldsUpdate(), Creature::CanCreatureAttack(), AchievementMgr< T >::CanUpdateCriteria(), Player::CheckAreaExploreAndOutdoor(), Player::ContinueTaxiFlight(), OPvPCapturePoint::DelCreature(), Player::DestroyZoneLimitedItem(), ScriptedAI::DoTeleportPlayer(), Spell::EffectBind(), Spell::EffectStuck(), ChatHandler::ExecuteCommandInTable(), lfg::LFGMgr::FinishDungeon(), Skyfire::XP::Gain(), Group::GetBoundInstance(), Battleground::GetClosestGraveYard(), Player::GetCurrentResearchDigsite(), Player::GetMapAreaAndZoneString(), LuaWorldObject::GetMapId(), Unit::GetMountCapability(), Player::GetNextQuest(), Player::GetResearchDigsiteForFind(), BattlePetSpawnMgr::GetZonePool(), BattlePetSpawnMgr::GetZonePool(), Group::GroupLoot(), misc_commandscript::HandleAppearCommand(), Battleground::HandleAreaTrigger(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleCorpseQueryOpcode(), debug_commandscript::HandleDebugRestCommand(), gobject_commandscript::HandleGameObjectMoveCommand(), gobject_commandscript::HandleGameObjectNearCommand(), gobject_commandscript::HandleGameObjectTargetCommand(), gm_commandscript::HandleGMNoteCommand(), go_commandscript::HandleGoGridCommand(), go_commandscript::HandleGoXYZCommand(), misc_commandscript::HandleGPSCommand(), WorldSession::HandleGroupInviteOpcode(), group_commandscript::HandleGroupSummonCommand(), instance_commandscript::HandleInstanceUnbindCommand(), mmaps_commandscript::HandleMmapLoadedTilesCommand(), mmaps_commandscript::HandleMmapLocCommand(), mmaps_commandscript::HandleMmapPathCommand(), mmaps_commandscript::HandleMmapStatsCommand(), WorldSession::HandleMoveWorldportAckOpcode(), misc_commandscript::HandleNearGraveCommand(), npc_commandscript::HandleNpcMoveCommand(), npc_commandscript::HandleNpcNearCommand(), misc_commandscript::HandlePInfoCommand(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleSummonCommand(), tele_commandscript::HandleTeleAddCommand(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), DisableMgr::IsDisabledFor(), Player::IsInCurrentInnArea(), MapManager::IsValidMapCoord(), Player::KillPlayer(), Player::LoadFromDB(), WorldObject::MovePositionToFirstCollision(), Unit::NearTeleportTo(), Group::NeedBeforeGreed(), Unit::OutDebugInfo(), InstanceMap::PermBindAllPlayers(), Player::PrepareQuestMenu(), WorldObject::RebuildTerrainSwaps(), BfGraveyard::RelocateDeadPlayers(), ObjectAccessor::RemoveCorpse(), Group::RemoveMember(), Player::RepopAtGraveyard(), AchievementMgr< T >::RequirementsSatisfied(), Player::SaveRecallPosition(), Corpse::SaveToDB(), Creature::SaveToDB(), GameObject::SaveToDB(), Player::SaveToDB(), BattlegroundSA::SendBoatTransportUpdates(), Map::SendInitSelf(), Map::SendInitTransports(), Player::SendInitWorldStates(), WorldSession::SendLearnNewTaxiNode(), Map::SendRemoveTransports(), WorldSession::SendSpiritResurrect(), WorldSession::SendTaxiMenu(), WorldSession::SendTaxiStatus(), BattlegroundSA::SendTransportInit(), BattlegroundSA::SendTransportsRemove(), Object::SendUpdateToPlayer(), Player::SetBattlegroundEntryPoint(), Player::SetHomebind(), Unit::SetOwnerGUID(), BattlegroundSA::ShouldDelayStartForDebug(), lfg::LFGMgr::TeleportDungeonGroupOut(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Player::TeleportTo(), Transport::TeleportTransport(), GameObject::Update(), Player::UpdateAreaDependentAuras(), Player::UpdateForQuestWorldObjects(), Player::UpdateRestAreaState(), Player::UpdateTriggerVisibility(), Player::UpdateZone(), GameObject::Use(), and WorldRelocate().

◆ WorldRelocate()

void WorldLocation::WorldRelocate ( const WorldLocation & loc)
inline

Definition at line 542 of file Object.h.

References GetMapId(), m_mapId, Position::Relocate(), and WorldLocation().

Referenced by Spell::EffectBind(), and WorldLocation().

Member Data Documentation

◆ m_mapId


The documentation for this class was generated from the following file:
  • src/server/game/Entities/Object/Object.h