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

#include <Object.h>

Inheritance diagram for WorldObject:
Collaboration diagram for WorldObject:

Public Member Functions

void _Create (uint32 guidlow, HighGuid guidhigh, uint32 phaseMask)
void AddObjectToRemoveList ()
void AddToNotify (uint16 f)
void BuildUpdate (UpdateDataMapType &)
bool CanSeeOrDetect (WorldObject const *obj, bool ignoreStealth=false, bool distanceCheck=false) const
virtual void CleanupsBeforeDelete (bool finalCleanup=true)
void ClearPhases (bool update=false)
void DestroyForNearbyPlayers ()
MapFindMap () const
CreatureFindNearestCreature (uint32 entry, float range, bool alive=true) const
GameObjectFindNearestGameObject (uint32 entry, float range) const
GameObjectFindNearestGameObjectOfType (GameobjectTypes type, float range) const
uint32 GetAreaId () const
Map const * GetBaseMap () const
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float angle=0) const
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
void GetCreatureListWithEntryInGrid (std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
float GetDistance (float x, float y, float z) const
float GetDistance (Position const &pos) const
float GetDistance (WorldObject const *obj) const
float GetDistance2d (float x, float y) const
float GetDistance2d (WorldObject const *obj) const
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
float GetDistanceZ (WorldObject const *obj) const
void GetFirstCollisionPosition (Position &pos, float dist, float angle)
void GetGameObjectListWithEntryInGrid (std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const
float GetGridActivationRange () const
uint32 GetInstanceId () const
InstanceScriptGetInstanceScript ()
virtual uint8 getLevelForTarget (WorldObject const *) const
MapGetMap () const
std::string const & GetName () const
virtual std::string const & GetNameForLocaleIdx (LocaleConstant) const
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float searcher_size, float distance2d, float absAngle) const
void GetNearPoint2D (float &x, float &y, float distance, float absAngle) const
void GetNearPosition (Position &pos, float dist, float angle)
uint16 GetNotifyFlags () const
float GetObjectSize () const
uint32 GetPhaseMask () const
std::set< uint32 > const & GetPhases () const
void GetPlayerListInGrid (std::list< Player * > &lList, float fMaxSearchRange) const
void GetRandomNearPosition (Position &pos, float radius)
void GetRandomPoint (Position const &srcPos, float distance, float &rand_x, float &rand_y, float &rand_z) const
void GetRandomPoint (Position const &srcPos, float distance, Position &pos) const
float GetSightRange (WorldObject const *target=NULL) const
virtual float GetStationaryO () const
virtual float GetStationaryX () const
virtual float GetStationaryY () const
virtual float GetStationaryZ () const
std::set< uint32 > const & GetTerrainSwaps () const
virtual uint64 GetTransGUID () const
float GetTransOffsetO () const
float GetTransOffsetX () const
float GetTransOffsetY () const
float GetTransOffsetZ () const
TransportGetTransport () const
int8 GetTransSeat () const
uint32 GetTransTime () const
float GetVisibilityRange () const
std::set< uint32 > const & GetWorldMapSwaps () const
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
uint32 GetZoneId () const
ZoneScriptGetZoneScript () const
bool HasPhaseList (uint32 phase)
bool InSamePhase (uint32 phasemask) const
bool InSamePhase (WorldObject const *obj) const
bool isActiveObject () const
bool isInBack (WorldObject const *target, float arc=M_PI) const
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
bool isInFront (WorldObject const *target, float arc=M_PI) const
bool IsInMap (WorldObject const *obj) const
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
bool IsInRange2d (float x, float y, float minRange, float maxRange) const
bool IsInRange3d (float x, float y, float z, float minRange, float maxRange) const
bool isNeedNotify (uint16 f) const
bool IsPermanentWorldObject () const
bool IsPhased (uint32 phase) const
bool IsPhased (WorldObject const *obj) const
bool IsSelfOrInSameMap (WorldObject const *obj) const
bool IsTerrainSwaped (uint32 terrainSwap) const
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true) const
bool IsWithinDist2d (float x, float y, float dist) const
bool IsWithinDist2d (Position const *pos, float dist) const
bool IsWithinDist3d (float x, float y, float z, float dist) const
bool IsWithinDist3d (Position const *pos, float dist) const
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true) const
bool IsWithinLOS (float x, float y, float z) const
bool IsWithinLOSInMap (WorldObject const *obj) const
bool IsWorldObject () const
void MonsterSay (const char *text, Language language, WorldObject const *target)
void MonsterSay (int32 textId, Language language, WorldObject const *target)
void MonsterTextEmote (const char *text, WorldObject const *target, bool IsBossEmote=false)
void MonsterTextEmote (int32 textId, WorldObject const *target, bool IsBossEmote=false)
void MonsterWhisper (const char *text, Player const *target, bool IsBossWhisper=false)
void MonsterWhisper (int32 textId, Player const *target, bool IsBossWhisper=false)
void MonsterYell (const char *text, Language language, WorldObject const *target)
void MonsterYell (int32 textId, Language language, WorldObject const *target)
void MovePosition (Position &pos, float dist, float angle)
void MovePositionToFirstCollision (Position &pos, float dist, float angle)
bool NotifyExecuted (uint16 f) const
void PlayDirectSound (uint32 sound_id, Player *target=NULL)
void PlayDistanceSound (uint32 sound_id, Player *target)
void RebuildTerrainSwaps ()
void RebuildWorldMapAreaSwaps ()
virtual void RemoveFromWorld ()
void ResetAllNotifies ()
virtual void ResetMap ()
virtual void SaveRespawnTime ()
virtual void SendMessageToSet (WorldPacket *data, bool self)
virtual void SendMessageToSet (WorldPacket *data, Player const *skipped_rcvr)
virtual void SendMessageToSetInRange (WorldPacket *data, float dist, bool self)
void SendObjectDeSpawnAnim (uint64 guid)
void SendPlaySound (uint32 SoundSound, bool OnlySelf)
void setActive (bool isActiveObject)
virtual void SetMap (Map *map)
void SetName (std::string const &newname)
void SetNotified (uint16 f)
virtual bool SetPhased (uint32 id, bool update, bool apply)
virtual void SetPhaseMask (uint32 newPhaseMask, bool update)
void SetTransport (Transport *t)
void SetWorldObject (bool apply)
void SetZoneScript ()
TempSummonSummonCreature (uint32 id, float x, float y, float z, float ang=0, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0) const
TempSummonSummonCreature (uint32 id, Position const &pos, TempSummonType spwtype=TempSummonType::TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0) const
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=NULL)
GameObjectSummonGameObject (uint32 entry, float x, float y, float z, float ang, float rotation0, float rotation1, float rotation2, float rotation3, uint32 respawnTime)
CreatureSummonTrigger (float x, float y, float z, float ang, uint32 dur, CreatureAI *(*GetAI)(Creature *)=NULL)
virtual void Update (uint32)
void UpdateAllowedPositionZ (float x, float y, float &z) const
void UpdateAreaPhase ()
void UpdateGroundPositionZ (float x, float y, float &z) const
virtual void UpdateObjectVisibility (bool forced=true)
template<class NOTIFIER>
void VisitNearbyGridObject (float const &radius, NOTIFIER &notifier) const
template<class NOTIFIER>
void VisitNearbyObject (float const &radius, NOTIFIER &notifier) const
template<class NOTIFIER>
void VisitNearbyWorldObject (float const &radius, NOTIFIER &notifier) const
virtual ~WorldObject ()
Public Member Functions inherited from Object
virtual void AddToWorld ()
bool AddUInt64Value (uint16 index, uint64 value)
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
void ApplyPercentModFloatValue (uint16 index, float val, bool apply)
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player *target) const
void ClearUpdateMask (bool remove)
virtual void DestroyForPlayer (Player *target, bool onDeath=false) const
void ForceValuesUpdateAtIndex (uint32)
uint8 GetByteValue (uint16 index, uint8 offset) const
uint32 GetDynamicUInt32Value (uint32 tab, uint16 index) const
uint32 GetEntry () const
float GetFloatValue (uint16 index) const
uint64 GetGUID () const
uint32 GetGUIDHigh () const
uint32 GetGUIDLow () const
uint32 GetGUIDMid () const
int32 GetInt32Value (uint16 index) const
ObjectGuid GetObjectGUID () const
float GetObjectScale () const
const ByteBufferGetPackGUID () const
TypeID GetTypeId () const
uint16 GetUInt16Value (uint16 index, uint8 offset) const
uint32 GetUInt32Value (uint16 index) const
uint64 GetUInt64Value (uint16 index) const
uint16 GetValuesCount () const
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
bool HasFlag (uint16 index, uint32 flag) const
bool HasFlag64 (uint16 index, uint64 flag) const
virtual bool hasInvolvedQuest (uint32) const
virtual bool hasQuest (uint32) const
bool IsInWorld () const
bool isType (uint16 mask) const
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void RemoveFieldNotifyFlag (uint16 flag)
void RemoveFlag (uint16 index, uint32 oldFlag)
void RemoveFlag64 (uint16 index, uint64 oldFlag)
bool RemoveUInt64Value (uint16 index, uint64 value)
void SendDestroyObject (Player *target, ObjectGuid Guid, bool onDeath=false) const
void SendUpdateToPlayer (Player *player)
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
void SetByteValue (uint16 index, uint8 offset, uint8 value)
void SetDynamicUInt32Value (uint32 tab, uint16 index, uint32 value)
void SetEntry (uint32 entry)
void SetFieldNotifyFlag (uint16 flag)
void SetFlag (uint16 index, uint32 newFlag)
void SetFlag64 (uint16 index, uint64 newFlag)
void SetFloatValue (uint16 index, float value)
void SetInt16Value (uint16 index, uint8 offset, int16 value)
void SetInt32Value (uint16 index, int32 value)
virtual void SetObjectScale (float scale)
void SetStatFloatValue (uint16 index, float value)
void SetStatInt32Value (uint16 index, int32 value)
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
void SetUInt32Value (uint16 index, uint32 value)
void SetUInt64Value (uint16 index, uint64 value)
AreaTriggerToAreaTrigger ()
AreaTrigger const * ToAreaTrigger () const
CorpseToCorpse ()
Corpse const * ToCorpse () const
CreatureToCreature ()
Creature const * ToCreature () const
DynamicObjectToDynObject ()
DynamicObject const * ToDynObject () const
GameObjectToGameObject ()
GameObject const * ToGameObject () const
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
void ToggleFlag (uint16 index, uint32 flag)
void ToggleFlag64 (uint16 index, uint64 flag)
PlayerToPlayer ()
Player const * ToPlayer () const
UnitToUnit ()
Unit const * ToUnit () const
void UpdateUInt32Value (uint16 index, uint32 value)
virtual ~Object ()
Public Member Functions inherited from WorldLocation
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 LastUsedScriptID
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
FlaggedValuesArray32< int32, uint32, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibilityDetect
MovementInfo m_movementInfo
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibility
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibilityDetect
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
Public Attributes inherited from WorldLocation
uint32 m_mapId
Public Attributes inherited from Position
float m_orientation
float m_positionX
float m_positionY
float m_positionZ

Protected Member Functions

virtual bool IsAlwaysDetectableFor (WorldObject const *) const
virtual bool IsAlwaysVisibleFor (WorldObject const *) const
virtual bool IsInvisibleDueToDespawn () const
virtual bool IsNeverVisible () const
void SetLocationInstanceId (uint32 _instanceId)
void SetLocationMapId (uint32 _mapId)
 WorldObject (bool isWorldObject)
