TrinityCore
Loading...
Searching...
No Matches
WorldObject Class Referenceabstract

#include <Object.h>

+ Inheritance diagram for WorldObject:

Public Member Functions

virtual ~WorldObject ()
 
virtual void Update (uint32 diff)
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void GetNearPoint2D (WorldObject const *searcher, float &x, float &y, float distance, float absAngle) const
 
void GetNearPoint (WorldObject const *searcher, float &x, float &y, float &z, float distance2d, float absAngle) const
 
void GetClosePoint (float &x, float &y, float &z, float size, float distance2d=0, float relAngle=0) const
 
void MovePosition (Position &pos, float dist, float angle, float maxHeightChange=6.0f) const
 
Position GetNearPosition (float dist, float angle)
 
void MovePositionToFirstCollision (Position &pos, float dist, float angle) const
 
Position GetFirstCollisionPosition (float dist, float angle)
 
Position GetRandomNearPosition (float radius)
 
void GetContactPoint (WorldObject const *obj, float &x, float &y, float &z, float distance2d=CONTACT_DISTANCE) const
 
virtual float GetCombatReach () const
 
void UpdateGroundPositionZ (float x, float y, float &z) const
 
void UpdateAllowedPositionZ (float x, float y, float &z, float *groundZ=nullptr) const
 
Position GetRandomPoint (Position const &srcPos, float distance, float minDistance=0.0f) const
 
uint32 GetInstanceId () const
 
PhaseShiftGetPhaseShift ()
 
PhaseShift const & GetPhaseShift () const
 
PhaseShiftGetSuppressedPhaseShift ()
 
PhaseShift const & GetSuppressedPhaseShift () const
 
bool InSamePhase (PhaseShift const &phaseShift) const
 
bool InSamePhase (WorldObject const *obj) const
 
int32 GetDBPhase () const
 
void SetDBPhase (int32 p)
 
uint32 GetZoneId () const
 
uint32 GetAreaId () const
 
void GetZoneAndAreaId (uint32 &zoneid, uint32 &areaid) const
 
bool IsInWorldPvpZone () const
 
bool IsOutdoors () const
 
ZLiquidStatus GetLiquidStatus () const
 
WmoLocation const * GetCurrentWmo () const
 
InstanceScriptGetInstanceScript () const
 
std::string const & GetName () const
 
void SetName (std::string newname)
 
std::string GetNameForLocaleIdx (LocaleConstant) const override
 
float GetDistance (WorldObject const *obj) const
 
float GetDistance (Position const &pos) const
 
float GetDistance (float x, float y, float z) const
 
float GetDistance2d (WorldObject const *obj) const
 
float GetDistance2d (float x, float y) const
 
float GetDistanceZ (WorldObject const *obj) const
 
bool IsSelfOrInSameMap (WorldObject const *obj) const
 
bool IsInMap (WorldObject const *obj) const
 
bool IsWithinDist3d (float x, float y, float z, float dist) const
 
bool IsWithinDist3d (Position const *pos, float dist) const
 
bool IsWithinDist2d (float x, float y, float dist) const
 
bool IsWithinDist2d (Position const *pos, float dist) const
 