Protected Member Functions inherited from Object
std::string _ConcatFields (uint16 startIndex, uint16 size) const
void _Create (uint32 guidlow, uint32 entry, HighGuid guidhigh)
void _InitValues ()
void _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
void BuildDynamicValuesUpdate (uint8 updateType, ByteBuffer *data, Player *target) const
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
virtual void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player *target) const
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 Object ()

Protected Attributes

bool m_isActive
const bool m_isWorldObject
std::string m_name
Transportm_transport
ZoneScriptm_zoneScript
Protected Attributes inherited from Object
union { 
   float *   m_floatValues 
   int32 *   m_int32Values 
   uint32 *   m_uint32Values 
}; 
UpdateMask _changesMask
std::vector< bool * > m_dynamicChange
std::vector< uint32 * > m_dynamicTab
uint16 m_fieldNotifyFlags
uint16 m_objectType
TypeID m_objectTypeId
bool m_objectUpdated
uint16 m_updateFlag
uint16 m_valuesCount

Private Member Functions

virtual bool _IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D) const
virtual bool CanAlwaysSee (WorldObject const *) const
bool CanDetect (WorldObject const *obj, bool ignoreStealth) const
bool CanDetectInvisibilityOf (WorldObject const *obj) const
bool CanDetectStealthOf (WorldObject const *obj) const
bool CanNeverSee (WorldObject const *obj) const

Private Attributes

std::set< uint32_phases
std::set< uint32_terrainSwaps
std::set< uint32_worldMapSwaps
Mapm_currMap
uint16 m_executed_notifies
uint32 m_InstanceId
uint16 m_notifyflags
uint32 m_phaseMask

Additional Inherited Members

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

Detailed Description

Definition at line 609 of file Object.h.

Constructor & Destructor Documentation

◆ WorldObject()

WorldObject::WorldObject ( bool isWorldObject)
explicitprotected

Definition at line 1514 of file Object.cpp.

References GHOST_VISIBILITY_ALIVE, GHOST_VISIBILITY_GHOST, m_currMap, m_executed_notifies, m_InstanceId, m_isActive, m_isWorldObject, m_name, m_notifyflags, m_phaseMask, m_serverSideVisibility, m_serverSideVisibilityDetect, m_transport, m_zoneScript, PHASEMASK_NORMAL, SERVERSIDE_VISIBILITY_GHOST, and WorldLocation::WorldLocation().

Referenced by Unit::_IsValidAttackTarget(), GameObject::_IsWithinDist(), _IsWithinDist(), Transport::AddPassenger(), AreaTrigger::AreaTrigger(), Creature::CanAlwaysSee(), Player::CanAlwaysSee(), CanAlwaysSee(), CanDetect(), CanDetectInvisibilityOf(), CanDetectStealthOf(), CanNeverSee(), Player::CanRollForItemInLFG(), CanSeeOrDetect(), Corpse::Corpse(), DynamicObject::DynamicObject(), Creature::FocusTarget(), GameObject::GameObject(), GetContactPoint(), Unit::GetCreature(), Player::GetDefaultGossipMenuForSource(), GetDistance(), GetDistance2d(), GetDistanceOrder(), GetDistanceZ(), GameObject::GetGameObject(), Player::GetGossipTextId(), Player::GetGossipTextId(), Creature::getLevelForTarget(), GameObject::getLevelForTarget(), Unit::getLevelForTarget(), getLevelForTarget(), GetNearPoint(), Unit::GetPlayer(), GetSightRange(), Unit::GetUnit(), Player::GetViewpoint(), Player::GroupEventHappens(), Player::HaveAtClient(), InSamePhase(), Player::IsAlwaysDetectableFor(), Unit::IsAlwaysDetectableFor(), IsAlwaysDetectableFor(), GameObject::IsAlwaysVisibleFor(), Unit::IsAlwaysVisibleFor(), IsAlwaysVisibleFor(), Player::IsAtGroupRewardDistance(), Player::IsAtRecruitAFriendDistance(), isInBack(), IsInBetween(), isInFront(), IsInMap(), IsInRange(), IsPhased(), IsSelfOrInSameMap(), IsWithinDist(), IsWithinDistInMap(), IsWithinLOSInMap(), Unit::JumpTo(), MonsterSay(), MonsterSay(), MonsterTextEmote(), MonsterTextEmote(), MonsterYell(), MonsterYell(), Player::OnGossipSelect(), Player::PrepareGossipMenu(), Player::RemoveFromWorld(), Transport::RemovePassenger(), Player::RewardPlayerAndGroupAtEvent(), Creature::SendAIReaction(), Player::SendPreparedGossip(), Unit::SetFacingToObject(), Unit::SetInFront(), Player::SetSeer(), Player::SetViewpoint(), Player::StopCastingBindSight(), Transport::TeleportTransport(), Transport::TransportMgr::CreateTransport, Unit::Unit(), Transport::UnloadStaticPassengers(), Transport::UpdatePassengerPositions(), and Player::UpdateVisibilityOf().

◆ ~WorldObject()

WorldObject::~WorldObject ( )
virtual

Member Function Documentation

◆ _Create()

void WorldObject::_Create ( uint32 guidlow,
HighGuid guidhigh,
uint32 phaseMask )

◆ _IsWithinDist()

◆ AddObjectToRemoveList()

◆ AddToNotify()

void WorldObject::AddToNotify ( uint16 f)
inline

Definition at line 769 of file Object.h.

References m_notifyflags.

Referenced by Player::UpdateObjectVisibility(), and Unit::UpdateObjectVisibility().

◆ BuildUpdate()

void WorldObject::BuildUpdate ( UpdateDataMapType & data_map)
virtual

◆ CanAlwaysSee()

virtual bool WorldObject::CanAlwaysSee ( WorldObject const * ) const
inlineprivatevirtual

Reimplemented in Creature, and Player.

Definition at line 849 of file Object.h.

References WorldObject().

Referenced by CanSeeOrDetect().

◆ CanDetect()

bool WorldObject::CanDetect ( WorldObject const * obj,
bool ignoreStealth ) const
private

◆ CanDetectInvisibilityOf()

◆ CanDetectStealthOf()

◆ CanNeverSee()

bool WorldObject::CanNeverSee ( WorldObject const * obj) const
private

Definition at line 2190 of file Object.cpp.

References GetMap(), InSamePhase(), and WorldObject().

Referenced by CanSeeOrDetect().

◆ CanSeeOrDetect()

◆ CleanupsBeforeDelete()

void WorldObject::CleanupsBeforeDelete ( bool finalCleanup = true)
virtual

Reimplemented in GameObject, Player, and Unit.

Definition at line 1575 of file Object.cpp.

References Object::IsInWorld(), and RemoveFromWorld().

Referenced by Map::AddObjectToRemoveList().

◆ ClearPhases()

void WorldObject::ClearPhases ( bool update = false)

Definition at line 3383 of file Object.cpp.

References _phases, Object::IsInWorld(), RebuildTerrainSwaps(), and UpdateObjectVisibility().

Referenced by Unit::ClearPhases().

◆ DestroyForNearbyPlayers()

◆ FindMap()

◆ FindNearestCreature()

Creature * WorldObject::FindNearestCreature ( uint32 entry,
float range,
bool alive = true ) const

Definition at line 2801 of file Object.cpp.

References VisitNearbyObject().