bool IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool IsWithinLOS (float x, float y, float z, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
bool IsWithinLOSInMap (WorldObject const *obj, LineOfSightChecks checks=LINEOFSIGHT_ALL_CHECKS, VMAP::ModelIgnoreFlags ignoreFlags=VMAP::ModelIgnoreFlags::Nothing) const
 
Position GetHitSpherePointFor (Position const &dest) const
 
void GetHitSpherePointFor (Position const &dest, float &x, float &y, float &z) const
 
bool GetDistanceOrder (WorldObject const *obj1, WorldObject const *obj2, bool is3D=true) const
 
bool IsInRange (WorldObject const *obj, float minRange, float maxRange, bool is3D=true) const
 
bool IsInRange2d (Position const *pos, float minRange, float maxRange) const
 
bool IsInRange3d (Position const *pos, float minRange, float maxRange) const
 
bool isInFront (WorldObject const *target, float arc=float(M_PI)) const
 
bool isInBack (WorldObject const *target, float arc=float(M_PI)) const
 
bool IsInBetween (Position const &pos1, Position const &pos2, float size=0) const
 
bool IsInBetween (WorldObject const *obj1, WorldObject const *obj2, float size=0) const
 
virtual void CleanupsBeforeDelete (bool finalCleanup=true)
 
virtual void SendMessageToSet (WorldPacket const *data, bool self) const
 
virtual void SendMessageToSetInRange (WorldPacket const *data, float dist, bool self) const
 
virtual void SendMessageToSet (WorldPacket const *data, Player const *skipped_rcvr) const
 
void SendCombatLogMessage (WorldPackets::CombatLog::CombatLogServerPacket *combatLog) const
 
virtual uint8 GetLevelForTarget (WorldObject const *) const
 
void PlayDistanceSound (uint32 soundId, Player const *target=nullptr) const
 
void StopDistanceSound (Player const *target=nullptr) const
 
void PlayDirectSound (uint32 soundId, Player const *target=nullptr, uint32 broadcastTextId=0) const
 
void PlayDirectMusic (uint32 musicId, Player const *target=nullptr) const
 
void PlayObjectSound (int32 soundKitId, ObjectGuid targetObject, Player const *target=nullptr, int32 broadcastTextId=0) const
 
void AddObjectToRemoveList ()
 
float GetGridActivationRange () const
 
float GetVisibilityRange () const
 
float GetSightRange (WorldObject const *target=nullptr) const
 
bool CanSeeOrDetect (WorldObject const *obj, CanSeeOrDetectExtraArgs const &args={ }) const
 
virtual void SetMap (Map *map)
 
virtual void ResetMap ()
 
MapGetMap () const
 
MapFindMap () const
 
void SetZoneScript ()
 
ZoneScriptFindZoneScript () const
 
ZoneScriptGetZoneScript () const
 
ScenarioGetScenario () const
 
TempSummonSummonCreature (uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummonSummonCreature (uint32 entry, float x, float y, float z, float o=0, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
 
TempSummonSummonPersonalClone (Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, Player *privateObjectOwner=nullptr)
 
GameObjectSummonGameObject (uint32 entry, Position const &pos, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
GameObjectSummonGameObject (uint32 entry, float x, float y, float z, float ang, QuaternionData const &rot, Seconds respawnTime, GOSummonType summonType=GO_SUMMON_TIMED_OR_CORPSE_DESPAWN)
 
CreatureSummonTrigger (float x, float y, float z, float ang, Milliseconds despawnTime, CreatureAI *(*GetAI)(Creature *)=nullptr)
 
void SummonCreatureGroup (uint8 group, std::list< TempSummon * > *list=nullptr)
 
CreatureFindNearestCreature (uint32 entry, float range, bool alive=true) const
 
CreatureFindNearestCreatureWithOptions (float range, FindCreatureOptions const &options) const
 
GameObjectFindNearestGameObject (uint32 entry, float range, bool spawnedOnly=true) const
 
GameObjectFindNearestGameObjectWithOptions (float range, FindGameObjectOptions const &options) const
 
GameObjectFindNearestUnspawnedGameObject (uint32 entry, float range) const
 
GameObjectFindNearestGameObjectOfType (GameobjectTypes type, float range) const
 
PlayerSelectNearestPlayer (float range) const
 
virtual ObjectGuid GetCreatorGUID () const =0
 
virtual ObjectGuid GetOwnerGUID () const =0
 
virtual ObjectGuid GetCharmerOrOwnerGUID () const
 
ObjectGuid GetCharmerOrOwnerOrOwnGUID () const
 
UnitGetOwner () const
 
UnitGetCharmerOrOwner () const
 
UnitGetCharmerOrOwnerOrSelf () const
 
PlayerGetCharmerOrOwnerPlayerOrPlayerItself () const
 
PlayerGetAffectingPlayer () const
 
PlayerGetSpellModOwner () const
 
SpellRange GetSpellMinMaxRangeForTarget (Unit const *target, SpellInfo const *spellInfo) const
 
SpellEffectValue ApplyEffectModifiers (SpellInfo const *spellInfo, uint8 effIndex, SpellEffectValue value) const
 
int32 CalcSpellDuration (SpellInfo const *spellInfo, std::vector< SpellPowerCost > const *powerCosts) const
 
int32 ModSpellDuration (SpellInfo const *spellInfo, WorldObject const *target, int32 duration, bool positive, uint32 effectMask) const
 
void ModSpellCastTime (SpellInfo const *spellInfo, int32 &castTime, Spell *spell=nullptr) const
 
void ModSpellDurationTime (SpellInfo const *spellInfo, int32 &durationTime, Spell *spell=nullptr) const
 
virtual float MeleeSpellMissChance (Unit const *victim, WeaponAttackType attType, SpellInfo const *spellInfo) const
 
virtual SpellMissInfo MeleeSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo MagicSpellHitResult (Unit *victim, SpellInfo const *spellInfo) const
 
SpellMissInfo SpellHitResult (Unit *victim, SpellInfo const *spellInfo, bool canReflect, bool canImmune) const
 
void SendSpellMiss (Unit *target, uint32 spellID, SpellMissInfo missInfo)
 
virtual uint32 GetFaction () const =0
 
virtual void SetFaction (uint32)
 
FactionTemplateEntry const * GetFactionTemplateEntry () const
 
ReputationRank GetReactionTo (WorldObject const *target) const
 
bool IsHostileTo (WorldObject const *target) const
 
bool IsHostileToPlayers () const
 
bool IsFriendlyTo (WorldObject const *target) const
 
bool IsNeutralToAll () const
 
SpellCastResult CastSpell (CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &sourceLocation, Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (ObjectGuid const &target, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendPlayOrphanSpellVisual (Position const &targetLocation, uint32 spellVisualId, float travelSpeed, bool speedAsTime=false, bool withSourceOrientation=false)
 
void SendCancelOrphanSpellVisual (uint32 id)
 
bool IsValidAttackTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
bool IsValidAssistTarget (WorldObject const *target, SpellInfo const *bySpell=nullptr) const
 
UnitGetMagicHitRedirectTarget (Unit *victim, SpellInfo const *spellInfo)
 
virtual uint32 GetCastSpellXSpellVisualId (SpellInfo const *spellInfo) const
 
template<typename Container >
void GetGameObjectListWithEntryInGrid (Container &gameObjectContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetGameObjectListWithOptionsInGrid (Container &gameObjectContainer, float maxSearchRange, FindGameObjectOptions const &options) const
 
template<typename Container >
void GetCreatureListWithEntryInGrid (Container &creatureContainer, uint32 entry, float maxSearchRange=250.0f) const
 
template<typename Container >
void GetCreatureListWithOptionsInGrid (Container &creatureContainer, float maxSearchRange, FindCreatureOptions const &options) const
 
template<typename Container >
void GetPlayerListInGrid (Container &playerContainer, float maxSearchRange, bool alive=true) const
 
void DestroyForNearbyPlayers ()
 
virtual void UpdateObjectVisibility (bool forced=true)
 
virtual void UpdateObjectVisibilityOnCreate ()
 
virtual void UpdateObjectVisibilityOnDestroy ()
 
void UpdatePositionData ()
 
void BuildUpdate (UpdateDataMapType &) override
 
bool AddToObjectUpdate () override
 
void RemoveFromObjectUpdate () override
 
void AddToNotify (uint16 f)
 
bool isNeedNotify (uint16 f) const
 
uint16 GetNotifyFlags () const
 
void ResetAllNotifies ()
 
bool isActiveObject () const
 
void setActive (bool isActiveObject)
 
bool IsFarVisible () const
 
void SetFarVisible (bool on)
 
bool IsVisibilityOverridden () const
 
void SetVisibilityDistanceOverride (VisibilityDistanceType type)
 
void SetIsStoredInWorldObjectGridContainer (bool apply)
 
bool IsAlwaysStoredInWorldObjectGridContainer () const
 
bool IsStoredInWorldObjectGridContainer () const
 
TransportBaseGetTransport () const
 
float GetTransOffsetX () const
 
float GetTransOffsetY () const
 
float GetTransOffsetZ () const
 
float GetTransOffsetO () const
 
Position const & GetTransOffset () const
 
uint32 GetTransTime () const
 
int8 GetTransSeat () const
 
virtual ObjectGuid GetTransGUID () const
 
void SetTransport (TransportBase *t)
 
virtual Position const & GetStationaryPosition () const
 
float GetFloorZ () const
 
virtual float GetCollisionHeight () const
 
float GetMapWaterOrGroundLevel (float x, float y, float z, float *ground=nullptr) const
 
float GetMapHeight (float x, float y, float z, bool vmap=true, float distanceToSearch=50.0f) const
 
std::string GetDebugInfo () const override
 
virtual uint16 GetAIAnimKitId () const
 
virtual uint16 GetMovementAnimKitId () const
 
virtual uint16 GetMeleeAnimKitId () const
 
bool IsPrivateObject () const
 
ObjectGuid GetPrivateObjectOwner () const
 
void SetPrivateObjectOwner (ObjectGuid const &owner)
 
bool CheckPrivateObjectOwnerVisibility (WorldObject const *seer) const
 
SmoothPhasingGetOrCreateSmoothPhasing ()
 
SmoothPhasingGetSmoothPhasing ()
 
SmoothPhasing const * GetSmoothPhasing () const
 
- Public Member Functions inherited from Object
virtual ~Object ()
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
void SetDynamicFlag (uint32 flag)
 
void RemoveDynamicFlag (uint32 flag)
 
void ReplaceAllDynamicFlags (uint32 flag)
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
ItemToItem ()
 
Item const * ToItem () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
AreaTriggerToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
SceneObjectToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
ConversationToConversation ()
 
Conversation const * ToConversation () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
virtual LootGetLootForPlayer (Player const *player) const
 
virtual SpawnTrackingStateData const * GetSpawnTrackingStateDataForPlayer (Player const *player) const
 
virtual void BuildValuesUpdateWithFlag (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const
 
- Public Member Functions inherited from BaseEntity
virtual ~BaseEntity ()
 
bool IsInWorld () const
 
ObjectGuid const & GetGUID () const
 
TypeID GetTypeId () const
 
bool isType (TypeMask mask) const
 
bool IsWorldObject () const
 
bool IsItem () const
 
bool IsUnit () const
 
bool IsCreature () const
 
bool IsPlayer () const
 
bool IsGameObject () const
 
bool IsDynObject () const
 
bool IsCorpse () const
 
bool IsAreaTrigger () const
 
bool IsSceneObject () const
 
bool IsConversation () const
 
bool IsMeshObject () const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player) const
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBufferPrepareValuesUpdateBuffer (UpdateData *data) const
 
virtual void DestroyForPlayer (Player const *target) const
 
void SendOutOfRangeForPlayer (Player const *target) const
 
void ClearUpdateMask (bool remove)
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
void BuildUpdateChangesMask ()
 
void BuildFieldsUpdate (Player *player, UpdateDataMapType &data_map) const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldPrivateSetter< T > const &)
 
- Public Member Functions inherited from WorldLocation
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
 

Static Public Member Functions

static bool InSamePhase (WorldObject const *a, WorldObject const *b)
 
static ReputationRank GetFactionReactionTo (FactionTemplateEntry const *factionTemplateEntry, WorldObject const *target)
 
- Static Public Member Functions inherited from Object
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static GameObjectToGameObject (Object *o)
 
static GameObject const * ToGameObject (Object const *o)
 
static CorpseToCorpse (Object *o)
 
static Corpse const * ToCorpse (Object const *o)
 
static DynamicObjectToDynObject (Object *o)
 
static DynamicObject const * ToDynObject (Object const *o)
 
static AreaTriggerToAreaTrigger (Object *o)
 
static AreaTrigger const * ToAreaTrigger (Object const *o)
 
static SceneObjectToSceneObject (Object *o)
 
static SceneObject const * ToSceneObject (Object const *o)
 
static ConversationToConversation (Object *o)
 
static Conversation const * ToConversation (Object const *o)
 
- Static Public Member Functions inherited from BaseEntity
static ObjectGuid GetGUID (BaseEntity const *o)
 
- Static Public Member Functions inherited from Position
static float NormalizeOrientation (float o)
 

Public Attributes

FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealth
 
FlaggedValuesArray32< int32, uint32, StealthType, TOTAL_STEALTH_TYPESm_stealthDetect
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibility
 
FlaggedValuesArray32< int32, uint64, InvisibilityType, TOTAL_INVISIBILITY_TYPESm_invisibilityDetect
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibility
 
FlaggedValuesArray32< int32, uint32, ServerSideVisibilityType, TOTAL_SERVERSIDE_VISIBILITY_TYPESm_serverSideVisibilityDetect
 
uint32 LastUsedScriptID
 
MovementInfo m_movementInfo
 
EventProcessor m_Events
 
- Public Attributes inherited from Object
UF::UpdateField< UF::ObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_OBJECTm_objectData
 
- Public Attributes inherited from BaseEntity
UF::UpdateFieldHolder m_values
 
- Public Attributes inherited from WorldLocation
uint32 m_mapId
 
- Public Attributes inherited from Position
float m_positionX
 
float m_positionY
 
float m_positionZ
 

Protected Member Functions

 WorldObject (bool isWorldObject)
 
virtual void ProcessPositionDataChanged (PositionFullTerrainStatus const &data)
 
void SetLocationMapId (uint32 _mapId)
 
void SetLocationInstanceId (uint32 _instanceId)
 
virtual bool CanNeverSee (WorldObject const *obj, bool ignorePhaseShift=false) const
 
virtual bool CanAlwaysSee (WorldObject const *) const
 
virtual bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const
 
virtual bool IsAlwaysVisibleFor (WorldObject const *seer) const
 
virtual bool IsInvisibleDueToDespawn (WorldObject const *seer) const
 
virtual bool IsAlwaysDetectableFor (WorldObject const *seer) const
 
virtual void Heartbeat ()
 
- Protected Member Functions inherited from Object
 Object ()
 
virtual void BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const =0
 
virtual void BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const =0
 
void BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const
 
virtual void ClearValuesChangesMask ()
 
- Protected Member Functions inherited from BaseEntity
 BaseEntity ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type flag)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result AddDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result InsertDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void RemoveDynamicUpdateFieldValue (UF::DynamicUpdateFieldSetter< T > setter, uint32 index)
 
template<typename T >
void ClearDynamicUpdateFieldValues (UF::DynamicUpdateFieldSetter< T > setter)
 
template<typename K , typename V >
void RemoveMapUpdateFieldValue (UF::MapUpdateFieldSetter< K, V > setter, std::type_identity_t< K > const &key)
 
template<typename T >
void InsertSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveSetUpdateFieldValue (UF::SetUpdateFieldSetter< T > setter, std::type_identity_t< T > const &key)
 
template<typename T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, typename UF::UpdateFieldPrivateSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldPrivateSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer &data, CreateObjectBits flags, Player const *target) const
 
virtual UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const
 
void AddToObjectUpdateIfNeeded ()
 

Protected Attributes

std::string m_name
 
bool m_isActive
 
bool m_isFarVisible
 
Optional< float > m_visibilityDistanceOverride
 
bool const m_isStoredInWorldObjectGridContainer
 
ZoneScriptm_zoneScript
 
TransportBasem_transport
 
uint32 m_zoneId
 
uint32 m_areaId
 
float m_staticFloorZ
 
bool m_outdoors
 
ZLiquidStatus m_liquidStatus
 
Optional< WmoLocationm_currentWmo
 
- Protected Attributes inherited from BaseEntity
TypeID m_objectTypeId = NUM_CLIENT_OBJECT_TYPES
 
CreateObjectBits m_updateFlag = {}
 
WowCS::EntityFragmentsHolder m_entityFragments
 
bool m_objectUpdated = false
 

Private Member Functions

virtual bool _IsWithinDist (WorldObject const *obj, float dist2compare, bool is3D, bool incOwnRadius=true, bool incTargetRadius=true) const
 
bool CanDetect (WorldObject const *obj, bool ignoreStealth, bool checkAlert=false) const
 
bool CanDetectInvisibilityOf (WorldObject const *obj) const
 
bool CanDetectStealthOf (WorldObject const *obj, bool checkAlert=false) const
 

Private Attributes

Mapm_currMap
 
uint32 m_InstanceId
 
PhaseShift _phaseShift
 
PhaseShift _suppressedPhaseShift
 
int32 _dbPhase
 
uint16 m_notifyflags
 
ObjectGuid _privateObjectOwner
 
std::unique_ptr< SmoothPhasing_smoothPhasing
 
Milliseconds _heartbeatTimer
 

Additional Inherited Members

- Static Protected Member Functions inherited from BaseEntity
static void BuildEntityFragments (ByteBuffer &data, std::span< WowCS::EntityFragment const > fragments)
 

Detailed Description

Definition at line 280 of file Object.h.

Constructor & Destructor Documentation

◆ WorldObject()

WorldObject::WorldObject ( bool  isWorldObject)
explicitprotected

Definition at line 219 of file Object.cpp.

+ Here is the call graph for this function:

◆ ~WorldObject()

WorldObject::~WorldObject ( )
virtual

Definition at line 230 of file Object.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ _IsWithinDist()

bool WorldObject::_IsWithinDist ( WorldObject const *  obj,
float  dist2compare,
bool  is3D,
bool  incOwnRadius = true,
bool  incTargetRadius = true 
) const
privatevirtual

Reimplemented in GameObject.

Definition at line 410 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddObjectToRemoveList()

void WorldObject::AddObjectToRemoveList ( )

Definition at line 1174 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ AddToNotify()

void WorldObject::AddToNotify ( uint16  f)
inline

Definition at line 519 of file Object.h.

+ Here is the caller graph for this function:

◆ AddToObjectUpdate()

bool WorldObject::AddToObjectUpdate ( )
overridevirtual

Implements BaseEntity.

Definition at line 3082 of file Object.cpp.

+ Here is the call graph for this function:

◆ AddToWorld()

void WorldObject::AddToWorld ( )
overridevirtual

Reimplemented from Object.

Definition at line 365 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ApplyEffectModifiers()

SpellEffectValue WorldObject::ApplyEffectModifiers ( SpellInfo const *  spellInfo,
uint8  effIndex,
SpellEffectValue  value 
) const

Definition at line 1671 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ BuildUpdate()

void WorldObject::BuildUpdate ( UpdateDataMapType data_map)
overridevirtual

Reimplemented from BaseEntity.

Definition at line 3070 of file Object.cpp.

+ Here is the call graph for this function:

◆ CalcSpellDuration()

int32 WorldObject::CalcSpellDuration ( SpellInfo const *  spellInfo,
std::vector< SpellPowerCost > const *  powerCosts 
) const

Definition at line 1700 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanAlwaysSee()

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

Reimplemented in Creature, and Player.

Definition at line 604 of file Object.h.

+ Here is the caller graph for this function:

◆ CanDetect()

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

Definition at line 965 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanDetectInvisibilityOf()

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

Definition at line 994 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanDetectStealthOf()

bool WorldObject::CanDetectStealthOf ( WorldObject const *  obj,
bool  checkAlert = false 
) const
private

Definition at line 1018 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanNeverSee()

bool WorldObject::CanNeverSee ( WorldObject const *  obj,
bool  ignorePhaseShift = false 
) const
protectedvirtual

Reimplemented in Player.

Definition at line 960 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CanSeeOrDetect()

bool WorldObject::CanSeeOrDetect ( WorldObject const *  obj,
CanSeeOrDetectExtraArgs const &  args = { } 
) const

Definition at line 857 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CastSpell()

SpellCastResult WorldObject::CastSpell ( CastSpellTargetArg const &  targets,
uint32  spellId,
CastSpellExtraArgs const &  args = { } 
)

Definition at line 2217 of file Object.cpp.

+ Here is the call graph for this function:

◆ CheckPrivateObjectOwnerVisibility()

bool WorldObject::CheckPrivateObjectOwnerVisibility ( WorldObject const *  seer) const

Definition at line 829 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ CleanupsBeforeDelete()

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

Reimplemented in GameObject, Player, Transport, and Unit.

Definition at line 335 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ DestroyForNearbyPlayers()

void WorldObject::DestroyForNearbyPlayers ( )

Definition at line 3037 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindMap()

Map * WorldObject::FindMap ( ) const
inline

Definition at line 412 of file Object.h.

+ Here is the caller graph for this function:

◆ FindNearestCreature()

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

Definition at line 1517 of file Object.cpp.

+ Here is the call graph for this function:

◆ FindNearestCreatureWithOptions()

Creature * WorldObject::FindNearestCreatureWithOptions ( float  range,
FindCreatureOptions const &  options 
) const

Definition at line 1526 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindNearestGameObject()

GameObject * WorldObject::FindNearestGameObject ( uint32  entry,
float  range,
bool  spawnedOnly = true 
) const

Definition at line 1539 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindNearestGameObjectOfType()

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

Definition at line 1570 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindNearestGameObjectWithOptions()

GameObject * WorldObject::FindNearestGameObjectWithOptions ( float  range,
FindGameObjectOptions const &  options 
) const

Definition at line 1548 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindNearestUnspawnedGameObject()

GameObject * WorldObject::FindNearestUnspawnedGameObject ( uint32  entry,
float  range 
) const

Definition at line 1561 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ FindZoneScript()

ZoneScript * WorldObject::FindZoneScript ( ) const

Definition at line 1365 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAffectingPlayer()

Player * WorldObject::GetAffectingPlayer ( ) const

Definition at line 1630 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetAIAnimKitId()

virtual uint16 WorldObject::GetAIAnimKitId ( ) const
inlinevirtual

Reimplemented in GameObject, and Unit.

Definition at line 563 of file Object.h.

+ Here is the caller graph for this function:

◆ GetAreaId()

uint32 WorldObject::GetAreaId ( ) const
inline

Definition at line 333 of file Object.h.

+ Here is the caller graph for this function:

◆ GetCastSpellXSpellVisualId()

uint32 WorldObject::GetCastSpellXSpellVisualId ( SpellInfo const *  spellInfo) const
virtual

Reimplemented in Unit.

Definition at line 2632 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCharmerOrOwner()

Unit * WorldObject::GetCharmerOrOwner ( ) const

Definition at line 1603 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCharmerOrOwnerGUID()

virtual ObjectGuid WorldObject::GetCharmerOrOwnerGUID ( ) const
inlinevirtual

Reimplemented in Unit.

Definition at line 439 of file Object.h.

+ Here is the caller graph for this function:

◆ GetCharmerOrOwnerOrOwnGUID()

ObjectGuid WorldObject::GetCharmerOrOwnerOrOwnGUID ( ) const

Definition at line 1590 of file Object.cpp.

+ Here is the call graph for this function:

◆ GetCharmerOrOwnerOrSelf()

Unit * WorldObject::GetCharmerOrOwnerOrSelf ( ) const

Definition at line 1613 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCharmerOrOwnerPlayerOrPlayerItself()

Player * WorldObject::GetCharmerOrOwnerPlayerOrPlayerItself ( ) const

Definition at line 1621 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetClosePoint()

void WorldObject::GetClosePoint ( float &  x,
float &  y,
float &  z,
float  size,
float  distance2d = 0,
float  relAngle = 0 
) const

Definition at line 2749 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCollisionHeight()

virtual float WorldObject::GetCollisionHeight ( ) const
inlinevirtual

Reimplemented in Unit.

Definition at line 553 of file Object.h.

+ Here is the caller graph for this function:

◆ GetCombatReach()

virtual float WorldObject::GetCombatReach ( ) const
inlinevirtual

Reimplemented in Unit.

Definition at line 302 of file Object.h.

+ Here is the caller graph for this function:

◆ GetContactPoint()

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

Definition at line 2776 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCreatorGUID()

virtual ObjectGuid WorldObject::GetCreatorGUID ( ) const
pure virtual

Implemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, SceneObject, and Unit.

+ Here is the caller graph for this function:

◆ GetCreatureListWithEntryInGrid()

template<typename Container >
template TC_GAME_API void WorldObject::GetCreatureListWithEntryInGrid ( Container &  creatureContainer,
uint32  entry,
float  maxSearchRange = 250.0f 
) const

Definition at line 2658 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCreatureListWithOptionsInGrid()

template<typename Container >
template TC_GAME_API void WorldObject::GetCreatureListWithOptionsInGrid ( Container &  creatureContainer,
float  maxSearchRange,
FindCreatureOptions const &  options 
) const

Definition at line 2666 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetCurrentWmo()

WmoLocation const * WorldObject::GetCurrentWmo ( ) const
inline

Definition at line 338 of file Object.h.

+ Here is the caller graph for this function:

◆ GetDBPhase()

int32 WorldObject::GetDBPhase ( ) const
inline

Definition at line 327 of file Object.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

std::string WorldObject::GetDebugInfo ( ) const
overridevirtual

Reimplemented from Object.

Definition at line 3136 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDistance() [1/3]

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

Definition at line 444 of file Object.cpp.

+ Here is the call graph for this function:

◆ GetDistance() [2/3]

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

Definition at line 438 of file Object.cpp.

+ Here is the call graph for this function:

◆ GetDistance() [3/3]

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

Definition at line 432 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDistance2d() [1/2]

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

Definition at line 456 of file Object.cpp.

+ Here is the call graph for this function:

◆ GetDistance2d() [2/2]

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

Definition at line 450 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDistanceOrder()

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

Definition at line 569 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetDistanceZ()

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

Definition at line 402 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFaction()

virtual uint32 WorldObject::GetFaction ( ) const
pure virtual

Implemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, SceneObject, and Unit.

+ Here is the caller graph for this function:

◆ GetFactionReactionTo()

ReputationRank WorldObject::GetFactionReactionTo ( FactionTemplateEntry const *  factionTemplateEntry,
WorldObject const *  target 
)
static

Definition at line 2134 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFactionTemplateEntry()

FactionTemplateEntry const * WorldObject::GetFactionTemplateEntry ( ) const

Definition at line 2000 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFirstCollisionPosition()

Position WorldObject::GetFirstCollisionPosition ( float  dist,
float  angle 
)

Definition at line 2762 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetFloorZ()

float WorldObject::GetFloorZ ( ) const

Definition at line 3106 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetGameObjectListWithEntryInGrid()

template<typename Container >
template TC_GAME_API void WorldObject::GetGameObjectListWithEntryInGrid ( Container &  gameObjectContainer,
uint32  entry,
float  maxSearchRange = 250.0f 
) const

Definition at line 2638 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetGameObjectListWithOptionsInGrid()

template<typename Container >
template TC_GAME_API void WorldObject::GetGameObjectListWithOptionsInGrid ( Container &  gameObjectContainer,
float  maxSearchRange,
FindGameObjectOptions const &  options 
) const

Definition at line 2646 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetGridActivationRange()

float WorldObject::GetGridActivationRange ( ) const

Definition at line 771 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHitSpherePointFor() [1/2]

Position WorldObject::GetHitSpherePointFor ( Position const &  dest) const

Definition at line 506 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHitSpherePointFor() [2/2]

void WorldObject::GetHitSpherePointFor ( Position const &  dest,
float &  x,
float &  y,
float &  z 
) const

Definition at line 561 of file Object.cpp.

+ Here is the call graph for this function:

◆ GetInstanceId()

uint32 WorldObject::GetInstanceId ( ) const
inline

Definition at line 308 of file Object.h.

+ Here is the caller graph for this function:

◆ GetInstanceScript()

InstanceScript * WorldObject::GetInstanceScript ( ) const

Definition at line 396 of file Object.cpp.

+ Here is the call graph for this function:

◆ GetLevelForTarget()

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

Reimplemented in Unit, Creature, and GameObject.

Definition at line 385 of file Object.h.

+ Here is the caller graph for this function:

◆ GetLiquidStatus()

ZLiquidStatus WorldObject::GetLiquidStatus ( ) const
inline

Definition at line 337 of file Object.h.

+ Here is the caller graph for this function:

◆ GetMagicHitRedirectTarget()

Unit * WorldObject::GetMagicHitRedirectTarget ( Unit victim,
SpellInfo const *  spellInfo 
)
Todo:
handle this charge drop by proc in cast phase on explicit target

Definition at line 2595 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMap()

Map * WorldObject::GetMap ( ) const
inline

Definition at line 411 of file Object.h.

◆ GetMapHeight()

float WorldObject::GetMapHeight ( float  x,
float  y,
float  z,
bool  vmap = true,
float  distanceToSearch = 50.0f 
) const

Definition at line 3128 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMapWaterOrGroundLevel()

float WorldObject::GetMapWaterOrGroundLevel ( float  x,
float  y,
float  z,
float *  ground = nullptr 
) const

Definition at line 3113 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetMeleeAnimKitId()

virtual uint16 WorldObject::GetMeleeAnimKitId ( ) const
inlinevirtual

Reimplemented in Unit.

Definition at line 565 of file Object.h.

+ Here is the caller graph for this function:

◆ GetMovementAnimKitId()

virtual uint16 WorldObject::GetMovementAnimKitId ( ) const
inlinevirtual

Reimplemented in Unit.

Definition at line 564 of file Object.h.

+ Here is the caller graph for this function:

◆ GetName()

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

Definition at line 342 of file Object.h.

◆ GetNameForLocaleIdx()

std::string WorldObject::GetNameForLocaleIdx ( LocaleConstant  ) const
inlineoverridevirtual

Implements BaseEntity.

Definition at line 345 of file Object.h.

+ Here is the caller graph for this function:

◆ GetNearPoint()

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

Definition at line 2714 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNearPoint2D()

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

Definition at line 2685 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNearPosition()

Position WorldObject::GetNearPosition ( float  dist,
float  angle 
)

Definition at line 2755 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetNotifyFlags()

uint16 WorldObject::GetNotifyFlags ( ) const
inline

Definition at line 521 of file Object.h.

◆ GetOrCreateSmoothPhasing()

SmoothPhasing * WorldObject::GetOrCreateSmoothPhasing ( )

Definition at line 849 of file Object.cpp.

+ Here is the caller graph for this function:

◆ GetOwner()

Unit * WorldObject::GetOwner ( ) const

Definition at line 1598 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetOwnerGUID()

virtual ObjectGuid WorldObject::GetOwnerGUID ( ) const
pure virtual

Implemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, SceneObject, and Unit.

+ Here is the caller graph for this function:

◆ GetPhaseShift() [1/2]

PhaseShift & WorldObject::GetPhaseShift ( )
inline

Definition at line 310 of file Object.h.

+ Here is the caller graph for this function:

◆ GetPhaseShift() [2/2]

PhaseShift const & WorldObject::GetPhaseShift ( ) const
inline

Definition at line 311 of file Object.h.

◆ GetPlayerListInGrid()

template<typename Container >
template TC_GAME_API void WorldObject::GetPlayerListInGrid ( Container &  playerContainer,
float  maxSearchRange,
bool  alive = true 
) const

Definition at line 2678 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetPrivateObjectOwner()

ObjectGuid WorldObject::GetPrivateObjectOwner ( ) const
inline

Definition at line 569 of file Object.h.

+ Here is the caller graph for this function:

◆ GetRandomNearPosition()

Position WorldObject::GetRandomNearPosition ( float  radius)

Definition at line 2769 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetRandomPoint()

Position WorldObject::GetRandomPoint ( Position const &  srcPos,
float  distance,
float  minDistance = 0.0f 
) const

Definition at line 680 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetReactionTo()

ReputationRank WorldObject::GetReactionTo ( WorldObject const *  target) const

Definition at line 2028 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetScenario()

Scenario * WorldObject::GetScenario ( ) const

Definition at line 1389 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSightRange()

float WorldObject::GetSightRange ( WorldObject const *  target = nullptr) const

Definition at line 797 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSmoothPhasing() [1/2]

SmoothPhasing * WorldObject::GetSmoothPhasing ( )
inline

Definition at line 575 of file Object.h.

+ Here is the caller graph for this function:

◆ GetSmoothPhasing() [2/2]

SmoothPhasing const * WorldObject::GetSmoothPhasing ( ) const
inline

Definition at line 576 of file Object.h.

◆ GetSpellMinMaxRangeForTarget()

SpellRange WorldObject::GetSpellMinMaxRangeForTarget ( Unit const *  target,
SpellInfo const *  spellInfo 
) const

Definition at line 1665 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetSpellModOwner()

Player * WorldObject::GetSpellModOwner ( ) const

Definition at line 1641 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetStationaryPosition()

virtual Position const & WorldObject::GetStationaryPosition ( ) const
inlinevirtual

Reimplemented in AreaTrigger, Conversation, GameObject, and SceneObject.

Definition at line 550 of file Object.h.

+ Here is the caller graph for this function:

◆ GetSuppressedPhaseShift() [1/2]

PhaseShift & WorldObject::GetSuppressedPhaseShift ( )
inline

Definition at line 312 of file Object.h.

+ Here is the caller graph for this function:

◆ GetSuppressedPhaseShift() [2/2]

PhaseShift const & WorldObject::GetSuppressedPhaseShift ( ) const
inline

Definition at line 313 of file Object.h.

◆ GetTransGUID()

ObjectGuid WorldObject::GetTransGUID ( ) const
virtual

Reimplemented in Unit.

Definition at line 3093 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetTransOffset()

Position const & WorldObject::GetTransOffset ( ) const
inline

Definition at line 542 of file Object.h.

◆ GetTransOffsetO()

float WorldObject::GetTransOffsetO ( ) const
inline

Definition at line 541 of file Object.h.

+ Here is the caller graph for this function:

◆ GetTransOffsetX()

float WorldObject::GetTransOffsetX ( ) const
inline

Definition at line 538 of file Object.h.

+ Here is the caller graph for this function:

◆ GetTransOffsetY()

float WorldObject::GetTransOffsetY ( ) const
inline

Definition at line 539 of file Object.h.

+ Here is the caller graph for this function:

◆ GetTransOffsetZ()

float WorldObject::GetTransOffsetZ ( ) const
inline

Definition at line 540 of file Object.h.

+ Here is the caller graph for this function:

◆ GetTransport()

TransportBase * WorldObject::GetTransport ( ) const
inline

Definition at line 537 of file Object.h.

+ Here is the caller graph for this function:

◆ GetTransSeat()

int8 WorldObject::GetTransSeat ( ) const
inline

Definition at line 544 of file Object.h.

+ Here is the caller graph for this function:

◆ GetTransTime()

uint32 WorldObject::GetTransTime ( ) const
inline

Definition at line 543 of file Object.h.

◆ GetVisibilityRange()

float WorldObject::GetVisibilityRange ( ) const

Definition at line 787 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetZoneAndAreaId()

void WorldObject::GetZoneAndAreaId ( uint32 zoneid,
uint32 areaid 
) const
inline

Definition at line 334 of file Object.h.

+ Here is the caller graph for this function:

◆ GetZoneId()

uint32 WorldObject::GetZoneId ( ) const
inline

Definition at line 332 of file Object.h.

+ Here is the caller graph for this function:

◆ GetZoneScript()

ZoneScript * WorldObject::GetZoneScript ( ) const
inline

Definition at line 417 of file Object.h.

+ Here is the caller graph for this function:

◆ Heartbeat()

virtual void WorldObject::Heartbeat ( )
inlineprotectedvirtual

Reimplemented in Creature, Player, and Unit.

Definition at line 611 of file Object.h.

+ Here is the caller graph for this function:

◆ InSamePhase() [1/3]

bool WorldObject::InSamePhase ( PhaseShift const &  phaseShift) const
inline

Definition at line 314 of file Object.h.

+ Here is the caller graph for this function:

◆ InSamePhase() [2/3]

static bool WorldObject::InSamePhase ( WorldObject const *  a,
WorldObject const *  b 
)
inlinestatic

Definition at line 322 of file Object.h.

+ Here is the call graph for this function:

◆ InSamePhase() [3/3]

bool WorldObject::InSamePhase ( WorldObject const *  obj) const
inline

Definition at line 318 of file Object.h.

+ Here is the call graph for this function:

◆ isActiveObject()

bool WorldObject::isActiveObject ( ) const
inline

Definition at line 524 of file Object.h.

+ Here is the caller graph for this function:

◆ IsAlwaysDetectableFor()

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

Reimplemented in Player, and Unit.

Definition at line 609 of file Object.h.

+ Here is the caller graph for this function:

◆ IsAlwaysStoredInWorldObjectGridContainer()

bool WorldObject::IsAlwaysStoredInWorldObjectGridContainer ( ) const
inline

Definition at line 531 of file Object.h.

+ Here is the caller graph for this function:

◆ IsAlwaysVisibleFor()

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

Reimplemented in GameObject, and Unit.

Definition at line 606 of file Object.h.

+ Here is the caller graph for this function:

◆ IsFarVisible()

bool WorldObject::IsFarVisible ( ) const
inline

Definition at line 526 of file Object.h.

+ Here is the caller graph for this function:

◆ IsFriendlyTo()

bool WorldObject::IsFriendlyTo ( WorldObject const *  target) const

Definition at line 2186 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsHostileTo()

bool WorldObject::IsHostileTo ( WorldObject const *  target) const

Definition at line 2181 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsHostileToPlayers()

bool WorldObject::IsHostileToPlayers ( ) const

Definition at line 2191 of file Object.cpp.

+ Here is the call graph for this function:

◆ isInBack()

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

Definition at line 675 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInBetween() [1/2]

bool WorldObject::IsInBetween ( Position const &  pos1,
Position const &  pos2,
float  size = 0 
) const

Definition at line 653 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInBetween() [2/2]

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

Definition at line 375 of file Object.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isInFront()

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

Definition at line 670 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInMap()

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

Definition at line 469 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInRange()

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

Definition at line 592 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInRange2d()

bool WorldObject::IsInRange2d ( Position const *  pos,
float  minRange,
float  maxRange 
) const

Definition at line 617 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInRange3d()

bool WorldObject::IsInRange3d ( Position const *  pos,
float  minRange,
float  maxRange 
) const

Definition at line 635 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsInvisibleDueToDespawn()

virtual bool WorldObject::IsInvisibleDueToDespawn ( WorldObject const *  seer) const
inlineprotectedvirtual

Reimplemented in Creature, and GameObject.

Definition at line 607 of file Object.h.

+ Here is the caller graph for this function:

◆ IsInWorldPvpZone()

bool WorldObject::IsInWorldPvpZone ( ) const

Definition at line 381 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ isNeedNotify()

bool WorldObject::isNeedNotify ( uint16  f) const
inline

Definition at line 520 of file Object.h.

+ Here is the caller graph for this function:

◆ IsNeutralToAll()

bool WorldObject::IsNeutralToAll ( ) const

Definition at line 2204 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsNeverVisibleFor()

virtual bool WorldObject::IsNeverVisibleFor ( WorldObject const *  seer,
bool  allowServersideObjects = false 
) const
inlineprotectedvirtual

Reimplemented in AreaTrigger, GameObject, and Player.

Definition at line 605 of file Object.h.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsOutdoors()

bool WorldObject::IsOutdoors ( ) const
inline

Definition at line 336 of file Object.h.

+ Here is the caller graph for this function:

◆ IsPrivateObject()

bool WorldObject::IsPrivateObject ( ) const
inline

Definition at line 568 of file Object.h.

+ Here is the caller graph for this function:

◆ IsSelfOrInSameMap()

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

Definition at line 462 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsStoredInWorldObjectGridContainer()

bool WorldObject::IsStoredInWorldObjectGridContainer ( ) const

Definition at line 265 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsValidAssistTarget()

bool WorldObject::IsValidAssistTarget ( WorldObject const *  target,
SpellInfo const *  bySpell = nullptr 
) const

Definition at line 2482 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsValidAttackTarget()

bool WorldObject::IsValidAttackTarget ( WorldObject const *  target,
SpellInfo const *  bySpell = nullptr 
) const

Definition at line 2324 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsVisibilityOverridden()

bool WorldObject::IsVisibilityOverridden ( ) const
inline

Definition at line 528 of file Object.h.

+ Here is the caller graph for this function:

◆ IsWithinDist()

bool WorldObject::IsWithinDist ( WorldObject const *  obj,
float  dist2compare,
bool  is3D = true,
bool  incOwnRadius = true,
bool  incTargetRadius = true 
) const

Definition at line 496 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsWithinDist2d() [1/2]

bool WorldObject::IsWithinDist2d ( float  x,
float  y,
float  dist 
) const

Definition at line 486 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsWithinDist2d() [2/2]

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

Definition at line 491 of file Object.cpp.

+ Here is the call graph for this function:

◆ IsWithinDist3d() [1/2]

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

Definition at line 476 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsWithinDist3d() [2/2]

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

Definition at line 481 of file Object.cpp.

+ Here is the call graph for this function:

◆ IsWithinDistInMap()

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

Definition at line 501 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsWithinLOS()

bool WorldObject::IsWithinLOS ( float  x,
float  y,
float  z,
LineOfSightChecks  checks = LINEOFSIGHT_ALL_CHECKS,
VMAP::ModelIgnoreFlags  ignoreFlags = VMAP::ModelIgnoreFlags::Nothing 
) const

Definition at line 515 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ IsWithinLOSInMap()

bool WorldObject::IsWithinLOSInMap ( WorldObject const *  obj,
LineOfSightChecks  checks = LINEOFSIGHT_ALL_CHECKS,
VMAP::ModelIgnoreFlags  ignoreFlags = VMAP::ModelIgnoreFlags::Nothing 
) const

Definition at line 535 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MagicSpellHitResult()

SpellMissInfo WorldObject::MagicSpellHitResult ( Unit victim,
SpellInfo const *  spellInfo 
) const

Definition at line 1846 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MeleeSpellHitResult()

SpellMissInfo WorldObject::MeleeSpellHitResult ( Unit victim,
SpellInfo const *  spellInfo 
) const
virtual

Reimplemented in Unit.

Definition at line 1841 of file Object.cpp.

+ Here is the caller graph for this function:

◆ MeleeSpellMissChance()

float WorldObject::MeleeSpellMissChance ( Unit const *  victim,
WeaponAttackType  attType,
SpellInfo const *  spellInfo 
) const
virtual

Reimplemented in Unit.

Definition at line 1836 of file Object.cpp.

◆ ModSpellCastTime()

void WorldObject::ModSpellCastTime ( SpellInfo const *  spellInfo,
int32 castTime,
Spell spell = nullptr 
) const

Definition at line 1785 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ModSpellDuration()

int32 WorldObject::ModSpellDuration ( SpellInfo const *  spellInfo,
WorldObject const *  target,
int32  duration,
bool  positive,
uint32  effectMask 
) const

Definition at line 1720 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ModSpellDurationTime()

void WorldObject::ModSpellDurationTime ( SpellInfo const *  spellInfo,
int32 durationTime,
Spell spell = nullptr 
) const

Definition at line 1811 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MovePosition()

void WorldObject::MovePosition ( Position pos,
float  dist,
float  angle,
float  maxHeightChange = 6.0f 
) const

Definition at line 2782 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ MovePositionToFirstCollision()

void WorldObject::MovePositionToFirstCollision ( Position pos,
float  dist,
float  angle 
) const

Definition at line 2828 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlayDirectMusic()

void WorldObject::PlayDirectMusic ( uint32  musicId,
Player const *  target = nullptr 
) const

Definition at line 2946 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlayDirectSound()

void WorldObject::PlayDirectSound ( uint32  soundId,
Player const *  target = nullptr,
uint32  broadcastTextId = 0 
) const

Definition at line 2938 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlayDistanceSound()

void WorldObject::PlayDistanceSound ( uint32  soundId,
Player const *  target = nullptr 
) const

Definition at line 2922 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ PlayObjectSound()

void WorldObject::PlayObjectSound ( int32  soundKitId,
ObjectGuid  targetObject,
Player const *  target = nullptr,
int32  broadcastTextId = 0 
) const

Definition at line 2954 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ProcessPositionDataChanged()

void WorldObject::ProcessPositionDataChanged ( PositionFullTerrainStatus const &  data)
protectedvirtual

Reimplemented in Player, and Unit.

Definition at line 353 of file Object.cpp.

+ Here is the caller graph for this function:

◆ RemoveFromObjectUpdate()

void WorldObject::RemoveFromObjectUpdate ( )
overridevirtual

Implements BaseEntity.

Definition at line 3088 of file Object.cpp.

+ Here is the call graph for this function:

◆ RemoveFromWorld()

void WorldObject::RemoveFromWorld ( )
overridevirtual

Reimplemented from Object.

Definition at line 371 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ ResetAllNotifies()

void WorldObject::ResetAllNotifies ( )
inline

Definition at line 522 of file Object.h.

◆ ResetMap()

void WorldObject::ResetMap ( )
virtual

Reimplemented in Player.

Definition at line 1162 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SelectNearestPlayer()

Player * WorldObject::SelectNearestPlayer ( float  range) const

Definition at line 1579 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendCancelOrphanSpellVisual()

void WorldObject::SendCancelOrphanSpellVisual ( uint32  id)

Definition at line 2316 of file Object.cpp.

+ Here is the call graph for this function:

◆ SendCombatLogMessage()

void WorldObject::SendCombatLogMessage ( WorldPackets::CombatLog::CombatLogServerPacket combatLog) const

Definition at line 1133 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendMessageToSet() [1/2]

void WorldObject::SendMessageToSet ( WorldPacket const *  data,
bool  self 
) const
virtual

Reimplemented in Player.

Definition at line 1094 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendMessageToSet() [2/2]

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

Reimplemented in Player.

Definition at line 1107 of file Object.cpp.

+ Here is the call graph for this function:

◆ SendMessageToSetInRange()

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

Reimplemented in Player.

Definition at line 1100 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPlayOrphanSpellVisual() [1/4]

void WorldObject::SendPlayOrphanSpellVisual ( ObjectGuid const &  target,
uint32  spellVisualId,
float  travelSpeed,
bool  speedAsTime = false,
bool  withSourceOrientation = false 
)

Definition at line 2306 of file Object.cpp.

+ Here is the call graph for this function:

◆ SendPlayOrphanSpellVisual() [2/4]

void WorldObject::SendPlayOrphanSpellVisual ( Position const &  sourceLocation,
ObjectGuid const &  target,
uint32  spellVisualId,
float  travelSpeed,
bool  speedAsTime = false,
bool  withSourceOrientation = false 
)

Definition at line 2256 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SendPlayOrphanSpellVisual() [3/4]

void WorldObject::SendPlayOrphanSpellVisual ( Position const &  sourceLocation,
Position const &  targetLocation,
uint32  spellVisualId,
float  travelSpeed,
bool  speedAsTime = false,
bool  withSourceOrientation = false 
)

Definition at line 2281 of file Object.cpp.

+ Here is the call graph for this function:

◆ SendPlayOrphanSpellVisual() [4/4]

void WorldObject::SendPlayOrphanSpellVisual ( Position const &  targetLocation,
uint32  spellVisualId,
float  travelSpeed,
bool  speedAsTime = false,
bool  withSourceOrientation = false 
)

Definition at line 2311 of file Object.cpp.

+ Here is the call graph for this function:

◆ SendSpellMiss()

void WorldObject::SendSpellMiss ( Unit target,
uint32  spellID,
SpellMissInfo  missInfo 
)

Definition at line 1991 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setActive()

void WorldObject::setActive ( bool  isActiveObject)

Definition at line 276 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetDBPhase()

void WorldObject::SetDBPhase ( int32  p)
inline

Definition at line 330 of file Object.h.

+ Here is the caller graph for this function:

◆ SetFaction()

virtual void WorldObject::SetFaction ( uint32  )
inlinevirtual

Reimplemented in Corpse, GameObject, and Unit.

Definition at line 466 of file Object.h.

◆ SetFarVisible()

void WorldObject::SetFarVisible ( bool  on)

Definition at line 327 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetIsStoredInWorldObjectGridContainer()

void WorldObject::SetIsStoredInWorldObjectGridContainer ( bool  apply)

Definition at line 257 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetLocationInstanceId()

void WorldObject::SetLocationInstanceId ( uint32  _instanceId)
inlineprotected

Definition at line 601 of file Object.h.

+ Here is the caller graph for this function:

◆ SetLocationMapId()

void WorldObject::SetLocationMapId ( uint32  _mapId)
inlineprotected

Definition at line 600 of file Object.h.

+ Here is the caller graph for this function:

◆ SetMap()

void WorldObject::SetMap ( Map map)
virtual

Reimplemented in Player.

Definition at line 1144 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetName()

void WorldObject::SetName ( std::string  newname)
inline

Definition at line 343 of file Object.h.

+ Here is the caller graph for this function:

◆ SetPrivateObjectOwner()

void WorldObject::SetPrivateObjectOwner ( ObjectGuid const &  owner)
inline

Definition at line 570 of file Object.h.

+ Here is the caller graph for this function:

◆ SetTransport()

void WorldObject::SetTransport ( TransportBase t)

Definition at line 3100 of file Object.cpp.

+ Here is the caller graph for this function:

◆ SetVisibilityDistanceOverride()

void WorldObject::SetVisibilityDistanceOverride ( VisibilityDistanceType  type)

Definition at line 299 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SetZoneScript()

void WorldObject::SetZoneScript ( )

Definition at line 1384 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SpellHitResult()

SpellMissInfo WorldObject::SpellHitResult ( Unit victim,
SpellInfo const *  spellInfo,
bool  canReflect,
bool  canImmune 
) const
Todo:
client not show miss log for this spells - so need find info for this in dbc and use it!

Definition at line 1942 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ StopDistanceSound()

void WorldObject::StopDistanceSound ( Player const *  target = nullptr) const

Definition at line 2930 of file Object.cpp.

+ Here is the call graph for this function:

◆ SummonCreature() [1/2]

TempSummon * WorldObject::SummonCreature ( uint32  entry,
float  x,
float  y,
float  z,
float  o = 0,
TempSummonType  despawnType = TEMPSUMMON_MANUAL_DESPAWN,
Milliseconds  despawnTime = 0s,
ObjectGuid  privateObjectOwner = ObjectGuid::Empty 
)

Definition at line 1412 of file Object.cpp.

+ Here is the call graph for this function:

◆ SummonCreature() [2/2]

TempSummon * WorldObject::SummonCreature ( uint32  entry,
Position const &  pos,
TempSummonType  despawnType = TEMPSUMMON_MANUAL_DESPAWN,
Milliseconds  despawnTime = 0s,
uint32  vehId = 0,
uint32  spellId = 0,
ObjectGuid  privateObjectOwner = ObjectGuid::Empty 
)

Definition at line 1398 of file Object.cpp.

+ Here is the call graph for this function:

◆ SummonCreatureGroup()

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

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 1507 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SummonGameObject() [1/2]

GameObject * WorldObject::SummonGameObject ( uint32  entry,
float  x,
float  y,
float  z,
float  ang,
QuaternionData const &  rot,
Seconds  respawnTime,
GOSummonType  summonType = GO_SUMMON_TIMED_OR_CORPSE_DESPAWN 
)

Definition at line 1470 of file Object.cpp.

+ Here is the call graph for this function:

◆ SummonGameObject() [2/2]

GameObject * WorldObject::SummonGameObject ( uint32  entry,
Position const &  pos,
QuaternionData const &  rot,
Seconds  respawnTime,
GOSummonType  summonType = GO_SUMMON_TIMED_OR_CORPSE_DESPAWN 
)

Definition at line 1441 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SummonPersonalClone()

TempSummon * WorldObject::SummonPersonalClone ( Position const &  pos,
TempSummonType  despawnType = TEMPSUMMON_MANUAL_DESPAWN,
Milliseconds  despawnTime = 0s,
uint32  vehId = 0,
uint32  spellId = 0,
Player privateObjectOwner = nullptr 
)

Definition at line 1421 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ SummonTrigger()

Creature * WorldObject::SummonTrigger ( float  x,
float  y,
float  z,
float  ang,
Milliseconds  despawnTime,
CreatureAI *(*)(Creature *)  GetAI = nullptr 
)

Definition at line 1482 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ Update()

void WorldObject::Update ( uint32  diff)
virtual

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

Definition at line 245 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateAllowedPositionZ()

void WorldObject::UpdateAllowedPositionZ ( float  x,
float  y,
float &  z,
float *  groundZ = nullptr 
) const

Definition at line 711 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateGroundPositionZ()

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

Definition at line 700 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateObjectVisibility()

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

Reimplemented in Player, and Unit.

Definition at line 3047 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ UpdateObjectVisibilityOnCreate()

virtual void WorldObject::UpdateObjectVisibilityOnCreate ( )
inlinevirtual

Reimplemented in TempSummon.

Definition at line 510 of file Object.h.

◆ UpdateObjectVisibilityOnDestroy()

virtual void WorldObject::UpdateObjectVisibilityOnDestroy ( )
inlinevirtual

Reimplemented in TempSummon.

Definition at line 511 of file Object.h.

+ Here is the caller graph for this function:

◆ UpdatePositionData()

void WorldObject::UpdatePositionData ( )

Definition at line 346 of file Object.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _dbPhase

int32 WorldObject::_dbPhase
private

Definition at line 618 of file Object.h.

◆ _heartbeatTimer

Milliseconds WorldObject::_heartbeatTimer
private

Definition at line 626 of file Object.h.

◆ _phaseShift

PhaseShift WorldObject::_phaseShift
private

Definition at line 616 of file Object.h.

◆ _privateObjectOwner

ObjectGuid WorldObject::_privateObjectOwner
private

Definition at line 622 of file Object.h.

◆ _smoothPhasing

std::unique_ptr<SmoothPhasing> WorldObject::_smoothPhasing
private

Definition at line 624 of file Object.h.

◆ _suppressedPhaseShift

PhaseShift WorldObject::_suppressedPhaseShift
private

Definition at line 617 of file Object.h.

◆ LastUsedScriptID

uint32 WorldObject::LastUsedScriptID

Definition at line 534 of file Object.h.

◆ m_areaId

uint32 WorldObject::m_areaId
protected

Definition at line 591 of file Object.h.

◆ m_currentWmo

Optional<WmoLocation> WorldObject::m_currentWmo
protected

Definition at line 595 of file Object.h.

◆ m_currMap

Map* WorldObject::m_currMap
private

Definition at line 613 of file Object.h.

◆ m_Events

EventProcessor WorldObject::m_Events

Definition at line 561 of file Object.h.

◆ m_InstanceId

uint32 WorldObject::m_InstanceId
private

Definition at line 615 of file Object.h.

◆ m_invisibility

Definition at line 403 of file Object.h.

◆ m_invisibilityDetect

Definition at line 404 of file Object.h.

◆ m_isActive

bool WorldObject::m_isActive
protected

Definition at line 580 of file Object.h.

◆ m_isFarVisible

bool WorldObject::m_isFarVisible
protected

Definition at line 581 of file Object.h.

◆ m_isStoredInWorldObjectGridContainer

bool const WorldObject::m_isStoredInWorldObjectGridContainer
protected

Definition at line 583 of file Object.h.

◆ m_liquidStatus

ZLiquidStatus WorldObject::m_liquidStatus
protected

Definition at line 594 of file Object.h.

◆ m_movementInfo

MovementInfo WorldObject::m_movementInfo

Definition at line 548 of file Object.h.

◆ m_name

std::string WorldObject::m_name
protected

Definition at line 579 of file Object.h.

◆ m_notifyflags

uint16 WorldObject::m_notifyflags
private

Definition at line 620 of file Object.h.

◆ m_outdoors

bool WorldObject::m_outdoors
protected

Definition at line 593 of file Object.h.

◆ m_serverSideVisibility

Definition at line 406 of file Object.h.

◆ m_serverSideVisibilityDetect

Definition at line 407 of file Object.h.

◆ m_staticFloorZ

float WorldObject::m_staticFloorZ
protected

Definition at line 592 of file Object.h.

◆ m_stealth

Definition at line 400 of file Object.h.

◆ m_stealthDetect

Definition at line 401 of file Object.h.

◆ m_transport

TransportBase* WorldObject::m_transport
protected

Definition at line 587 of file Object.h.

◆ m_visibilityDistanceOverride

Optional<float> WorldObject::m_visibilityDistanceOverride
protected

Definition at line 582 of file Object.h.

◆ m_zoneId

uint32 WorldObject::m_zoneId
protected

Definition at line 590 of file Object.h.

◆ m_zoneScript

ZoneScript* WorldObject::m_zoneScript
protected

Definition at line 584 of file Object.h.


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