Referenced by spell_item_demon_broiled_surprise::spell_item_demon_broiled_surprise_SpellScript::CheckRequirement(), spell_item_map_of_the_geyser_fields::spell_item_map_of_the_geyser_fields_SpellScript::CheckSinkholes(), GetClosestCreatureWithEntry(), npc_anachronos_the_ancient::npc_anachronos_the_ancientAI::HandleAnimation(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), spell_q28813_get_our_boys_back_dummy::spell_q28813_get_our_boys_back_dummy_SpellScript::HandleDummyEffect(), spell_valanar_kinetic_bomb::spell_valanar_kinetic_bomb_AuraScript::HandleDummyTick(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_q12620_the_lifewarden_wrath::spell_q12620_the_lifewarden_wrath_SpellScript::HandleSendEvent(), go_ulduar_tower::OnDestroyed(), gameobject_cage_trap::OnGossipHello(), go_acherus_soul_prison::OnGossipHello(), go_blackhoof_cage::OnGossipHello(), go_bristlelimb_cage::OnGossipHello(), go_captain_tyralius_prison::OnGossipHello(), go_corkis_prison::OnGossipHello(), go_demon_portal::OnGossipHello(), go_dragonflayer_cage::OnGossipHello(), go_gjalerbron_cage::OnGossipHello(), go_jotunheim_cage::OnGossipHello(), go_ossirian_crystal::OnGossipHello(), go_princess_stillpines_cage::OnGossipHello(), go_ravager_cage::OnGossipHello(), go_scourge_cage::OnGossipHello(), go_scourge_enclosure::OnGossipHello(), go_simon_cluster::OnGossipHello(), go_tadpole_cage::OnGossipHello(), go_warmaul_prison::OnGossipHello(), npc_darkspear_jailor::OnGossipSelect(), npc_lorekeeper::OnGossipSelect(), npc_wg_demolisher_engineer::OnGossipSelect(), go_crystal_prison::OnQuestAccept(), go_crystalline_tear::OnQuestAccept(), npc_jinthala::OnQuestAccept(), spell_ulduar_stone_grip_absorb::spell_ulduar_stone_grip_absorb_AuraScript::OnRemove(), AreaTrigger_at_brewfest::OnTrigger(), AreaTrigger_at_dawning_span::OnTrigger(), AreaTrigger_at_dawning_valley2::OnTrigger(), AreaTrigger_at_dawning_valley::OnTrigger(), AreaTrigger_at_fus_pond::OnTrigger(), AreaTrigger_at_mandori_village_shu::OnTrigger(), AreaTrigger_at_mandori_village_wugou::OnTrigger(), AreaTrigger_at_shrine_of_inner_light::OnTrigger(), AreaTrigger_at_temple_of_five_dawns::OnTrigger(), AreaTrigger_at_the_dawning_valley::OnTrigger(), AreaTrigger_at_wu_song_village::OnTrigger(), at_blackrock_stadium::OnTrigger(), at_commander_dawnforge::OnTrigger(), at_zumrah::OnTrigger(), item_dehta_trap_smasher::OnUse(), item_pile_fake_furs::OnUse(), item_trident_of_nazjan::OnUse(), boss_kologarn::boss_kologarnAI::PassengerBoarded(), boss_novos::boss_novosAI::SetCrystalStatus(), boss_amanitar::boss_amanitarAI::SpawnAdds(), npc_oliver_harris::npc_oliver_harrisAI::StartSceneImpl(), SummonHoptallusIfReady(), SummonOokOokIfReady(), go_wg_vehicle_teleporter::go_wg_vehicle_teleporterAI::UpdateAI(), and npc_hogger_elwynn::npc_hogger_elwynnAI::UpdateAI().

◆ FindNearestGameObject()

◆ FindNearestGameObjectOfType()

GameObject * WorldObject::FindNearestGameObjectOfType ( GameobjectTypes type,
float range ) const

Definition at line 2819 of file Object.cpp.

References VisitNearbyGridObject().

◆ GetAreaId()

◆ GetBaseMap()

◆ GetClosePoint()

◆ GetContactPoint()

void WorldObject::GetContactPoint ( WorldObject const * obj,
float & x,
float & y,
float & z,
float distance2d = CONTACT_DISTANCE ) const

◆ GetCreatureListWithEntryInGrid()

◆ GetDistance() [1/3]

float WorldObject::GetDistance ( float x,
float y,
float z ) const

Definition at line 1678 of file Object.cpp.

References Position::GetExactDist(), and GetObjectSize().

◆ GetDistance() [2/3]

float WorldObject::GetDistance ( Position const & pos) const

Definition at line 1672 of file Object.cpp.

References Position::GetExactDist(), and GetObjectSize().

◆ GetDistance() [3/3]

◆ GetDistance2d() [1/2]

float WorldObject::GetDistance2d ( float x,
float y ) const

Definition at line 1690 of file Object.cpp.

References Position::GetExactDist2d(), and GetObjectSize().

◆ GetDistance2d() [2/2]

◆ GetDistanceOrder()

bool WorldObject::GetDistanceOrder ( WorldObject const * obj1,
WorldObject const * obj2,
bool is3D = true ) const

◆ GetDistanceZ()

float WorldObject::GetDistanceZ ( WorldObject const * obj) const

Definition at line 1618 of file Object.cpp.

References GetObjectSize(), Position::GetPositionZ(), and WorldObject().

Referenced by Creature::CanStartAttack().

◆ GetFirstCollisionPosition()

void WorldObject::GetFirstCollisionPosition ( Position & pos,
float dist,
float angle )

Definition at line 3082 of file Object.cpp.

References Position::GetPosition(), and MovePositionToFirstCollision().

Referenced by Spell::CheckCast().

◆ GetGameObjectListWithEntryInGrid()

void WorldObject::GetGameObjectListWithEntryInGrid ( std::list< GameObject * > & lList,
uint32 uiEntry,
float fMaxSearchRange ) const

◆ GetGridActivationRange()

◆ GetInstanceId()

◆ GetInstanceScript()

InstanceScript * WorldObject::GetInstanceScript ( )

Definition at line 1612 of file Object.cpp.

References GetMap(), and Map::IsInstance().

Referenced by advisorbase_ai::advisorbase_ai(), boss_alar::boss_alarAI::boss_alarAI(), boss_alythess::boss_alythessAI::boss_alythessAI(), boss_ambassador_hellmaw::boss_ambassador_hellmawAI::boss_ambassador_hellmawAI(), boss_anetheron::boss_anetheronAI::boss_anetheronAI(), boss_anub_arak::boss_anub_arakAI::boss_anub_arakAI(), boss_shade_of_aran::boss_aranAI::boss_aranAI(), boss_archimonde::boss_archimondeAI::boss_archimondeAI(), boss_azgalor::boss_azgalorAI::boss_azgalorAI(), boss_bigbadwolf::boss_bigbadwolfAI::boss_bigbadwolfAI(), boss_bjarngrim::boss_bjarngrimAI::boss_bjarngrimAI(), boss_black_knight::boss_black_knightAI::boss_black_knightAI(), boss_blindeye_the_seer::boss_blindeye_the_seerAI::boss_blindeye_the_seerAI(), boss_broggok::boss_broggokAI::boss_broggokAI(), boss_brutallus::boss_brutallusAI::boss_brutallusAI(), boss_captain_skarloc::boss_captain_skarlocAI::boss_captain_skarlocAI(), boss_crone::boss_croneAI::boss_croneAI(), boss_cyanigosa::boss_cyanigosaAI::boss_cyanigosaAI(), boss_doomrel::boss_doomrelAI::boss_doomrelAI(), boss_dorothee::boss_dorotheeAI::boss_dorotheeAI(), boss_drakkari_elemental::boss_drakkari_elementalAI::boss_drakkari_elementalAI(), boss_eadric::boss_eadricAI::boss_eadricAI(), boss_eck::boss_eckAI::boss_eckAI(), boss_entropius::boss_entropiusAI::boss_entropiusAI(), boss_epoch_hunter::boss_epoch_hunterAI::boss_epoch_hunterAI(), boss_epoch::boss_epochAI::boss_epochAI(), boss_erekem::boss_erekemAI::boss_erekemAI(), boss_fathomguard_caribdis::boss_fathomguard_caribdisAI::boss_fathomguard_caribdisAI(), boss_fathomguard_sharkkis::boss_fathomguard_sharkkisAI::boss_fathomguard_sharkkisAI(), boss_fathomguard_tidalvess::boss_fathomguard_tidalvessAI::boss_fathomguard_tidalvessAI(), boss_fathomlord_karathress::boss_fathomlord_karathressAI::boss_fathomlord_karathressAI(), boss_felblood_kaelthas::boss_felblood_kaelthasAI::boss_felblood_kaelthasAI(), boss_felmyst::boss_felmystAI::boss_felmystAI(), boss_flame_leviathan_seat::boss_flame_leviathan_seatAI::boss_flame_leviathan_seatAI(), boss_gal_darah::boss_gal_darahAI::boss_gal_darahAI(), boss_gelihast::boss_gelihastAI::boss_gelihastAI(), boss_gurtogg_bloodboil::boss_gurtogg_bloodboilAI::boss_gurtogg_bloodboilAI(), boss_hadronox::boss_hadronoxAI::boss_hadronoxAI(), boss_harbinger_skyriss::boss_harbinger_skyrissAI::boss_harbinger_skyrissAI(), boss_headless_horseman::boss_headless_horsemanAI::boss_headless_horsemanAI(), boss_high_astromancer_solarian::boss_high_astromancer_solarianAI::boss_high_astromancer_solarianAI(), boss_high_inquisitor_whitemane::boss_high_inquisitor_whitemaneAI::boss_high_inquisitor_whitemaneAI(), boss_high_king_maulgar::boss_high_king_maulgarAI::boss_high_king_maulgarAI(), boss_hunter_toc5::boss_hunter_toc5AI::boss_hunter_toc5AI(), boss_hydross_the_unstable::boss_hydross_the_unstableAI::boss_hydross_the_unstableAI(), boss_ichoron::boss_ichoronAI::boss_ichoronAI(), boss_illidan_stormrage::boss_illidan_stormrageAI::boss_illidan_stormrageAI(), boss_illidari_councilAI::boss_illidari_councilAI(), boss_infinite_corruptor::boss_infinite_corruptorAI::boss_infinite_corruptorAI(), boss_ionar::boss_ionarAI::boss_ionarAI(), boss_jedoga_shadowseeker::boss_jedoga_shadowseekerAI::boss_jedoga_shadowseekerAI(), boss_julianne::boss_julianneAI::boss_julianneAI(), boss_kaelthas::boss_kaelthasAI::boss_kaelthasAI(), boss_kalec::boss_kalecAI::boss_kalecAI(), boss_kalecgos_kj::boss_kalecgos_kjAI::boss_kalecgos_kjAI(), boss_kalecgos::boss_kalecgosAI::boss_kalecgosAI(), boss_kazrogal::boss_kazrogalAI::boss_kazrogalAI(), boss_kelidan_the_breaker::boss_kelidan_the_breakerAI::boss_kelidan_the_breakerAI(), boss_kelris::boss_kelrisAI::boss_kelrisAI(), boss_keristrasza::boss_keristraszaAI::boss_keristraszaAI(), boss_kiggler_the_crazed::boss_kiggler_the_crazedAI::boss_kiggler_the_crazedAI(), boss_kiljaeden::boss_kiljaedenAI::boss_kiljaedenAI(), boss_kri::boss_kriAI::boss_kriAI(), boss_krik_thir::boss_krik_thirAI::boss_krik_thirAI(), boss_krosh_firehand::boss_krosh_firehandAI::boss_krosh_firehandAI(), boss_krystallus::boss_krystallusAI::boss_krystallusAI(), boss_lady_vashj::boss_lady_vashjAI::boss_lady_vashjAI(), boss_lavanthor::boss_lavanthorAI::boss_lavanthorAI(), boss_leotheras_the_blind::boss_leotheras_the_blindAI::boss_leotheras_the_blindAI(), boss_lich_king_toc::boss_lich_king_tocAI::boss_lich_king_tocAI(), boss_loken::boss_lokenAI::boss_lokenAI(), boss_mage_toc5::boss_mage_toc5AI::boss_mage_toc5AI(), boss_magtheridon::boss_magtheridonAI::boss_magtheridonAI(), boss_magus_telestra::boss_magus_telestraAI::boss_magus_telestraAI(), boss_mal_ganis::boss_mal_ganisAI::boss_mal_ganisAI(), boss_malchezaar::boss_malchezaarAI::boss_malchezaarAI(), boss_meathook::boss_meathookAI::boss_meathookAI(), boss_mekgineer_steamrigger::boss_mekgineer_steamriggerAI::boss_mekgineer_steamriggerAI(), boss_moorabi::boss_moorabiAI::boss_moorabiAI(), boss_moragg::boss_moraggAI::boss_moraggAI(), boss_moroes_guestAI::boss_moroes_guestAI(), boss_moroes::boss_moroesAI::boss_moroesAI(), boss_morogrim_tidewalker::boss_morogrim_tidewalkerAI::boss_morogrim_tidewalkerAI(), boss_muru::boss_muruAI::boss_muruAI(), boss_najentus::boss_najentusAI::boss_najentusAI(), boss_netherspite::boss_netherspiteAI::boss_netherspiteAI(), boss_nightbane::boss_nightbaneAI::boss_nightbaneAI(), boss_olm_the_summoner::boss_olm_the_summonerAI::boss_olm_the_summonerAI(), boss_palehoof::boss_palehoofAI::boss_palehoofAI(), boss_paletress::boss_paletressAI::boss_paletressAI(), boss_priestess_delrissa::boss_priestess_delrissaAI::boss_priestess_delrissaAI(), boss_priestess_lackey_commonAI::boss_priestess_lackey_commonAI(), boss_rage_winterchill::boss_rage_winterchillAI::boss_rage_winterchillAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::boss_reliquary_of_soulsAI(), boss_roar::boss_roarAI::boss_roarAI(), boss_romulo::boss_romuloAI::boss_romuloAI(), boss_rouge_toc5::boss_rouge_toc5AI::boss_rouge_toc5AI(), boss_sacrolash::boss_sacrolashAI::boss_sacrolashAI(), boss_salramm::boss_salrammAI::boss_salrammAI(), boss_sartharion::boss_sartharionAI::boss_sartharionAI(), boss_sathrovarr::boss_sathrovarrAI::boss_sathrovarrAI(), boss_scarlet_commander_mograine::boss_scarlet_commander_mograineAI::boss_scarlet_commander_mograineAI(), boss_selin_fireheart::boss_selin_fireheartAI::boss_selin_fireheartAI(), boss_shade_of_akama::boss_shade_of_akamaAI::boss_shade_of_akamaAI(), boss_mother_shahraz::boss_shahrazAI::boss_shahrazAI(), boss_shaman_toc5::boss_shaman_toc5AI::boss_shaman_toc5AI(), boss_silver_hand_bosses::boss_silver_hand_bossesAI::boss_silver_hand_bossesAI(), boss_skadi::boss_skadiAI::boss_skadiAI(), boss_slad_ran::boss_slad_ranAI::boss_slad_ranAI(), boss_strawman::boss_strawmanAI::boss_strawmanAI(), boss_supremus::boss_supremusAI::boss_supremusAI(), boss_svala::boss_svalaAI::boss_svalaAI(), boss_terestian_illhoof::boss_terestianAI::boss_terestianAI(), boss_teron_gorefiend::boss_teron_gorefiendAI::boss_teron_gorefiendAI(), boss_the_lurker_below::boss_the_lurker_belowAI::boss_the_lurker_belowAI(), boss_the_maker::boss_the_makerAI::boss_the_makerAI(), boss_hydromancer_thespia::boss_thespiaAI::boss_thespiaAI(), boss_tinhead::boss_tinheadAI::boss_tinheadAI(), boss_toc_champion_controller::boss_toc_champion_controllerAI::boss_toc_champion_controllerAI(), boss_twinemperorsAI::boss_twinemperorsAI(), boss_vem::boss_vemAI::boss_vemAI(), boss_vexallus::boss_vexallusAI::boss_vexallusAI(), boss_void_reaver::boss_void_reaverAI::boss_void_reaverAI(), boss_volazj::boss_volazjAI::boss_volazjAI(), boss_volkhan::boss_volkhanAI::boss_volkhanAI(), boss_warlord_kalithresh::boss_warlord_kalithreshAI::boss_warlord_kalithreshAI(), boss_warrior_toc5::boss_warrior_toc5AI::boss_warrior_toc5AI(), boss_xevozz::boss_xevozzAI::boss_xevozzAI(), boss_yauj::boss_yaujAI::boss_yaujAI(), boss_ymiron::boss_ymironAI::boss_ymironAI(), boss_zuramat::boss_zuramatAI::boss_zuramatAI(), spell_putricide_mutation_init::spell_putricide_mutation_init_SpellScript::CheckRequirementInternal(), spell_gen_dungeon_credit::spell_gen_dungeon_credit_SpellScript::CreditEncounter(), boss_cthun::cthunAI::cthunAI(), dummy_dragonAI::dummy_dragonAI(), boss_eye_of_cthun::eye_of_cthunAI::eye_of_cthunAI(), spell_scion_of_eternity_arcane_barrage::spell_scion_of_eternity_arcane_barrage_SpellScript::FilterMeleeHoverDiskPassangers(), generic_vehicleAI_toc5::generic_vehicleAI_toc5AI::generic_vehicleAI_toc5AI(), GrandChampionsOutVehicle(), Unit::HandleDummyAuraProc(), spell_auto_repair::spell_auto_repair_SpellScript::HandleScript(), spell_heigan_eruption::spell_heigan_eruption_SpellScript::HandleScript(), spell_malygos_vortex_dummy::spell_malygos_vortex_dummy_SpellScript::HandleScript(), spell_putricide_unbound_plague::spell_putricide_unbound_plague_SpellScript::HandleScript(), spell_ulduar_rubble_summon::spell_ulduar_rubble_summonSpellScript::HandleScript(), spell_alexstrasza_bunny_destroy_platform_event::spell_alexstrasza_bunny_destroy_platform_event_SpellScript::HandleSendEvent(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), hyjal_trashAI::hyjal_trashAI(), hyjalAI::hyjalAI(), spell_dreamwalker_nightmare_cloud::spell_dreamwalker_nightmare_cloud_AuraScript::Load(), spell_occuthar_eyes_of_occuthar_vehicle::spell_occuthar_eyes_of_occuthar_vehicle_SpellScript::Load(), spell_scion_of_eternity_arcane_barrage::spell_scion_of_eternity_arcane_barrage_SpellScript::Load(), spell_the_lich_king_harvest_soul::spell_the_lich_king_harvest_soul_AuraScript::Load(), spell_the_lich_king_in_frostmourne_room::spell_the_lich_king_in_frostmourne_room_AuraScript::Load(), spell_the_lich_king_quake::spell_the_lich_king_quake_SpellScript::Load(), spell_the_lich_king_restore_soul::spell_the_lich_king_restore_soul_SpellScript::Load(), npc_abomination::npc_abominationAI::npc_abominationAI(), npc_acolyte_of_shadron::npc_acolyte_of_shadronAI::npc_acolyte_of_shadronAI(), npc_acolyte_of_vesperon::npc_acolyte_of_vesperonAI::npc_acolyte_of_vesperonAI(), npc_akama_illidan::npc_akama_illidanAI::npc_akama_illidanAI(), npc_akama_shade::npc_akamaAI::npc_akamaAI(), npc_ancient_wisp::npc_ancient_wispAI::npc_ancient_wispAI(), npc_annhylde_the_caller::npc_annhylde_the_callerAI::npc_annhylde_the_callerAI(), npc_announcer_toc5::npc_announcer_toc5AI::npc_announcer_toc5AI(), npc_arcane_overload::npc_arcane_overloadAI::npc_arcane_overloadAI(), npc_argent_soldier::npc_argent_soldierAI::npc_argent_soldierAI(), npc_arthas::npc_arthasAI::npc_arthasAI(), npc_arugal_voidwalker::npc_arugal_voidwalkerAI::npc_arugal_voidwalkerAI(), npc_ashtongue_channeler::npc_ashtongue_channelerAI::npc_ashtongue_channelerAI(), npc_ashtongue_defender::npc_ashtongue_defenderAI::npc_ashtongue_defenderAI(), npc_ashtongue_elementalist::npc_ashtongue_elementalistAI::npc_ashtongue_elementalistAI(), npc_ashtongue_rogue::npc_ashtongue_rogueAI::npc_ashtongue_rogueAI(), npc_ashtongue_sorcerer::npc_ashtongue_sorcererAI::npc_ashtongue_sorcererAI(), npc_ashtongue_spiritbinder::npc_ashtongue_spiritbinderAI::npc_ashtongue_spiritbinderAI(), npc_azure_binder::npc_azure_binderAI::npc_azure_binderAI(), npc_azure_captain::npc_azure_captainAI::npc_azure_captainAI(), npc_azure_invader::npc_azure_invaderAI::npc_azure_invaderAI(), npc_azure_mage_slayer::npc_azure_mage_slayerAI::npc_azure_mage_slayerAI(), npc_azure_raider::npc_azure_raiderAI::npc_azure_raiderAI(), npc_azure_ring_captain::npc_azure_ring_captainAI::npc_azure_ring_captainAI(), npc_azure_saboteur::npc_azure_saboteurAI::npc_azure_saboteurAI(), npc_azure_sorceror::npc_azure_sorcerorAI::npc_azure_sorcerorAI(), npc_azure_spellbreaker::npc_azure_spellbreakerAI::npc_azure_spellbreakerAI(), npc_azure_stalker::npc_azure_stalkerAI::npc_azure_stalkerAI(), npc_banana_hozen::npc_banana_hozenAI::npc_banana_hozenAI(), npc_banshee::npc_bansheeAI::npc_bansheeAI(), npc_barnes::npc_barnesAI::npc_barnesAI(), npc_blackfathom_deeps_event::npc_blackfathom_deeps_eventAI::npc_blackfathom_deeps_eventAI(), npc_blackhole::npc_blackholeAI::npc_blackholeAI(), npc_blastmaster_emi_shortfuse::npc_blastmaster_emi_shortfuseAI::npc_blastmaster_emi_shortfuseAI(), npc_blood_queen_lana_thel::npc_blood_queen_lana_thelAI::npc_blood_queen_lana_thelAI(), npc_boombot::npc_boombotAI::npc_boombotAI(), npc_bopper::npc_bopperAI::npc_bopperAI(), npc_brann_hos::npc_brann_hosAI::npc_brann_hosAI(), npc_caster_hover_disk::npc_caster_hover_diskAI::npc_caster_hover_diskAI(), npc_colossus::npc_colossusAI::npc_colossusAI(), npc_core_rager::npc_core_ragerAI::npc_core_ragerAI(), npc_creature_generator_akama::npc_creature_generator_akamaAI::npc_creature_generator_akamaAI(), npc_crypt_fiend::npc_crypt_fiendAI::npc_crypt_fiendAI(), npc_disciple_of_naralex::npc_disciple_of_naralexAI::npc_disciple_of_naralexAI(), npc_dragonflayer_forge_master::npc_dragonflayer_forge_masterAI::npc_dragonflayer_forge_masterAI(), npc_ember_of_alar::npc_ember_of_alarAI::npc_ember_of_alarAI(), npc_enchanted_elemental::npc_enchanted_elementalAI::npc_enchanted_elementalAI(), npc_erekem_guard::npc_erekem_guardAI::npc_erekem_guardAI(), npc_ethereal_sphere::npc_ethereal_sphereAI::npc_ethereal_sphereAI(), npc_fel_infernal::npc_fel_infernalAI::npc_fel_infernalAI(), npc_fel_orc_convert::npc_fel_orc_convertAI::npc_fel_orc_convertAI(), npc_fel_stalker::npc_fel_stalkerAI::npc_fel_stalkerAI(), npc_felkael_phoenix::npc_felkael_phoenixAI::npc_felkael_phoenixAI(), npc_ferocious_rhino::npc_ferocious_rhinoAI::npc_ferocious_rhinoAI(), npc_feugen::npc_feugenAI::npc_feugenAI(), npc_firebomb::npc_firebombAI::npc_firebombAI(), npc_frenzied_worgen::npc_frenzied_worgenAI::npc_frenzied_worgenAI(), npc_frost_tomb::npc_frost_tombAI::npc_frost_tombAI(), npc_frost_wyrm::npc_frost_wyrmAI::npc_frost_wyrmAI(), npc_frozen_orb_stalker::npc_frozen_orb_stalkerAI::npc_frozen_orb_stalkerAI(), npc_gargoyle::npc_gargoyleAI::npc_gargoyleAI(), npc_ghoul::npc_ghoulAI::npc_ghoulAI(), npc_giant_infernal::npc_giant_infernalAI::npc_giant_infernalAI(), npc_greyheart_spellbinder::npc_greyheart_spellbinderAI::npc_greyheart_spellbinderAI(), npc_grimstone::npc_grimstoneAI::npc_grimstoneAI(), npc_hand_of_the_deceiver::npc_hand_of_the_deceiverAI::npc_hand_of_the_deceiverAI(), npc_hellfire_channeler::npc_hellfire_channelerAI::npc_hellfire_channelerAI(), npc_ichor_globule::npc_ichor_globuleAI::npc_ichor_globuleAI(), npc_illidari_council::npc_illidari_councilAI::npc_illidari_councilAI(), npc_image_of_medivh::npc_image_of_medivhAI::npc_image_of_medivhAI(), npc_iron_sludge::npc_iron_sludgeAI::npc_iron_sludgeAI(), npc_jedoga_initiand::npc_jedoga_initiandAI::npc_jedoga_initiandAI(), npc_jedogas_aufseher_trigger::npc_jedogas_aufseher_triggerAI::npc_jedogas_aufseher_triggerAI(), npc_kelthuzad_abomination::npc_kelthuzad_abominationAI::npc_kelthuzad_abominationAI(), npc_kiljaeden_controller::npc_kiljaeden_controllerAI::npc_kiljaeden_controllerAI(), npc_kilrek::npc_kilrekAI::npc_kilrekAI(), npc_legion_flame::npc_legion_flameAI::npc_legion_flameAI(), npc_lesser_doomguard::npc_lesser_doomguardAI::npc_lesser_doomguardAI(), npc_living_mojo::npc_living_mojoAI::npc_living_mojoAI(), npc_massive_jormungar::npc_massive_jormungarAI::npc_massive_jormungarAI(), npc_medivh_bm::npc_medivh_bmAI::npc_medivh_bmAI(), npc_melee_hover_disk::npc_melee_hover_diskAI::npc_melee_hover_diskAI(), npc_millhouse_manastorm::npc_millhouse_manastormAI::npc_millhouse_manastormAI(), npc_mistress_of_pain::npc_mistress_of_painAI::npc_mistress_of_painAI(), npc_muru_portal::npc_muru_portalAI::npc_muru_portalAI(), npc_naga_distiller::npc_naga_distillerAI::npc_naga_distillerAI(), npc_necromancer::npc_necromancerAI::npc_necromancerAI(), npc_nerubian_burrower::npc_nerubian_burrowerAI::npc_nerubian_burrowerAI(), npc_nexus_lord::npc_nexus_lordAI::npc_nexus_lordAI(), npc_omrogg_heads::npc_omrogg_headsAI::npc_omrogg_headsAI(), npc_palehoof_orb::npc_palehoof_orbAI::npc_palehoof_orbAI(), npc_parasitic_shadowfiend::npc_parasitic_shadowfiendAI::npc_parasitic_shadowfiendAI(), npc_portal_eoe::npc_portal_eoeAI::npc_portal_eoeAI(), npc_power_spark::npc_power_sparkAI::npc_power_sparkAI(), npc_precious_icc::npc_precious_iccAI::npc_precious_iccAI(), npc_pummeller::npc_pummellerAI::npc_pummellerAI(), npc_ragin_flames::npc_ragin_flamesAI::npc_ragin_flamesAI(), npc_ravenous_furbolg::npc_ravenous_furbolgAI::npc_ravenous_furbolgAI(), npc_ritual_channeler::npc_ritual_channelerAI::npc_ritual_channelerAI(), npc_rocknot::npc_rocknotAI::npc_rocknotAI(), npc_ruby_emerald_amber_drake::npc_ruby_emerald_amber_drakeAI::npc_ruby_emerald_amber_drakeAI(), npc_ruins_dweller::npc_ruins_dwellerAI::npc_ruins_dwellerAI(), npc_scion_of_eternity::npc_scion_of_eternityAI::npc_scion_of_eternityAI(), npc_sergeant_bly::npc_sergeant_blyAI::npc_sergeant_blyAI(), npc_shadowfang_prisoner::npc_shadowfang_prisonerAI::npc_shadowfang_prisonerAI(), npc_shield_generator_channel::npc_shield_generator_channelAI::npc_shield_generator_channelAI(), npc_shield_orb::npc_shield_orbAI::npc_shield_orbAI(), npc_sinclari_vh::npc_sinclariAI::npc_sinclariAI(), npc_sindragosa_trash::npc_sindragosa_trashAI::npc_sindragosa_trashAI(), npc_slime_pool::npc_slime_poolAI::npc_slime_poolAI(), npc_snobold_vassal::npc_snobold_vassalAI::npc_snobold_vassalAI(), npc_solarium_priest::npc_solarium_priestAI::npc_solarium_priestAI(), npc_spark_of_ionar::npc_spark_of_ionarAI::npc_spark_of_ionarAI(), npc_stalagg::npc_stalaggAI::npc_stalaggAI(), npc_steamrigger_mechanic::npc_steamrigger_mechanicAI::npc_steamrigger_mechanicAI(), npc_stinky_icc::npc_stinky_iccAI::npc_stinky_iccAI(), npc_stormforged_lieutenant::npc_stormforged_lieutenantAI::npc_stormforged_lieutenantAI(), npc_swarm_scarab::npc_swarm_scarabAI::npc_swarm_scarabAI(), npc_tainted_elemental::npc_tainted_elementalAI::npc_tainted_elementalAI(), npc_taretha::npc_tarethaAI::npc_tarethaAI(), npc_teleportation_portal_vh::npc_teleportation_portalAI::npc_teleportation_portalAI(), npc_tempest_minion::npc_tempest_minionAI::npc_tempest_minionAI(), npc_thrall_old_hillsbrad::npc_thrall_old_hillsbradAI::npc_thrall_old_hillsbradAI(), npc_time_rift::npc_time_riftAI::npc_time_riftAI(), npc_tomb_creature::npc_tomb_creatureAI::npc_tomb_creatureAI(), npc_towering_infernal::npc_towering_infernalAI::npc_towering_infernalAI(), npc_toxic_sporebat::npc_toxic_sporebatAI::npc_toxic_sporebatAI(), npc_tribuna_controller::npc_tribuna_controllerAI::npc_tribuna_controllerAI(), npc_twilight_eggs::npc_twilight_eggsAI::npc_twilight_eggsAI(), npc_voidtraveler::npc_voidtravelerAI::npc_voidtravelerAI(), npc_warden_mellichar::npc_warden_mellicharAI::npc_warden_mellicharAI(), npc_weegli_blastfuse::npc_weegli_blastfuseAI::npc_weegli_blastfuseAI(), npc_wrathbone_flayer::npc_wrathbone_flayerAI::npc_wrathbone_flayerAI(), spell_halion_twilight_realm_handlers::spell_halion_twilight_realm_handlers_AuraScript::OnApply(), spell_tyrannus_mark_of_rimefang::spell_tyrannus_mark_of_rimefang_AuraScript::OnApply(), spell_blood_queen_frenzied_bloodthirst::spell_blood_queen_frenzied_bloodthirst_AuraScript::OnRemove(), at_alizabal_intro::OnTrigger(), ValithriaDespawner::operator()(), SmartScript::ProcessAction(), Player::SendInitWorldStates(), Player::SendRaidInfo(), Unit::setDeathState(), and violet_hold_trashAI::violet_hold_trashAI().

◆ getLevelForTarget()

virtual uint8 WorldObject::getLevelForTarget ( WorldObject const * ) const
inlinevirtual

Reimplemented in Creature, GameObject, and Unit.

Definition at line 702 of file Object.h.

References WorldObject().

Referenced by CanDetectStealthOf().

◆ GetMap()

Map * WorldObject::GetMap ( ) const
inline

Definition at line 740 of file Object.h.

References ASSERT, and m_currMap.

Referenced by Unit::_ExitVehicle(), Map::_FindGameObject(), Battleground::_ProcessRessurect(), AchievementMgr< T >::AdditionalRequirementsSatisfied(), Map::AddPlayerToMap(), GameObject::AddToWorld(), AggroAllPlayers(), Skyfire::PetTransport::AttachHunterPetToOwnerTransport(), DynamicObject::BindToCaster(), Player::BuildPlayerRepop(), Transport::BuildUpdate(), BuildUpdate(), Creature::CallAssistance(), Creature::CallForHelp(), CanNeverSee(), Player::CanRollForItemInLFG(), Player::CheckDuelDistance(), spell_gen_cannibalize::spell_gen_cannibalize_SpellScript::CheckIfCorpseNear(), spell_hun_pet_carrion_feeder::spell_hun_pet_carrion_feeder_SpellScript::CheckIfCorpseNear(), Player::CheckInstanceLoginValid(), Corpse::Create(), AreaTrigger::CreateAreaTrigger(), Pet::CreateBaseAtCreature(), Pet::CreateBaseAtCreatureInfo(), Player::CreateCorpse(), DynamicObject::CreateDynamicObject(), Transport::CreateGOPassenger(), TransportMgr::CreateLocalTransport(), TransportMgr::CreateLocalTransport(), Transport::CreateNPCPassenger(), TransportMgr::CreateTransport(), Creature::DeleteFromDB(), GameObject::DeleteFromDB(), FlightPathMovementGenerator::DoEventIfAny(), Transport::DoEventIfAny(), Creature::DoFleeToGetAssistance(), WorldSession::DoLootRelease(), CreatureAI::DoZoneInCombat(), Player::DuelComplete(), DynObjAura::DynObjAura(), Spell::EffectCreateTamedPet(), Spell::EffectSummonDeadPet(), Spell::EffectSummonObjectWild(), Spell::EffectSummonPet(), Spell::EffectTameCreature(), Spell::EffectTransmitted(), ChatHandler::ExecuteCommandInTable(), Creature::FarTeleportTo(), SmartScript::FillScript(), spell_scion_of_eternity_arcane_barrage::spell_scion_of_eternity_arcane_barrage_SpellScript::FilterMeleeHoverDiskPassangers(), spell_malygos_arcane_storm::spell_malygos_arcane_storm_SpellScript::FilterTargets(), spell_rotface_vile_gas_trigger::spell_rotface_vile_gas_trigger_SpellScript::FilterTargets(), SmartScript::FindCreatureNear(), SmartScript::FindGameObjectNear(), FindSceneActor(), Skyfire::XP::Gain(), ObjectAccessor::GetAreaTrigger(), Unit::GetAttackableUnitListInRange(), GetBaradinHoldAI(), ObjectAccessor::GetCorpse(), ObjectAccessor::GetCreature(), Unit::GetCreature(), GetCreatureListWithEntryInGrid(), ObjectAccessor::GetDynamicObject(), GetFirelandsAI(), GameObject::GetGameObject(), ObjectAccessor::GetGameObject(), Player::GetGameObjectIfCanInteractWith(), GetGameObjectListWithEntryInGrid(), GetGridActivationRange(), GetHallsOfOriginationAI(), GetIcecrownCitadelAI(), GetInstanceScript(), LuaUnit::GetMap(), LuaWorldObject::GetMap(), Player::GetNextQuest(), ChatHandler::GetObjectGlobalyWithGuidOrNearWithDbGuid(), ObjectAccessor::GetPet(), ObjectAccessor::GetPlayer(), GetRubySanctumAI(), GetRubySanctumAI(), GetSightRange(), SpellMgr::GetSpellIdForDifficulty(), ObjectAccessor::GetTransport(), ObjectAccessor::GetUnit(), GetVisibilityRange(), GetZulAmanAI(), misc_commandscript::HandleAppearCommand(), WorldSession::HandleAreaSpiritHealerQueryOpcode(), WorldSession::HandleAreaSpiritHealerQueueOpcode(), WorldSession::HandleAreaTriggerOpcode(), AuraEffect::HandleAuraDummy(), Unit::HandleAuraProc(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleBattlemasterHelloOpcode(), debug_commandscript::HandleDebugSpawnVehicleCommand(), OutdoorPvPSI::HandleDropFlag(), spell_q12589_shoot_rjr::spell_q12589_shoot_rjr_SpellScript::HandleDummy(), AuraEffect::HandleFeignDeath(), gobject_commandscript::HandleGameObjectAddCommand(), WorldSession::HandleGameobjectReportUse(), gobject_commandscript::HandleGameObjectTargetCommand(), group_commandscript::HandleGroupSummonCommand(), Guild::HandleGuildPartyRequest(), spell_sindragosa_frost_breath::spell_sindragosa_frost_breath_SpellScript::HandleInfusion(), instance_commandscript::HandleInstanceSaveDataCommand(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleLootMoneyOpcode(), mmaps_commandscript::HandleMmapTestArea(), AuraEffect::HandleModPossessPet(), WorldSession::HandleMovementOpcodes(), WorldSession::HandleMoveWorldportAckOpcode(), npc_commandscript::HandleNpcAddCommand(), npc_commandscript::HandleNpcDeleteCommand(), npc_commandscript::HandleNpcTameCommand(), AuraEffect::HandlePeriodicDummyAuraTick(), pet_commandscript::HandlePetCreateCommand(), WorldSession::HandlePlayerLogin(), misc_commandscript::HandleRespawnCommand(), spell_ulduar_cancel_stone_grip::spell_ulduar_cancel_stone_gripSpellScript::HandleScript(), spell_vehicle_throw_passenger::spell_vehicle_throw_passenger_SpellScript::HandleScript(), spell_alexstrasza_bunny_destroy_platform_event::spell_alexstrasza_bunny_destroy_platform_event_SpellScript::HandleSendEvent(), WorldSession::HandleSetDungeonDifficultyOpcode(), WorldSession::HandleSetRaidDifficultyOpcode(), spell_halion_damage_aoe_summon::spell_halion_damage_aoe_summon_SpellScript::HandleSummon(), spell_putricide_mutated_transformation::spell_putricide_mutated_transformation_SpellScript::HandleSummon(), misc_commandscript::HandleSummonCommand(), WorldSession::HandleTotemDestroyed(), wp_commandscript::HandleWpModifyCommand(), wp_commandscript::HandleWpShowCommand(), Player::HasQuestForGO(), Player::HasQuestForItem(), Group::InCombatToInstance(), Creature::InitEntry(), TempSummon::InitStats(), Player::inRandomLfgDungeon(), Unit::isAttackingPlayer(), IsInMap(), IsVampire(), IsWithinLOS(), Unit::Kill(), Player::KillCreditGO(), Player::KilledMonsterCredit(), Player::KilledPlayerCredit(), spell_the_lich_king_vile_spirits::spell_the_lich_king_vile_spirits_AuraScript::Load(), Creature::LoadCreatureFromDB(), GameObject::LoadGameObjectFromDB(), Pet::LoadPetFromDB(), Transport::LoadStaticPassengers(), GameObject::LookupFishingHoleAround(), AchievementCriteriaData::Meets(), MonsterSay(), MonsterSay(), MonsterTextEmote(), MonsterYell(), MonsterYell(), MovePosition(), MovePositionToFirstCollision(), WaypointMovementGenerator< Creature >::OnArrived(), go_gauntlet_gate::OnGossipHello(), lfg::LFGPlayerScript::OnMapChanged(), spell_alexstrasza_gift_beam_visual::spell_alexstrasza_gift_beam_visual_AuraScript::OnRemove(), spell_malygos_destroy_platform_channel::spell_malygos_destroy_platform_channel_AuraScript::OnRemove(), spell_malygos_vortex_visual::spell_malygos_vortex_visual_AuraScript::OnRemove(), spell_ulduar_stone_grip_absorb::spell_ulduar_stone_grip_absorb_AuraScript::OnRemove(), lfg::LFGGroupScript::OnRemoveMember(), at_sindragosa_lair::OnTrigger(), InstanceMap::PermBindAllPlayers(), spell_halion_twilight_phasing::spell_halion_twilight_phasing_SpellScript::Phase(), Player::PrepareQuestMenu(), spell_bronjahm_magic_bane::spell_bronjahm_magic_bane_SpellScript::RecalculateDamage(), GameObject::Refresh(), Unit::RemoveCharmedBy(), Creature::RemoveCorpse(), GameObject::RemoveFromWorld(), Skyfire::PetTransport::RemoveOwnerHunterPet(), ReplaceSurveyObjectSlot(), ResetCryForTheMoonActor(), Player::ResetMap(), Creature::Respawn(), GameObject::Respawn(), Player::RewardReputation(), Creature::SaveRespawnTime(), GameObject::SaveRespawnTime(), Map::ScriptsProcess(), Spell::SearchTargets(), Creature::SelectNearestTarget(), Creature::SelectNearestTargetInAttackDistance(), CreatureTextMgr::SendChatPacket(), Player::SendInitialPacketsAfterAddToMap(), Player::SendInitialPacketsBeforeAddToMap(), Player::SendLoot(), Spell::SendLoot(), CreatureTextMgr::SendNonChatPacket(), WorldSession::SendQuestgiverStatusMultiple(), WorldSession::SendTaxiStatus(), Player::SetBattlegroundEntryPoint(), Unit::SetCharmedBy(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), spell_omega_stance_spider_effect::spell_omega_stance_spider_effect_SpellScript::SetDestPosition(), Creature::SetInCombatWithZone(), Unit::SetPhased(), Unit::SetPhaseMask(), Creature::SetPosition(), SetWorldObject(), BattlePetWildZonePool::SpawnReplacement(), SpawnSurveyGameObject(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SummonedPortalBoss(), SummonGameObject(), LuaUnit::SummonGuardian(), Spell::SummonGuardian(), Player::SummonPet(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Transport::TeleportTransport(), GameObject::TriggeringLinkedGameObject(), Unit::UnsummonAllTotems(), Creature::Update(), DynamicObject::Update(), GameObject::Update(), Pet::Update(), Player::Update(), Player::UpdateCinematicVisibility(), GameObject::UpdateModel(), GameObject::UpdateModelPosition(), Creature::UpdateMovementFlags(), Transport::UpdatePassengerPositions(), Transport::UpdatePosition(), Unit::UpdatePosition(), Unit::UpdateSplinePosition(), Player::UpdateTriggerVisibility(), GameObject::Use(), ObjectGridEvacuator::Visit(), ObjectGridEvacuator::Visit(), VisitNearbyGridObject(), VisitNearbyObject(), and VisitNearbyWorldObject().

◆ GetName()

std::string const & WorldObject::GetName ( ) const
inline

Definition at line 664 of file Object.h.

References m_name.

Referenced by Player::_LoadBoundInstances(), Player::_LoadCUFProfiles(), Player::_LoadHomeBind(), Player::_LoadInventory(), Player::_LoadItem(), Player::_LoadQuestObjectiveStatus(), Player::_LoadQuestStatus(), Player::_LoadResearchDigsites(), Player::_LoadResearchHistory(), Player::_LoadResearchProjects(), Player::_LoadVoidStorage(), Player::_SaveInventory(), Guild::_SendRemovePlayerFromGuild(), Group::AddLeaderInvite(), Group::AddMember(), Guild::AddMember(), Transport::AddPassenger(), Vehicle::AddPassenger(), InstanceMap::AddPlayerToMap(), Player::AddVoidStorageItemAtSlot(), Player::BindToInstance(), Group::BroadcastGroupUpdate(), WorldSession::BuildPartyMemberStatsChangedPacket(), Player::BuildPlayerRepop(), Player::BuyItemFromVendorSlot(), Player::CanBankItem(), InstanceMap::CanEnter(), MapManager::CanPlayerEnter(), Player::CastItemCombatSpell(), Group::ChangeLeader(), Player::CleanupChannels(), Corpse::Create(), Group::Create(), Guild::Create(), TransportMgr::CreateTransport(), FlightPathMovementGenerator::DoEventIfAny(), Transport::DoEventIfAny(), Player::DuelComplete(), Spell::EffectEnchantItemPerm(), Spell::EffectEnchantItemPrismatic(), Spell::EffectEnchantItemTmp(), Spell::EffectStuck(), BattlegroundEY::EventPlayerClickedOnFlag(), ChatHandler::ExecuteCommandInTable(), ChatHandler::extractPlayerTarget(), BugTicket::FormatMessageString(), GmTicket::FormatMessageString(), SuggestTicket::FormatMessageString(), Unit::GetFactionTemplateEntry(), Player::GetGameObjectIfCanInteractWith(), LuaWorldObject::GetName(), Creature::GetNameForLocaleIdx(), GameObject::GetNameForLocaleIdx(), ChatHandler::GetNameLink(), GetPlayerInfo(), GmTicket::GmTicket(), WorldSocket::handle_input_header(), WorldSession::HandleAcceptTradeOpcode(), account_commandscript::HandleAccountCreateCommand(), account_commandscript::HandleAccountEmailCommand(), account_commandscript::HandleAccountPasswordCommand(), spell_rog_deadly_poison::spell_rog_deadly_poison_SpellScript::HandleAfterHit(), WorldSession::HandleAreaTriggerOpcode(), WorldSession::HandleBattlemasterJoinArena(), WorldSession::HandleBattlemasterJoinOpcode(), battlepet_commandscript::HandleBattlePetDebugCommand(), battlepet_commandscript::HandleBattlePetHealCommand(), battlepet_commandscript::HandleBattlePetLevelupCommand(), character_commandscript::HandleCharacterRenameCommand(), character_commandscript::HandleCharacterTitlesCommand(), WorldSession::HandleCharCreateCallback(), misc_commandscript::HandleDamageCommand(), debug_commandscript::HandleDebugGetLootRecipientCommand(), debug_commandscript::HandleDebugHostileRefListCommand(), debug_commandscript::HandleDebugThreatListCommand(), debug_commandscript::HandleDebugTransportCommand(), WorldSession::HandleDuelResponseOpcode(), misc_commandscript::HandleFreezeCommand(), ticket_commandscript::HandleGMTicketCloseByIdCommand(), ticket_commandscript::HandleGMTicketCommentCommand(), ticket_commandscript::HandleGMTicketDeleteByIdCommand(), ticket_commandscript::HandleGMTicketUnAssignCommand(), WorldSession::HandleGrantLevel(), group_commandscript::HandleGroupDisbandCommand(), WorldSession::HandleGroupInviteResponseOpcode(), group_commandscript::HandleGroupJoinCommand(), group_commandscript::HandleGroupLeaderCommand(), group_commandscript::HandleGroupRemoveCommand(), Guild::HandleInviteMember(), Guild::HandleLeaveMember(), lookup_commandscript::HandleLookupTitleCommand(), WorldSession::HandleLootMasterGiveOpcode(), WorldSession::HandleMailTakeItem(), Guild::HandleMemberDepositMoney(), Guild::HandleMemberLogout(), WorldSession::HandleMessagechatOpcode(), mmaps_commandscript::HandleMmapPathCommand(), misc_commandscript::HandleMovegensCommand(), npc_commandscript::HandleNpcFollowCommand(), npc_commandscript::HandleNpcSetDataCommand(), npc_commandscript::HandleNpcUnFollowCommand(), WorldSession::HandleObjectUpdateFailedOpcode(), WorldSession::HandleOpenItemOpcode(), OutdoorPvP::HandlePlayerLeaveZone(), WorldSession::HandlePlayerLogin(), WorldSession::HandleReforgeItemOpcode(), WorldSession::HandleReportPvPAFK(), WorldSession::HandleSetDungeonDifficultyOpcode(), Guild::HandleSetNewGuildMaster(), misc_commandscript::HandleSummonCommand(), ticket_commandscript::HandleTicketCloseByIdCommand(), ticket_commandscript::HandleTicketCommentCommand(), ticket_commandscript::HandleTicketDeleteByIdCommand(), ticket_commandscript::HandleTicketUnAssignCommand(), titles_commandscript::HandleTitlesAddCommand(), titles_commandscript::HandleTitlesRemoveCommand(), WorldSession::HandleTransmogrifyItems(), misc_commandscript::HandleUnFreezeCommand(), Guild::HandleUpdateMemberRank(), WorldSession::HandleVoidStorageQuery(), WorldSession::HandleVoidStorageTransfer(), WorldSession::HandleVoidStorageUnlock(), WorldSession::HandleVoidSwapItem(), WorldSession::HandleWhoOpcode(), Channel::Invite(), BattlegroundQueue::InviteGroupToBG(), Player::IsActionButtonDataValid(), lfg::LFGMgr::JoinLfg(), Player::LoadFromDB(), WaypointMovementGenerator< Creature >::LoadPath(), Player::ModifySpellCooldown(), WorldSession::moveItems(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), ChatLogScript::OnChat(), lfg::LFGPlayerScript::OnMapChanged(), Unit::OutDebugInfo(), InstanceMap::PermBindAllPlayers(), Map::PlayerRelocation(), Player::PrepareGossipMenu(), SmartScript::ProcessAction(), Map::RemoveAllPlayers(), Player::RemoveFromWorld(), Transport::RemovePassenger(), Vehicle::RemovePassenger(), Battleground::RemovePlayerAtLeave(), BattlegroundMap::RemovePlayerFromMap(), InstanceMap::RemovePlayerFromMap(), Creature::Respawn(), Player::SaveToDB(), FactorySelector::selectAI(), AuctionHouseMgr::SendAuctionWonMail(), CreatureTextMgr::SendChat(), LuaPlayer::SendGuildInvite(), Guild::SendLoginInfo(), Spell::SendLoot(), WorldSession::SendPetNameQuery(), WorldSession::SendStablePetCallback(), Player::SendTimeSync(), BattlegroundMgr::SendToBattleground(), Unit::SetCharm(), Player::setDeathState(), Player::SetEquipmentSet(), Channel::SetMode(), CreatureTextMgr::SetRepeatId(), Guild::Member::SetStats(), Player::SetViewpoint(), FollowerAI::StartFollow(), Player::StopCastingCharm(), npc_frostworn_general::npc_frostworn_generalAI::SummonClones(), lfg::LFGMgr::TeleportPlayer(), Player::TeleportTo(), Pet::Update(), Player::Update(), Transport::Update(), AchievementMgr< T >::UpdateAchievementCriteria(), Player::UpdateHomebindTime(), GameObject::Use(), and Player::Whisper().

◆ GetNameForLocaleIdx()

virtual std::string const & WorldObject::GetNameForLocaleIdx ( LocaleConstant ) const
inlinevirtual

Reimplemented in Creature, and GameObject.

Definition at line 667 of file Object.h.

References m_name.

Referenced by ChatHandler::BuildChatPacket().

◆ GetNearPoint()

void WorldObject::GetNearPoint ( WorldObject const * searcher,
float & x,
float & y,
float & z,
float searcher_size,
float distance2d,
float absAngle ) const

◆ GetNearPoint2D()

void WorldObject::GetNearPoint2D ( float & x,
float & y,
float distance,
float absAngle ) const

◆ GetNearPosition()

◆ GetNotifyFlags()

uint16 WorldObject::GetNotifyFlags ( ) const
inline

Definition at line 771 of file Object.h.

References m_notifyflags.

◆ GetObjectSize()

◆ GetPhaseMask()

◆ GetPhases()

◆ GetPlayerListInGrid()

void WorldObject::GetPlayerListInGrid ( std::list< Player * > & lList,
float fMaxSearchRange ) const

Definition at line 2854 of file Object.cpp.

References VisitNearbyWorldObject().

Referenced by GetPlayerListInGrid().

◆ GetRandomNearPosition()

void WorldObject::GetRandomNearPosition ( Position & pos,
float radius )

◆ GetRandomPoint() [1/2]

void WorldObject::GetRandomPoint ( Position const & srcPos,
float distance,
float & rand_x,
float & rand_y,
float & rand_z ) const

◆ GetRandomPoint() [2/2]

void WorldObject::GetRandomPoint ( Position const & srcPos,
float distance,
Position & pos ) const

Definition at line 1971 of file Object.cpp.

References Position::GetOrientation(), GetRandomPoint(), and Position::Relocate().

◆ GetSightRange()

◆ GetStationaryO()

virtual float WorldObject::GetStationaryO ( ) const
inlinevirtual

Reimplemented in GameObject.

Definition at line 812 of file Object.h.

References Position::GetOrientation().

Referenced by Object::BuildMovementUpdate().

◆ GetStationaryX()

virtual float WorldObject::GetStationaryX ( ) const
inlinevirtual

Reimplemented in GameObject.

Definition at line 809 of file Object.h.

References Position::GetPositionX().

Referenced by Object::BuildMovementUpdate().

◆ GetStationaryY()

virtual float WorldObject::GetStationaryY ( ) const
inlinevirtual

Reimplemented in GameObject.

Definition at line 810 of file Object.h.

References Position::GetPositionY().

Referenced by Object::BuildMovementUpdate().

◆ GetStationaryZ()

virtual float WorldObject::GetStationaryZ ( ) const
inlinevirtual

Reimplemented in GameObject.

Definition at line 811 of file Object.h.

References Position::GetPositionZ().

Referenced by Object::BuildMovementUpdate().

◆ GetTerrainSwaps()

◆ GetTransGUID()

uint64 WorldObject::GetTransGUID ( ) const
virtual

Reimplemented in Unit.

Definition at line 3571 of file Object.cpp.

References Object::GetGUID(), and GetTransport().

Referenced by SpellDestination::SpellDestination().

◆ GetTransOffsetO()

◆ GetTransOffsetX()

◆ GetTransOffsetY()

◆ GetTransOffsetZ()

◆ GetTransport()

◆ GetTransSeat()

◆ GetTransTime()

uint32 WorldObject::GetTransTime ( ) const
inline

Definition at line 802 of file Object.h.

References m_movementInfo.

Referenced by Object::BuildMovementUpdate(), and Unit::WriteMovementInfo().

◆ GetVisibilityRange()

◆ GetWorldMapSwaps()

std::set< uint32 > const & WorldObject::GetWorldMapSwaps ( ) const
inline

◆ GetZoneAndAreaId()

◆ GetZoneId()

◆ GetZoneScript()

ZoneScript * WorldObject::GetZoneScript ( ) const
inline

Definition at line 748 of file Object.h.

References m_zoneScript.

Referenced by Unit::setDeathState().

◆ HasPhaseList()

bool WorldObject::HasPhaseList ( uint32 phase)

Definition at line 3349 of file Object.cpp.

References _phases.

Referenced by SetPhased().

◆ InSamePhase() [1/2]

bool WorldObject::InSamePhase ( uint32 phasemask) const
inline

Definition at line 656 of file Object.h.

References GetPhaseMask().

◆ InSamePhase() [2/2]

◆ isActiveObject()

bool WorldObject::isActiveObject ( ) const
inline

◆ IsAlwaysDetectableFor()

virtual bool WorldObject::IsAlwaysDetectableFor ( WorldObject const * ) const
inlineprotectedvirtual

Reimplemented in Player, and Unit.

Definition at line 833 of file Object.h.

References WorldObject().

Referenced by CanDetect(), and Unit::IsAlwaysDetectableFor().

◆ IsAlwaysVisibleFor()

virtual bool WorldObject::IsAlwaysVisibleFor ( WorldObject const * ) const
inlineprotectedvirtual

Reimplemented in GameObject, and Unit.

Definition at line 830 of file Object.h.

References WorldObject().

Referenced by CanSeeOrDetect(), GameObject::IsAlwaysVisibleFor(), and Unit::IsAlwaysVisibleFor().

◆ isInBack()

bool WorldObject::isInBack ( WorldObject const * target,
float arc = M_PI ) const

Definition at line 1945 of file Object.cpp.

References Position::HasInArc(), M_PI, and WorldObject().

◆ IsInBetween()

bool WorldObject::IsInBetween ( WorldObject const * obj1,
WorldObject const * obj2,
float size = 0 ) const

◆ isInFront()

◆ IsInMap()

◆ IsInRange()

bool WorldObject::IsInRange ( WorldObject const * obj,
float minRange,
float maxRange,
bool is3D = true ) const

◆ IsInRange2d()

bool WorldObject::IsInRange2d ( float x,
float y,
float minRange,
float maxRange ) const

Definition at line 1800 of file Object.cpp.

References GetObjectSize(), Position::GetPositionX(), and Position::GetPositionY().

◆ IsInRange3d()

bool WorldObject::IsInRange3d ( float x,
float y,
float z,
float minRange,
float maxRange ) const

◆ IsInvisibleDueToDespawn()

virtual bool WorldObject::IsInvisibleDueToDespawn ( ) const
inlineprotectedvirtual

Reimplemented in Creature, and GameObject.

Definition at line 831 of file Object.h.

Referenced by CanSeeOrDetect(), Creature::IsInvisibleDueToDespawn(), and GameObject::IsInvisibleDueToDespawn().

◆ isNeedNotify()

◆ IsNeverVisible()

virtual bool WorldObject::IsNeverVisible ( ) const
inlineprotectedvirtual

Reimplemented in Player.

Definition at line 829 of file Object.h.

References Object::IsInWorld().

Referenced by CanSeeOrDetect(), and Player::IsNeverVisible().

◆ IsPermanentWorldObject()

bool WorldObject::IsPermanentWorldObject ( ) const
inline

◆ IsPhased() [1/2]

bool WorldObject::IsPhased ( uint32 phase) const
inline

Definition at line 646 of file Object.h.

References _phases.

◆ IsPhased() [2/2]

◆ IsSelfOrInSameMap()

bool WorldObject::IsSelfOrInSameMap ( WorldObject const * obj) const

Definition at line 1696 of file Object.cpp.

References IsInMap(), and WorldObject().

◆ IsTerrainSwaped()

bool WorldObject::IsTerrainSwaped ( uint32 terrainSwap) const
inline

Definition at line 648 of file Object.h.

References _terrainSwaps.

◆ IsWithinDist()

◆ IsWithinDist2d() [1/2]

◆ IsWithinDist2d() [2/2]

bool WorldObject::IsWithinDist2d ( Position const * pos,
float dist ) const

Definition at line 1725 of file Object.cpp.

References GetObjectSize(), and Position::IsInDist2d().

◆ IsWithinDist3d() [1/2]

bool WorldObject::IsWithinDist3d ( float x,
float y,
float z,
float dist ) const

◆ IsWithinDist3d() [2/2]

bool WorldObject::IsWithinDist3d ( Position const * pos,
float dist ) const

Definition at line 1715 of file Object.cpp.

References GetObjectSize(), and Position::IsInDist().

◆ IsWithinDistInMap()

bool WorldObject::IsWithinDistInMap ( WorldObject const * obj,
float dist2compare,
bool is3D = true ) const

Definition at line 1735 of file Object.cpp.

References _IsWithinDist(), InSamePhase(), IsInMap(), and WorldObject().

Referenced by Creature::CanStartAttack(), Player::CheckDuelDistance(), npc_anachronos_quest_trigger::npc_anachronos_quest_triggerAI::CheckEventFail(), npc_lord_illidan_stormrage::npc_lord_illidan_stormrageAI::CheckEventFail(), BattlegroundEY::CheckSomeoneJoinedPoint(), BattlegroundEY::CheckSomeoneLeftPoint(), WorldSession::DoLootRelease(), BattlegroundAB::EventPlayerClickedOnFlag(), BattlegroundBFG::EventPlayerClickedOnFlag(), BattlegroundEY::EventPlayerClickedOnFlag(), BattlegroundTP::EventPlayerClickedOnFlag(), BattlegroundWS::EventPlayerClickedOnFlag(), Player::GetNextRandomRaidMember(), Unit::GetNextRandomRaidMemberOrPet(), Player::GetNPCIfCanInteractWith(), Group::GroupLoot(), WorldSession::HandleAutostoreLootItemOpcode(), WorldSession::HandleGameobjectReportUse(), WorldSession::HandleInitiateTradeOpcode(), WorldSession::HandleLootMoneyOpcode(), AuraEffect::HandleModPossessPet(), WorldSession::HandleReclaimCorpseOpcode(), Unit::isInBackInMap(), Unit::isInFrontInMap(), LuaUnit::IsWithinDistInMap(), Group::MasterLoot(), Group::NeedBeforeGreed(), Skyfire::CallOfHelpCreatureInRangeDo::operator()(), Skyfire::GameObjectFocusCheck::operator()(), Skyfire::NearestHostileUnitInAggroRangeCheck::operator()(), boss_twinemperorsAI::RespawnNearbyBugsAndGetOne(), Map::ScriptsProcess(), Player::SendLoot(), Pet::Update(), Player::Update(), boss_grand_astromancer_capernian::boss_grand_astromancer_capernianAI::UpdateAI(), boss_lady_vashj::boss_lady_vashjAI::UpdateAI(), boss_reliquary_of_souls::boss_reliquary_of_soulsAI::UpdateAI(), npc_tainted_elemental::npc_tainted_elementalAI::UpdateAI(), Group::UpdateLooterGuid(), and Player::UpdatePosition().

◆ IsWithinLOS()

bool WorldObject::IsWithinLOS ( float x,
float y,
float z ) const

◆ IsWithinLOSInMap()

◆ IsWorldObject()

bool WorldObject::IsWorldObject ( ) const

◆ MonsterSay() [1/2]

◆ MonsterSay() [2/2]

◆ MonsterTextEmote() [1/2]

◆ MonsterTextEmote() [2/2]

◆ MonsterWhisper() [1/2]

void WorldObject::MonsterWhisper ( const char * text,
Player const * target,
bool IsBossWhisper = false )

◆ MonsterWhisper() [2/2]

void WorldObject::MonsterWhisper ( int32 textId,
Player const * target,
bool IsBossWhisper = false )

◆ MonsterYell() [1/2]

◆ MonsterYell() [2/2]

◆ MovePosition()

◆ MovePositionToFirstCollision()

◆ NotifyExecuted()

bool WorldObject::NotifyExecuted ( uint16 f) const
inline

Definition at line 772 of file Object.h.

References m_executed_notifies.

◆ PlayDirectSound()

◆ PlayDistanceSound()

◆ RebuildTerrainSwaps()

◆ RebuildWorldMapAreaSwaps()

void WorldObject::RebuildWorldMapAreaSwaps ( )

◆ RemoveFromWorld()

◆ ResetAllNotifies()

void WorldObject::ResetAllNotifies ( )
inline

Definition at line 774 of file Object.h.

References m_executed_notifies, and m_notifyflags.

◆ ResetMap()

void WorldObject::ResetMap ( )
virtual

◆ SaveRespawnTime()

virtual void WorldObject::SaveRespawnTime ( )
inlinevirtual

Reimplemented in Creature, and GameObject.

Definition at line 718 of file Object.h.

◆ SendMessageToSet() [1/2]

◆ SendMessageToSet() [2/2]

void WorldObject::SendMessageToSet ( WorldPacket * data,
Player const * skipped_rcvr )
virtual

Reimplemented in Player.

Definition at line 2497 of file Object.cpp.

References GetVisibilityRange(), and VisitNearbyWorldObject().

◆ SendMessageToSetInRange()

void WorldObject::SendMessageToSetInRange ( WorldPacket * data,
float dist,
bool self )
virtual

Reimplemented in Player.

Definition at line 2491 of file Object.cpp.

References VisitNearbyWorldObject().

Referenced by MonsterTextEmote(), SendMessageToSet(), and CreatureTextMgr::SendNonChatPacket().

◆ SendObjectDeSpawnAnim()

◆ SendPlaySound()

◆ setActive()

◆ SetLocationInstanceId()

void WorldObject::SetLocationInstanceId ( uint32 _instanceId)
inlineprotected

Definition at line 827 of file Object.h.

References m_InstanceId.

Referenced by Corpse::LoadCorpseFromDB().

◆ SetLocationMapId()

void WorldObject::SetLocationMapId ( uint32 _mapId)
inlineprotected

Definition at line 826 of file Object.h.

References WorldLocation::m_mapId.

Referenced by Corpse::LoadCorpseFromDB().

◆ SetMap()

◆ SetName()

◆ SetNotified()

void WorldObject::SetNotified ( uint16 f)
inline

Definition at line 773 of file Object.h.

References m_executed_notifies.

◆ SetPhased()

bool WorldObject::SetPhased ( uint32 id,
bool update,
bool apply )
virtual

◆ SetPhaseMask()

void WorldObject::SetPhaseMask ( uint32 newPhaseMask,
bool update )
virtual

◆ SetTransport()

◆ SetWorldObject()

void WorldObject::SetWorldObject ( bool apply)

◆ SetZoneScript()

void WorldObject::SetZoneScript ( )

◆ SummonCreature() [1/2]

TempSummon * WorldObject::SummonCreature ( uint32 id,
float x,
float y,
float z,
float ang = 0,
TempSummonType spwtype = TempSummonType::TEMPSUMMON_MANUAL_DESPAWN,
uint32 despwtime = 0 ) const

◆ SummonCreature() [2/2]

TempSummon * WorldObject::SummonCreature ( uint32 id,
Position const & pos,
TempSummonType spwtype = TempSummonType::TEMPSUMMON_MANUAL_DESPAWN,
uint32 despwtime = 0,
uint32 vehId = 0 ) const

Definition at line 2703 of file Object.cpp.

References FindMap(), Object::isType(), SummonCreature(), and TYPEMASK_UNIT.

Referenced by instance_violet_hold::instance_violet_hold_InstanceMapScript::ActivateCrystal(), instance_violet_hold::instance_violet_hold_InstanceMapScript::AddWave(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::DoSpawnPortal(), spell_commander_sarannis_summon_reinforcements::spell_commander_sarannis_summon_reinforcements_SpellScript::HandleCast(), spell_rotface_unstable_ooze_explosion_init::spell_rotface_unstable_ooze_explosion_init_SpellScript::HandleCast(), debug_commandscript::HandleDebugSpawnVehicleCommand(), spell_q11010_q11102_q11023_choose_loc::spell_q11010_q11102_q11023_choose_loc_SpellScript::HandleDummy(), mmaps_commandscript::HandleMmapPathCommand(), npc_commandscript::HandleNpcAddTempSpawnCommand(), AuraEffect::HandlePeriodicTriggerSpellAuraTick(), spell_occuthar_eyes_of_occuthar_vehicle::spell_occuthar_eyes_of_occuthar_vehicle_SpellScript::HandleScript(), spell_q26674_call_stalvan::spell_q26674_call_stalvan_SpellScript::HandleScript(), spell_razorscale_devouring_flame::spell_razorscale_devouring_flame_SpellScript::HandleSummon(), instance_onyxias_lair::instance_onyxias_lair_InstanceMapScript::OnGameObjectCreate(), go_demon_portal::OnGossipHello(), go_ethereum_prison::OnGossipHello(), go_gilded_brazier::OnGossipHello(), go_loosely_turned_soil::OnGossipHello(), go_manaforge_control_console::OnGossipHello(), go_southfury_moonstone::OnGossipHello(), go_thunderspike::OnGossipHello(), go_apexis_relic::OnGossipSelect(), npc_announcer_toc10::OnGossipSelect(), npc_grandmother::OnGossipSelect(), npc_master_shang_xi_temple::OnGossipSelect(), instance_trial_of_the_crusader::instance_trial_of_the_crusader_InstanceMapScript::OnPlayerEnter(), go_crystalline_tear::OnQuestAccept(), npc_master_shang_xi_temple::OnQuestAccept(), npc_master_shang_xi_worthy_questgiver::OnQuestAccept(), AreaTrigger_at_darkspear_isle::OnTrigger(), AreaTrigger_at_frostgrips_hollow::OnTrigger(), AreaTrigger_at_nats_landing::OnTrigger(), AreaTrigger_at_temple_of_five_dawns::OnTrigger(), at_kelthuzad_center::OnTrigger(), item_nether_wraith_beacon::OnUse(), item_pile_fake_furs::OnUse(), instance_halls_of_reflection::instance_halls_of_reflection_InstanceMapScript::ProcessEvent(), instance_oculus::instance_oculus_InstanceMapScript::ProcessEvent(), instance_hyjal::instance_mount_hyjal_InstanceMapScript::SetData(), instance_old_hillsbrad::instance_old_hillsbrad_InstanceMapScript::SetData(), instance_razorfen_downs::instance_razorfen_downs_InstanceMapScript::SetData(), LuaUnit::SpawnCreature(), instance_violet_hold::instance_violet_hold_InstanceMapScript::SpawnPortal(), boss_sister_svalna::boss_sister_svalnaAI::SpellHitTarget(), LuaGameObject::SummonCreature(), SummonCreature(), SummonCreature(), SummonCreatureGroup(), instance_deadmines::instance_deadmines_InstanceMapScript::SummonCreatures(), SummonCroneIfReady(), instance_the_black_morass::instance_the_black_morass_InstanceMapScript::SummonedPortalBoss(), go_wind_stone::SummonNPC(), SummonTrigger(), instance_gundrak::instance_gundrak_InstanceMapScript::Update(), instance_serpent_shrine::instance_serpentshrine_cavern_InstanceMapScript::Update(), instance_shadowfang_keep::instance_shadowfang_keep_InstanceMapScript::Update(), npc_shu_dailo::npc_shu_dailoAI::UpdateAI(), and boss_netherspite::boss_netherspiteAI::UpdatePortals().

◆ SummonCreatureGroup()

void WorldObject::SummonCreatureGroup ( uint8 group,
std::list< TempSummon * > * list = NULL )

Summons group of creatures. Should be called only by instances of Creature and GameObject classes.

Parameters
groupId of group to summon.
listList to store pointers to summoned creatures.

Definition at line 2787 of file Object.cpp.

References ASSERT, Object::GetEntry(), Object::GetTypeId(), sObjectMgr, SummonCreature(), SUMMONER_TYPE_CREATURE, SUMMONER_TYPE_GAMEOBJECT, TYPEID_GAMEOBJECT, and TYPEID_UNIT.

Referenced by SmartScript::ProcessAction().

◆ SummonGameObject()

◆ SummonTrigger()

◆ Update()

virtual void WorldObject::Update ( uint32 )
inlinevirtual

Reimplemented in AreaTrigger, Creature, DynamicObject, GameObject, Pet, Player, Puppet, TempSummon, Totem, Transport, and Unit.

Definition at line 616 of file Object.h.

Referenced by AreaTrigger::Update(), and Map::Update().

◆ UpdateAllowedPositionZ()

◆ UpdateAreaPhase()

◆ UpdateGroundPositionZ()

void WorldObject::UpdateGroundPositionZ ( float x,
float y,
float & z ) const

◆ UpdateObjectVisibility()

void WorldObject::UpdateObjectVisibility ( bool forced = true)
virtual

◆ VisitNearbyGridObject()

template<class NOTIFIER>
void WorldObject::VisitNearbyGridObject ( float const & radius,
NOTIFIER & notifier ) const
inline

◆ VisitNearbyObject()

◆ VisitNearbyWorldObject()

Member Data Documentation

◆ _phases

std::set<uint32> WorldObject::_phases
private

◆ _terrainSwaps

std::set<uint32> WorldObject::_terrainSwaps
private

Definition at line 841 of file Object.h.

Referenced by GetTerrainSwaps(), IsTerrainSwaped(), and RebuildTerrainSwaps().

◆ _worldMapSwaps

std::set<uint32> WorldObject::_worldMapSwaps
private

Definition at line 842 of file Object.h.

Referenced by GetWorldMapSwaps(), and RebuildWorldMapAreaSwaps().

◆ LastUsedScriptID

uint32 WorldObject::LastUsedScriptID

◆ m_currMap

Map* WorldObject::m_currMap
private

Definition at line 835 of file Object.h.

Referenced by FindMap(), GetBaseMap(), GetMap(), ResetMap(), SetMap(), WorldObject(), and ~WorldObject().

◆ m_executed_notifies

uint16 WorldObject::m_executed_notifies
private

Definition at line 845 of file Object.h.

Referenced by NotifyExecuted(), ResetAllNotifies(), SetNotified(), and WorldObject().

◆ m_InstanceId

uint32 WorldObject::m_InstanceId
private

Definition at line 838 of file Object.h.

Referenced by GetInstanceId(), SetLocationInstanceId(), SetMap(), and WorldObject().

◆ m_invisibility

◆ m_invisibilityDetect

◆ m_isActive

bool WorldObject::m_isActive
protected

Definition at line 816 of file Object.h.

Referenced by isActiveObject(), Player::Player(), setActive(), and WorldObject().

◆ m_isWorldObject

const bool WorldObject::m_isWorldObject
protected

Definition at line 817 of file Object.h.

Referenced by IsPermanentWorldObject(), IsWorldObject(), and WorldObject().

◆ m_movementInfo

◆ m_name

◆ m_notifyflags

uint16 WorldObject::m_notifyflags
private

Definition at line 844 of file Object.h.

Referenced by AddToNotify(), GetNotifyFlags(), isNeedNotify(), ResetAllNotifies(), and WorldObject().

◆ m_phaseMask

uint32 WorldObject::m_phaseMask
private

Definition at line 839 of file Object.h.

Referenced by _Create(), GetPhaseMask(), SetPhaseMask(), and WorldObject().

◆ m_serverSideVisibility

◆ m_serverSideVisibilityDetect

◆ m_stealth

◆ m_stealthDetect

Definition at line 727 of file Object.h.

Referenced by CanDetectStealthOf(), and AuraEffect::HandleModStealthDetect().

◆ m_transport

◆ m_zoneScript


The documentation for this class was generated from the following files: