TrinityCore
Loading...
Searching...
No Matches
GameObject Class Reference

#include <GameObject.h>

+ Inheritance diagram for GameObject:

Classes

struct  PerPlayerState
 
struct  ValuesUpdateForPlayerWithMaskSender
 

Public Member Functions

 GameObject ()
 
 ~GameObject ()
 
void BuildValuesUpdateForPlayerWithMask (UpdateData *data, UF::ObjectData::Mask const &requestedObjectMask, UF::GameObjectData::Mask const &requestedGameObjectMask, Player const *target, bool ignoreNestedChangesMask) const
 
void AddToWorld () override
 
void RemoveFromWorld () override
 
void CleanupsBeforeDelete (bool finalCleanup=true) override
 
void Update (uint32 diff) override
 
GameObjectTemplate const * GetGOInfo () const
 
GameObjectTemplateAddon const * GetTemplateAddon () const
 
GameObjectOverride const * GetGameObjectOverride () const
 
GameObjectData const * GetGameObjectData () const
 
GameObjectValue const * GetGOValue () const
 
bool IsTransport () const
 
bool IsDestructibleBuilding () const
 
ObjectGuid::LowType GetSpawnId () const
 
void SetLocalRotationAngles (float z_rot, float y_rot, float x_rot)
 
void SetLocalRotation (float qx, float qy, float qz, float qw)
 
void SetParentRotation (QuaternionData const &rotation)
 
QuaternionData const & GetLocalRotation () const
 
int64 GetPackedLocalRotation () const
 
QuaternionData GetWorldRotation () const
 
std::string GetNameForLocaleIdx (LocaleConstant locale) const override
 
bool HasLabel (int32 gameobjectLabel) const
 
std::span< int32 const > GetLabels () const
 
void SaveToDB ()
 
void SaveToDB (uint32 mapid, std::vector< Difficulty > const &spawnDifficulties)
 
bool LoadFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap, bool=true)
 
ObjectGuid GetCreatorGUID () const override
 
void SetOwnerGUID (ObjectGuid owner)
 
ObjectGuid GetOwnerGUID () const override
 
void SetSpellId (uint32 id)
 
uint32 GetSpellId () const
 
time_t GetRespawnTime () const
 
time_t GetRespawnTimeEx () const
 
void SetRespawnTime (int32 respawn)
 
void Respawn ()
 
bool isSpawned () const
 
bool isSpawnedByDefault () const
 
void SetSpawnedByDefault (bool b)
 
uint32 GetRespawnDelay () const
 
void Refresh ()
 
void DespawnOrUnsummon (Milliseconds delay=0ms, Seconds forceRespawnTime=0s)
 
void DespawnForPlayer (Player *seer, Seconds respawnTime)
 
void Delete ()
 
void SendGameObjectDespawn ()
 
LootGetFishLoot (Player *lootOwner)
 
LootGetFishLootJunk (Player *lootOwner)
 
bool HasFlag (GameObjectFlags flags) const
 
void SetFlag (GameObjectFlags flags)
 
void RemoveFlag (GameObjectFlags flags)
 
void ReplaceAllFlags (GameObjectFlags flags)
 
void SetLevel (uint32 level)
 
GameobjectTypes GetGoType () const
 
void SetGoType (GameobjectTypes type)
 
GOState GetGoState () const
 
void SetGoState (GOState state)
 
GOState GetGoStateFor (ObjectGuid const &viewer) const
 
void SetGoStateFor (GOState state, Player const *viewer)
 
uint32 GetGoArtKit () const
 
void SetGoArtKit (uint32 artkit)
 
uint8 GetGoAnimProgress () const
 
void SetGoAnimProgress (uint8 animprogress)
 
std::span< uint32 const > GetPauseTimes () const
 
Optional< float > GetPathProgressForClient () const
 
void SetPathProgressForClient (float progress)
 
void EnableCollision (bool enable)
 
void Use (Unit *user, bool ignoreCastInProgress=false)
 
LootState getLootState () const
 
void SetLootState (LootState s, Unit *unit=nullptr)
 
uint16 GetLootMode () const
 
bool HasLootMode (uint16 lootMode) const
 
void SetLootMode (uint16 lootMode)
 
void AddLootMode (uint16 lootMode)
 
void RemoveLootMode (uint16 lootMode)
 
void ResetLootMode ()
 
void ClearLoot ()
 
bool IsFullyLooted () const
 
void OnLootRelease (Player *looter)
 
void AddToSkillupList (ObjectGuid const &PlayerGuidLow)
 
bool IsInSkillupList (ObjectGuid const &playerGuid) const
 
void ClearSkillupList ()
 
void AddUniqueUse (Player *player)
 
void AddUse ()
 
uint32 GetUseCount () const
 
uint32 GetUniqueUseCount () const
 
void SaveRespawnTime (uint32 forceDelay=0)
 
GuidUnorderedSet const & GetTapList () const
 
void SetTapList (GuidUnorderedSet tapList)
 
bool IsLootAllowedFor (Player const *player) const
 
bool HasLootRecipient () const
 
LootGetLootForPlayer (Player const *) const override
 
GameObjectGetLinkedTrap ()
 
void SetLinkedTrap (GameObject *linkedTrap)
 
bool hasQuest (uint32 quest_id) const override
 
bool hasInvolvedQuest (uint32 quest_id) const override
 
bool HasConditionalInteraction () const
 
bool CanActivateForPlayer (Player const *target) const
 
bool ActivateToQuest (Player const *target) const
 
void UseDoorOrButton (uint32 time_to_restore=0, bool alternative=false, Unit *user=nullptr)
 
void ResetDoorOrButton ()
 
void ActivateObject (GameObjectActions action, int32 param, WorldObject *spellCaster=nullptr, uint32 spellId=0, int32 effectIndex=-1)
 
void TriggeringLinkedGameObject (uint32 trapEntry, Unit *target)
 
bool IsNeverVisibleFor (WorldObject const *seer, bool allowServersideObjects=false) const override
 
bool IsAlwaysVisibleFor (WorldObject const *seer) const override
 
bool IsInvisibleDueToDespawn (WorldObject const *seer) const override
 
uint8 GetLevelForTarget (WorldObject const *target) const override
 
GameObjectLookupFishingHoleAround (float range)
 
void SendCustomAnim (uint32 anim)
 
bool IsInRange (float x, float y, float z, float radius) const
 
void ModifyHealth (int32 change, WorldObject *attackerOrHealer=nullptr, uint32 spellId=0)
 
void SetDestructibleState (GameObjectDestructibleState state, WorldObject *attackerOrHealer=nullptr, bool setHealth=false)
 
GameObjectDestructibleState GetDestructibleState () const
 
void SetRespawnCompatibilityMode (bool mode=true)
 
bool GetRespawnCompatibilityMode ()
 
std::string const & GetAIName () const
 
uint32 GetScriptId () const
 
GameObjectAIAI () const
 
void InheritStringIds (GameObject const *parent)
 
bool HasStringId (std::string_view id) const
 
void SetScriptStringId (std::string id)
 
std::string_view GetStringId (StringIdType type) const
 
SpawnTrackingStateData const * GetSpawnTrackingStateDataForPlayer (Player const *player) const override
 
void SetDisplayId (uint32 displayid)
 
uint32 GetDisplayId () const
 
uint8 GetNameSetId () const
 
uint32 GetFaction () const override
 
void SetFaction (uint32 faction) override
 
Position GetRespawnPosition () const
 
TransportBaseToTransportBase ()
 
TransportBase const * ToTransportBase () const
 
TransportToTransport ()
 
Transport const * ToTransport () const
 
Position const & GetStationaryPosition () const override
 
void RelocateStationaryPosition (float x, float y, float z, float o)
 
void RelocateStationaryPosition (Position const &pos)
 
void AfterRelocation ()
 
float GetInteractionDistance () const
 
void UpdateModelPosition ()
 
bool IsAtInteractDistance (Position const &pos, float radius) const
 
bool IsAtInteractDistance (Player const *player, SpellInfo const *spell=nullptr) const
 
bool IsWithinDistInMap (Player const *player) const
 
SpellInfo const * GetSpellForLock (Player const *player) const
 
uint16 GetAIAnimKitId () const override
 
void SetAnimKitId (uint16 animKitId, bool oneshot)
 
uint32 GetWorldEffectID () const
 
void SetWorldEffectID (uint32 worldEffectID)
 
Vignettes::VignetteData const * GetVignette () const
 
void SetVignette (uint32 vignetteId)
 
void SetSpellVisualId (int32 spellVisualId, ObjectGuid activatorGuid=ObjectGuid::Empty)
 
void AssaultCapturePoint (Player *player)
 
void UpdateCapturePoint ()
 
bool CanInteractWithCapturePoint (Player const *target) const
 
FlagState GetFlagState () const
 
ObjectGuid const & GetFlagCarrierGUID () const
 
time_t GetFlagTakenFromBaseTime () const
 
GuidUnorderedSet const * GetInsidePlayers () const
 
bool MeetsInteractCondition (Player const *user) const
 
void AIM_Destroy ()
 
bool AIM_Initialize ()
 
std::string GetDebugInfo () const override
 
void UpdateDynamicFlagsForNearbyPlayers ()
 
void HandleCustomTypeCommand (GameObjectTypeBase::CustomCommand const &command) const
 
TeamId GetControllingTeam () const
 
bool IsWithinDistInMap (WorldObject const *obj, float dist2compare, bool is3D=true, bool incOwnRadius=true, bool incTargetRadius=true) const
 
- Public Member Functions inherited from WorldObject
virtual ~WorldObject ()
 
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 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
 
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 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)
 
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)
 
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 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
 
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 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
 
- Public Member Functions inherited from GridObject< GameObject >
virtual ~GridObject ()
 
bool IsInGrid () const
 
void AddToGrid (GridRefManager< GameObject > &m)
 
void RemoveFromGrid ()
 

Static Public Member Functions

static GameObjectCreateGameObject (uint32 entry, Map *map, Position const &pos, QuaternionData const &rotation, uint32 animProgress, GOState goState, uint32 artKit=0)
 
static GameObjectCreateGameObjectFromDB (ObjectGuid::LowType spawnId, Map *map, bool addToMap=true)
 
static bool DeleteFromDB (ObjectGuid::LowType spawnId)
 
static void SetGoArtKit (uint32 artkit, GameObject *go, ObjectGuid::LowType lowguid=UI64LIT(0))
 
- Static Public Member Functions inherited from WorldObject
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

std::unique_ptr< Lootm_loot
 
std::unordered_map< ObjectGuid, std::unique_ptr< Loot > > m_personalLoot
 
std::unique_ptr< GameObjectModelm_model
 
UF::UpdateField< UF::GameObjectData, int32(WowCS::EntityFragment::CGObject), TYPEID_GAMEOBJECTm_gameObjectData
 
- Public Attributes inherited from WorldObject
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 Types

typedef std::map< uint32, ObjectGuidChairSlotAndUser
 

Protected Member Functions

void BuildValuesCreate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void BuildValuesUpdate (UF::UpdateFieldFlag flags, ByteBuffer &data, Player const *target) const override
 
void ClearValuesChangesMask () override
 
void CreateModel ()
 
void UpdateModel ()
 
- Protected Member Functions inherited from WorldObject
 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 IsAlwaysDetectableFor (WorldObject const *seer) const
 
virtual void Heartbeat ()
 
- Protected Member Functions inherited from Object
 Object ()
 
void BuildEntityFragmentsForValuesUpdateForPlayerWithMask (ByteBuffer &data, EnumFlag< UF::UpdateFieldFlag > flags) const
 
- 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 Member Functions inherited from MapObject
 MapObject ()
 

Protected Attributes

uint32 m_spellId
 
time_t m_respawnTime
 
uint32 m_respawnDelayTime
 
uint32 m_despawnDelay
 
Seconds m_despawnRespawnTime
 
LootState m_lootState
 
ObjectGuid m_lootStateUnitGUID
 
bool m_spawnedByDefault
 
time_t m_restockTime
 
time_t m_cooldownTime
 
GOState m_prevGoState
 
GuidSet m_SkillupList
 
ObjectGuid m_ritualOwnerGUID
 
GuidSet m_unique_users
 
uint32 m_usetimes
 
ChairSlotAndUser ChairListSlots
 
ObjectGuid::LowType m_spawnId
 For new or temporary gameobjects is 0 for saved it is lowguid.
 
GameObjectTemplate const * m_goInfo
 
GameObjectTemplateAddon const * m_goTemplateAddon
 
GameObjectData const * m_goData
 
std::unique_ptr< GameObjectTypeBasem_goTypeImpl
 
GameObjectValue m_goValue
 
std::array< std::string const *, 3 > m_stringIds
 
Optional< std::string > m_scriptStringId
 
int64 m_packedRotation
 
QuaternionData m_localRotation
 
Position m_stationaryPosition
 
GuidUnorderedSet m_tapList
 
uint16 m_LootMode
 
ObjectGuid m_linkedTrap
 
- Protected Attributes inherited from WorldObject
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

bool Create (uint32 entry, Map *map, Position const &pos, QuaternionData const &rotation, uint32 animProgress, GOState goState, uint32 artKit, bool dynamic, ObjectGuid::LowType spawnid)
 
void RemoveFromOwner ()
 
void SwitchDoorOrButton (bool activate, bool alternative=false)
 
void UpdatePackedRotation ()
 
bool _IsWithinDist (WorldObject const *obj, float dist2compare, bool, bool, bool) const override
 Object distance/size - overridden from Object::_IsWithinDist. Needs to take in account proper GO size.
 
std::unordered_map< ObjectGuid, PerPlayerState > & GetOrCreatePerPlayerStates ()
 

Private Attributes

GameObjectAIm_AI
 
bool m_respawnCompatibilityMode
 
uint16 _animKitId
 
uint32 _worldEffectID
 
Optional< float > m_transportPathProgress
 
std::unique_ptr< Vignettes::VignetteDatam_vignette
 
std::unique_ptr< std::unordered_map< ObjectGuid, PerPlayerState > > m_perPlayerState
 

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 165 of file GameObject.h.

Member Typedef Documentation

◆ ChairSlotAndUser

typedef std::map<uint32, ObjectGuid> GameObject::ChairSlotAndUser
protected

Definition at line 483 of file GameObject.h.

Constructor & Destructor Documentation

◆ GameObject()

GameObject::GameObject ( )
explicit

Definition at line 838 of file GameObject.cpp.

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

◆ ~GameObject()

GameObject::~GameObject ( )

Definition at line 870 of file GameObject.cpp.

Member Function Documentation

◆ _IsWithinDist()

bool GameObject::_IsWithinDist ( WorldObject const *  obj,
float  dist2compare,
bool  ,
bool  ,
bool   
) const
inlineoverrideprivatevirtual

Object distance/size - overridden from Object::_IsWithinDist. Needs to take in account proper GO size.

Following check does check 3d distance

Reimplemented from WorldObject.

Definition at line 510 of file GameObject.h.

+ Here is the call graph for this function:

◆ ActivateObject()

void GameObject::ActivateObject ( GameObjectActions  action,
int32  param,
WorldObject spellCaster = nullptr,
uint32  spellId = 0,
int32  effectIndex = -1 
)

Definition at line 2398 of file GameObject.cpp.

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

◆ ActivateToQuest()

bool GameObject::ActivateToQuest ( Player const *  target) const

Definition at line 2286 of file GameObject.cpp.

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

◆ AddLootMode()

void GameObject::AddLootMode ( uint16  lootMode)
inline

Definition at line 309 of file GameObject.h.

◆ AddToSkillupList()

void GameObject::AddToSkillupList ( ObjectGuid const &  PlayerGuidLow)
inline

Definition at line 316 of file GameObject.h.

+ Here is the caller graph for this function:

◆ AddToWorld()

void GameObject::AddToWorld ( )
overridevirtual
  • Register the gameobject for guid lookup

Reimplemented from BaseEntity.

Definition at line 927 of file GameObject.cpp.

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

◆ AddUniqueUse()

void GameObject::AddUniqueUse ( Player player)

Definition at line 1745 of file GameObject.cpp.

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

◆ AddUse()

void GameObject::AddUse ( )
inline

Definition at line 324 of file GameObject.h.

+ Here is the caller graph for this function:

◆ AfterRelocation()

void GameObject::AfterRelocation ( )

Definition at line 4190 of file GameObject.cpp.

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

◆ AI()

GameObjectAI * GameObject::AI ( ) const
inline

Definition at line 384 of file GameObject.h.

+ Here is the caller graph for this function:

◆ AIM_Destroy()

void GameObject::AIM_Destroy ( )

Definition at line 875 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ AIM_Initialize()

bool GameObject::AIM_Initialize ( )

Definition at line 881 of file GameObject.cpp.

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

◆ AssaultCapturePoint()

void GameObject::AssaultCapturePoint ( Player player)

Definition at line 4306 of file GameObject.cpp.

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

◆ BuildValuesCreate()

void GameObject::BuildValuesCreate ( UF::UpdateFieldFlag  flags,
ByteBuffer data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 4091 of file GameObject.cpp.

◆ BuildValuesUpdate()

void GameObject::BuildValuesUpdate ( UF::UpdateFieldFlag  flags,
ByteBuffer data,
Player const *  target 
) const
overrideprotectedvirtual

Implements Object.

Definition at line 4097 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ BuildValuesUpdateForPlayerWithMask()

void GameObject::BuildValuesUpdateForPlayerWithMask ( UpdateData data,
UF::ObjectData::Mask const &  requestedObjectMask,
UF::GameObjectData::Mask const &  requestedGameObjectMask,
Player const *  target,
bool  ignoreNestedChangesMask 
) const

Definition at line 4108 of file GameObject.cpp.

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

◆ CanActivateForPlayer()

bool GameObject::CanActivateForPlayer ( Player const *  target) const

Definition at line 2275 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ CanInteractWithCapturePoint()

bool GameObject::CanInteractWithCapturePoint ( Player const *  target) const

Definition at line 4448 of file GameObject.cpp.

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

◆ CleanupsBeforeDelete()

void GameObject::CleanupsBeforeDelete ( bool  finalCleanup = true)
overridevirtual

Reimplemented from WorldObject.

Reimplemented in Transport.

Definition at line 899 of file GameObject.cpp.

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

◆ ClearLoot()

void GameObject::ClearLoot ( )

Definition at line 3860 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ ClearSkillupList()

void GameObject::ClearSkillupList ( )
inline

Definition at line 321 of file GameObject.h.

◆ ClearValuesChangesMask()

void GameObject::ClearValuesChangesMask ( )
overrideprotectedvirtual

Reimplemented from Object.

Definition at line 4147 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ Create()

bool GameObject::Create ( uint32  entry,
Map map,
Position const &  pos,
QuaternionData const &  rotation,
uint32  animProgress,
GOState  goState,
uint32  artKit,
bool  dynamic,
ObjectGuid::LowType  spawnid 
)
private

Definition at line 979 of file GameObject.cpp.

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

◆ CreateGameObject()

GameObject * GameObject::CreateGameObject ( uint32  entry,
Map map,
Position const &  pos,
QuaternionData const &  rotation,
uint32  animProgress,
GOState  goState,
uint32  artKit = 0 
)
static

Definition at line 1229 of file GameObject.cpp.

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

◆ CreateGameObjectFromDB()

GameObject * GameObject::CreateGameObjectFromDB ( ObjectGuid::LowType  spawnId,
Map map,
bool  addToMap = true 
)
static

Definition at line 1245 of file GameObject.cpp.

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

◆ CreateModel()

void GameObject::CreateModel ( )
protected

Definition at line 4568 of file GameObject.cpp.

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

◆ Delete()

void GameObject::Delete ( )

Definition at line 1780 of file GameObject.cpp.

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

◆ DeleteFromDB()

bool GameObject::DeleteFromDB ( ObjectGuid::LowType  spawnId)
static

Definition at line 2035 of file GameObject.cpp.

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

◆ DespawnForPlayer()

void GameObject::DespawnForPlayer ( Player seer,
Seconds  respawnTime 
)

Definition at line 1772 of file GameObject.cpp.

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

◆ DespawnOrUnsummon()

void GameObject::DespawnOrUnsummon ( Milliseconds  delay = 0ms,
Seconds  forceRespawnTime = 0s 
)

Definition at line 1751 of file GameObject.cpp.

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

◆ EnableCollision()

void GameObject::EnableCollision ( bool  enable)

Definition at line 4005 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ GetAIAnimKitId()

uint16 GameObject::GetAIAnimKitId ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 427 of file GameObject.h.

◆ GetAIName()

std::string const & GameObject::GetAIName ( ) const

Definition at line 894 of file GameObject.cpp.

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

◆ GetControllingTeam()

TeamId GameObject::GetControllingTeam ( ) const

Definition at line 4556 of file GameObject.cpp.

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

◆ GetCreatorGUID()

ObjectGuid GameObject::GetCreatorGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 234 of file GameObject.h.

◆ GetDebugInfo()

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

Reimplemented from BaseEntity.

Reimplemented in Transport.

Definition at line 4593 of file GameObject.cpp.

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

◆ GetDestructibleState()

GameObjectDestructibleState GameObject::GetDestructibleState ( ) const
inline

Definition at line 369 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetDisplayId()

uint32 GameObject::GetDisplayId ( ) const
inline

Definition at line 394 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetFaction()

uint32 GameObject::GetFaction ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 397 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetFishLoot()

Loot * GameObject::GetFishLoot ( Player lootOwner)

Definition at line 1813 of file GameObject.cpp.

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

◆ GetFishLootJunk()

Loot * GameObject::GetFishLootJunk ( Player lootOwner)

Definition at line 1836 of file GameObject.cpp.

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

◆ GetFlagCarrierGUID()

ObjectGuid const & GameObject::GetFlagCarrierGUID ( ) const

Definition at line 4479 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ GetFlagState()

FlagState GameObject::GetFlagState ( ) const

Definition at line 4467 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ GetFlagTakenFromBaseTime()

time_t GameObject::GetFlagTakenFromBaseTime ( ) const

Definition at line 4491 of file GameObject.cpp.

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

◆ GetGameObjectData()

GameObjectData const * GameObject::GetGameObjectData ( ) const
inline

Definition at line 206 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetGameObjectOverride()

GameObjectOverride const * GameObject::GetGameObjectOverride ( ) const

Definition at line 1724 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ GetGoAnimProgress()

uint8 GameObject::GetGoAnimProgress ( ) const
inline

Definition at line 290 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetGoArtKit()

uint32 GameObject::GetGoArtKit ( ) const
inline

Definition at line 288 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetGOInfo()

GameObjectTemplate const * GameObject::GetGOInfo ( ) const
inline

Definition at line 203 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetGoState()

GOState GameObject::GetGoState ( ) const
inline

Definition at line 284 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetGoStateFor()

GOState GameObject::GetGoStateFor ( ObjectGuid const &  viewer) const

Definition at line 3944 of file GameObject.cpp.

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

◆ GetGoType()

GameobjectTypes GameObject::GetGoType ( ) const
inline

Definition at line 282 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetGOValue()

GameObjectValue const * GameObject::GetGOValue ( ) const
inline

Definition at line 207 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetInsidePlayers()

GuidUnorderedSet const * GameObject::GetInsidePlayers ( ) const

Definition at line 4503 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ GetInteractionDistance()

float GameObject::GetInteractionDistance ( ) const

Definition at line 4204 of file GameObject.cpp.

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

◆ GetLabels()

std::span< int32 const > GameObject::GetLabels ( ) const

Definition at line 3637 of file GameObject.cpp.

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

◆ GetLevelForTarget()

uint8 GameObject::GetLevelForTarget ( WorldObject const *  target) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 2217 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ GetLinkedTrap()

GameObject * GameObject::GetLinkedTrap ( )

Definition at line 4086 of file GameObject.cpp.

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

◆ GetLocalRotation()

QuaternionData const & GameObject::GetLocalRotation ( ) const
inline

Definition at line 218 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetLootForPlayer()

Loot * GameObject::GetLootForPlayer ( Player const *  player) const
overridevirtual

Reimplemented from Object.

Definition at line 4075 of file GameObject.cpp.

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

◆ GetLootMode()

uint16 GameObject::GetLootMode ( ) const
inline

Definition at line 306 of file GameObject.h.

+ Here is the caller graph for this function:

◆ getLootState()

LootState GameObject::getLootState ( ) const
inline

Definition at line 302 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetNameForLocaleIdx()

std::string GameObject::GetNameForLocaleIdx ( LocaleConstant  locale) const
overridevirtual

Implements BaseEntity.

Definition at line 3622 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ GetNameSetId()

uint8 GameObject::GetNameSetId ( ) const

Definition at line 3972 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ GetOrCreatePerPlayerStates()

std::unordered_map< ObjectGuid, GameObject::PerPlayerState > & GameObject::GetOrCreatePerPlayerStates ( )
private

Definition at line 4516 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ GetOwnerGUID()

ObjectGuid GameObject::GetOwnerGUID ( ) const
inlineoverridevirtual

Implements WorldObject.

Definition at line 245 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetPackedLocalRotation()

int64 GameObject::GetPackedLocalRotation ( ) const
inline

Definition at line 219 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetPathProgressForClient()

Optional< float > GameObject::GetPathProgressForClient ( ) const
inline

Definition at line 295 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetPauseTimes()

std::span< uint32 const > GameObject::GetPauseTimes ( ) const

Definition at line 4153 of file GameObject.cpp.

◆ GetRespawnCompatibilityMode()

bool GameObject::GetRespawnCompatibilityMode ( )
inline

Definition at line 380 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetRespawnDelay()

uint32 GameObject::GetRespawnDelay ( ) const
inline

Definition at line 267 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetRespawnPosition()

Position GameObject::GetRespawnPosition ( ) const

Definition at line 4167 of file GameObject.cpp.

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

◆ GetRespawnTime()

time_t GameObject::GetRespawnTime ( ) const
inline

Definition at line 254 of file GameObject.h.

◆ GetRespawnTimeEx()

time_t GameObject::GetRespawnTimeEx ( ) const

Definition at line 2235 of file GameObject.cpp.

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

◆ GetScriptId()

uint32 GameObject::GetScriptId ( ) const

Definition at line 3567 of file GameObject.cpp.

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

◆ GetSpawnId()

ObjectGuid::LowType GameObject::GetSpawnId ( ) const
inline

Definition at line 212 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetSpawnTrackingStateDataForPlayer()

SpawnTrackingStateData const * GameObject::GetSpawnTrackingStateDataForPlayer ( Player const *  player) const
overridevirtual

Reimplemented from Object.

Definition at line 3604 of file GameObject.cpp.

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

◆ GetSpellForLock()

SpellInfo const * GameObject::GetSpellForLock ( Player const *  player) const

Definition at line 4646 of file GameObject.cpp.

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

◆ GetSpellId()

uint32 GameObject::GetSpellId ( ) const
inline

Definition at line 252 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetStationaryPosition()

Position const & GameObject::GetStationaryPosition ( ) const
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 409 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetStringId()

std::string_view GameObject::GetStringId ( StringIdType  type) const
inline

Definition at line 389 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetTapList()

GuidUnorderedSet const & GameObject::GetTapList ( ) const
inline

Definition at line 334 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetTemplateAddon()

GameObjectTemplateAddon const * GameObject::GetTemplateAddon ( ) const
inline

Definition at line 204 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetUniqueUseCount()

uint32 GameObject::GetUniqueUseCount ( ) const
inline

Definition at line 327 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetUseCount()

uint32 GameObject::GetUseCount ( ) const
inline

Definition at line 326 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetVignette()

Vignettes::VignetteData const * GameObject::GetVignette ( ) const
inline

Definition at line 433 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetWorldEffectID()

uint32 GameObject::GetWorldEffectID ( ) const
inline

Definition at line 430 of file GameObject.h.

+ Here is the caller graph for this function:

◆ GetWorldRotation()

QuaternionData GameObject::GetWorldRotation ( ) const

Definition at line 3679 of file GameObject.cpp.

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

◆ HandleCustomTypeCommand()

void GameObject::HandleCustomTypeCommand ( GameObjectTypeBase::CustomCommand const &  command) const

Definition at line 4550 of file GameObject.cpp.

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

◆ HasConditionalInteraction()

bool GameObject::HasConditionalInteraction ( ) const

Definition at line 2261 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ HasFlag()

bool GameObject::HasFlag ( GameObjectFlags  flags) const
inline

Definition at line 276 of file GameObject.h.

+ Here is the caller graph for this function:

◆ hasInvolvedQuest()

bool GameObject::hasInvolvedQuest ( uint32  quest_id) const
overridevirtual

Reimplemented from Object.

Definition at line 2114 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ HasLabel()

bool GameObject::HasLabel ( int32  gameobjectLabel) const

Definition at line 3632 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ HasLootMode()

bool GameObject::HasLootMode ( uint16  lootMode) const
inline

Definition at line 307 of file GameObject.h.

◆ HasLootRecipient()

bool GameObject::HasLootRecipient ( ) const
inline

Definition at line 337 of file GameObject.h.

+ Here is the caller graph for this function:

◆ hasQuest()

bool GameObject::hasQuest ( uint32  quest_id) const
overridevirtual

Reimplemented from Object.

Definition at line 2109 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ HasStringId()

bool GameObject::HasStringId ( std::string_view  id) const

Definition at line 3585 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ InheritStringIds()

void GameObject::InheritStringIds ( GameObject const *  parent)

Definition at line 3576 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ IsAlwaysVisibleFor()

bool GameObject::IsAlwaysVisibleFor ( WorldObject const *  seer) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 2174 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ IsAtInteractDistance() [1/2]

bool GameObject::IsAtInteractDistance ( Player const *  player,
SpellInfo const *  spell = nullptr 
) const

Definition at line 4601 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ IsAtInteractDistance() [2/2]

bool GameObject::IsAtInteractDistance ( Position const &  pos,
float  radius 
) const

Definition at line 4617 of file GameObject.cpp.

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

◆ IsDestructibleBuilding()

bool GameObject::IsDestructibleBuilding ( ) const

Definition at line 2129 of file GameObject.cpp.

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

◆ IsFullyLooted()

bool GameObject::IsFullyLooted ( ) const

Definition at line 3872 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ IsInRange()

bool GameObject::IsInRange ( float  x,
float  y,
float  z,
float  radius 
) const

Check if the distance between the 2 objects is 0, can happen if both objects are on the same position. The code below this check wont crash if dist is 0 because 0/0 in float operations is valid, and returns infinite

Definition at line 3541 of file GameObject.cpp.

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

◆ IsInSkillupList()

bool GameObject::IsInSkillupList ( ObjectGuid const &  playerGuid) const
inline

Definition at line 317 of file GameObject.h.

+ Here is the caller graph for this function:

◆ IsInvisibleDueToDespawn()

bool GameObject::IsInvisibleDueToDespawn ( WorldObject const *  seer) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 2200 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ IsLootAllowedFor()

bool GameObject::IsLootAllowedFor ( Player const *  player) const

Definition at line 4059 of file GameObject.cpp.

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

◆ IsNeverVisibleFor()

bool GameObject::IsNeverVisibleFor ( WorldObject const *  seer,
bool  allowServersideObjects = false 
) const
overridevirtual

Reimplemented from WorldObject.

Definition at line 2157 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ isSpawned()

bool GameObject::isSpawned ( ) const
inline

Definition at line 259 of file GameObject.h.

+ Here is the caller graph for this function:

◆ isSpawnedByDefault()

bool GameObject::isSpawnedByDefault ( ) const
inline

Definition at line 265 of file GameObject.h.

◆ IsTransport()

bool GameObject::IsTransport ( ) const

Definition at line 2119 of file GameObject.cpp.

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

◆ IsWithinDistInMap() [1/2]

bool GameObject::IsWithinDistInMap ( Player const *  player) const

Definition at line 4641 of file GameObject.cpp.

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

◆ IsWithinDistInMap() [2/2]

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

Definition at line 362 of file Object.cpp.

◆ LoadFromDB()

bool GameObject::LoadFromDB ( ObjectGuid::LowType  spawnId,
Map map,
bool  addToMap,
bool  = true 
)

Definition at line 1961 of file GameObject.cpp.

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

◆ LookupFishingHoleAround()

GameObject * GameObject::LookupFishingHoleAround ( float  range)

Definition at line 2363 of file GameObject.cpp.

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

◆ MeetsInteractCondition()

bool GameObject::MeetsInteractCondition ( Player const *  user) const

Definition at line 4511 of file GameObject.cpp.

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

◆ ModifyHealth()

void GameObject::ModifyHealth ( int32  change,
WorldObject attackerOrHealer = nullptr,
uint32  spellId = 0 
)

Definition at line 3696 of file GameObject.cpp.

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

◆ OnLootRelease()

void GameObject::OnLootRelease ( Player looter)

Definition at line 3884 of file GameObject.cpp.

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

◆ Refresh()

void GameObject::Refresh ( )

Definition at line 1735 of file GameObject.cpp.

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

◆ RelocateStationaryPosition() [1/2]

void GameObject::RelocateStationaryPosition ( float  x,
float  y,
float  z,
float  o 
)
inline

Definition at line 410 of file GameObject.h.

+ Here is the caller graph for this function:

◆ RelocateStationaryPosition() [2/2]

void GameObject::RelocateStationaryPosition ( Position const &  pos)
inline

Definition at line 411 of file GameObject.h.

◆ RemoveFlag()

void GameObject::RemoveFlag ( GameObjectFlags  flags)
inline

Definition at line 278 of file GameObject.h.

+ Here is the caller graph for this function:

◆ RemoveFromOwner()

void GameObject::RemoveFromOwner ( )
private

Definition at line 908 of file GameObject.cpp.

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

◆ RemoveFromWorld()

void GameObject::RemoveFromWorld ( )
overridevirtual
  • Remove the gameobject from the accessor

Reimplemented from BaseEntity.

Definition at line 954 of file GameObject.cpp.

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

◆ RemoveLootMode()

void GameObject::RemoveLootMode ( uint16  lootMode)
inline

Definition at line 310 of file GameObject.h.

◆ ReplaceAllFlags()

void GameObject::ReplaceAllFlags ( GameObjectFlags  flags)
inline

Definition at line 279 of file GameObject.h.

+ Here is the caller graph for this function:

◆ ResetDoorOrButton()

void GameObject::ResetDoorOrButton ( )

Definition at line 2372 of file GameObject.cpp.

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

◆ ResetLootMode()

void GameObject::ResetLootMode ( )
inline

Definition at line 311 of file GameObject.h.

+ Here is the caller graph for this function:

◆ Respawn()

void GameObject::Respawn ( )

Definition at line 2252 of file GameObject.cpp.

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

◆ SaveRespawnTime()

void GameObject::SaveRespawnTime ( uint32  forceDelay = 0)

Definition at line 2138 of file GameObject.cpp.

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

◆ SaveToDB() [1/2]

void GameObject::SaveToDB ( )

Definition at line 1859 of file GameObject.cpp.

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

◆ SaveToDB() [2/2]

void GameObject::SaveToDB ( uint32  mapid,
std::vector< Difficulty > const &  spawnDifficulties 
)

Definition at line 1878 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ SendCustomAnim()

void GameObject::SendCustomAnim ( uint32  anim)

Definition at line 3533 of file GameObject.cpp.

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

◆ SendGameObjectDespawn()

void GameObject::SendGameObjectDespawn ( )

Definition at line 1806 of file GameObject.cpp.

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

◆ SetAnimKitId()

void GameObject::SetAnimKitId ( uint16  animKitId,
bool  oneshot 
)

Definition at line 4258 of file GameObject.cpp.

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

◆ SetDestructibleState()

void GameObject::SetDestructibleState ( GameObjectDestructibleState  state,
WorldObject attackerOrHealer = nullptr,
bool  setHealth = false 
)

Definition at line 3745 of file GameObject.cpp.

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

◆ SetDisplayId()

void GameObject::SetDisplayId ( uint32  displayid)

Definition at line 3966 of file GameObject.cpp.

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

◆ SetFaction()

void GameObject::SetFaction ( uint32  faction)
inlineoverridevirtual

Reimplemented from WorldObject.

Definition at line 398 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetFlag()

void GameObject::SetFlag ( GameObjectFlags  flags)
inline

Definition at line 277 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetGoAnimProgress()

void GameObject::SetGoAnimProgress ( uint8  animprogress)
inline

Definition at line 291 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetGoArtKit() [1/2]

void GameObject::SetGoArtKit ( uint32  artkit)

Definition at line 2541 of file GameObject.cpp.

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

◆ SetGoArtKit() [2/2]

void GameObject::SetGoArtKit ( uint32  artkit,
GameObject go,
ObjectGuid::LowType  lowguid = UI64LIT(0) 
)
static

Definition at line 2549 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ SetGoState()

void GameObject::SetGoState ( GOState  state)

Definition at line 3920 of file GameObject.cpp.

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

◆ SetGoStateFor()

void GameObject::SetGoStateFor ( GOState  state,
Player const *  viewer 
)

Definition at line 3954 of file GameObject.cpp.

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

◆ SetGoType()

void GameObject::SetGoType ( GameobjectTypes  type)
inline

Definition at line 283 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetLevel()

void GameObject::SetLevel ( uint32  level)
inline

Definition at line 281 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetLinkedTrap()

void GameObject::SetLinkedTrap ( GameObject linkedTrap)
inline

Definition at line 341 of file GameObject.h.

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

◆ SetLocalRotation()

void GameObject::SetLocalRotation ( float  qx,
float  qy,
float  qz,
float  qw 
)

Definition at line 3657 of file GameObject.cpp.

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

◆ SetLocalRotationAngles()

void GameObject::SetLocalRotationAngles ( float  z_rot,
float  y_rot,
float  x_rot 
)

Definition at line 3673 of file GameObject.cpp.

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

◆ SetLootMode()

void GameObject::SetLootMode ( uint16  lootMode)
inline

Definition at line 308 of file GameObject.h.

◆ SetLootState()

void GameObject::SetLootState ( LootState  s,
Unit unit = nullptr 
)

Definition at line 3832 of file GameObject.cpp.

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

◆ SetOwnerGUID()

void GameObject::SetOwnerGUID ( ObjectGuid  owner)
inline

Definition at line 235 of file GameObject.h.

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

◆ SetParentRotation()

void GameObject::SetParentRotation ( QuaternionData const &  rotation)

Definition at line 3668 of file GameObject.cpp.

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

◆ SetPathProgressForClient()

void GameObject::SetPathProgressForClient ( float  progress)

Definition at line 4162 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ SetRespawnCompatibilityMode()

void GameObject::SetRespawnCompatibilityMode ( bool  mode = true)
inline

Definition at line 379 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetRespawnTime()

void GameObject::SetRespawnTime ( int32  respawn)

Definition at line 2244 of file GameObject.cpp.

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

◆ SetScriptStringId()

void GameObject::SetScriptStringId ( std::string  id)

Definition at line 3590 of file GameObject.cpp.

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

◆ SetSpawnedByDefault()

void GameObject::SetSpawnedByDefault ( bool  b)
inline

Definition at line 266 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetSpellId()

void GameObject::SetSpellId ( uint32  id)
inline

Definition at line 247 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetSpellVisualId()

void GameObject::SetSpellVisualId ( int32  spellVisualId,
ObjectGuid  activatorGuid = ObjectGuid::Empty 
)

Definition at line 4295 of file GameObject.cpp.

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

◆ SetTapList()

void GameObject::SetTapList ( GuidUnorderedSet  tapList)
inline

Definition at line 335 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SetVignette()

void GameObject::SetVignette ( uint32  vignetteId)

Definition at line 4280 of file GameObject.cpp.

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

◆ SetWorldEffectID()

void GameObject::SetWorldEffectID ( uint32  worldEffectID)
inline

Definition at line 431 of file GameObject.h.

+ Here is the caller graph for this function:

◆ SwitchDoorOrButton()

void GameObject::SwitchDoorOrButton ( bool  activate,
bool  alternative = false 
)
private

Definition at line 2564 of file GameObject.cpp.

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

◆ ToTransport() [1/2]

Transport * GameObject::ToTransport ( )
inline

Definition at line 406 of file GameObject.h.

+ Here is the caller graph for this function:

◆ ToTransport() [2/2]

Transport const * GameObject::ToTransport ( ) const
inline

Definition at line 407 of file GameObject.h.

◆ ToTransportBase() [1/2]

TransportBase * GameObject::ToTransportBase ( )
inline

Definition at line 403 of file GameObject.h.

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

◆ ToTransportBase() [2/2]

TransportBase const * GameObject::ToTransportBase ( ) const

Definition at line 4175 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ TriggeringLinkedGameObject()

void GameObject::TriggeringLinkedGameObject ( uint32  trapEntry,
Unit target 
)

Definition at line 2349 of file GameObject.cpp.

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

◆ Update()

void GameObject::Update ( uint32  diff)
overridevirtual
Todo:
This is activation radius. Casting radius must be selected from spell data.
Todo:
nullptr target won't work for target type 1

Reimplemented from WorldObject.

Reimplemented in Transport.

Definition at line 1257 of file GameObject.cpp.

+ Here is the call graph for this function:

◆ UpdateCapturePoint()

void GameObject::UpdateCapturePoint ( )

Definition at line 4387 of file GameObject.cpp.

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

◆ UpdateDynamicFlagsForNearbyPlayers()

void GameObject::UpdateDynamicFlagsForNearbyPlayers ( )

Definition at line 4544 of file GameObject.cpp.

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

◆ UpdateModel()

void GameObject::UpdateModel ( )
protected

Definition at line 4016 of file GameObject.cpp.

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

◆ UpdateModelPosition()

void GameObject::UpdateModelPosition ( )

Definition at line 4245 of file GameObject.cpp.

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

◆ UpdatePackedRotation()

void GameObject::UpdatePackedRotation ( )
private

Definition at line 3642 of file GameObject.cpp.

+ Here is the caller graph for this function:

◆ Use()

void GameObject::Use ( Unit user,
bool  ignoreCastInProgress = false 
)
Todo:
find reasonable value for fishing hole search
Todo:
I do not understand this hack. Need some explanation.

Definition at line 2577 of file GameObject.cpp.

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

◆ UseDoorOrButton()

void GameObject::UseDoorOrButton ( uint32  time_to_restore = 0,
bool  alternative = false,
Unit user = nullptr 
)

Definition at line 2384 of file GameObject.cpp.

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

Member Data Documentation

◆ _animKitId

uint16 GameObject::_animKitId
private

Definition at line 518 of file GameObject.h.

◆ _worldEffectID

uint32 GameObject::_worldEffectID
private

Definition at line 519 of file GameObject.h.

◆ ChairListSlots

ChairSlotAndUser GameObject::ChairListSlots
protected

Definition at line 484 of file GameObject.h.

◆ m_AI

GameObjectAI* GameObject::m_AI
private

Definition at line 516 of file GameObject.h.

◆ m_cooldownTime

time_t GameObject::m_cooldownTime
protected

Definition at line 473 of file GameObject.h.

◆ m_despawnDelay

uint32 GameObject::m_despawnDelay
protected

Definition at line 467 of file GameObject.h.

◆ m_despawnRespawnTime

Seconds GameObject::m_despawnRespawnTime
protected

Definition at line 468 of file GameObject.h.

◆ m_gameObjectData

Definition at line 457 of file GameObject.h.

◆ m_goData

GameObjectData const* GameObject::m_goData
protected

Definition at line 489 of file GameObject.h.

◆ m_goInfo

GameObjectTemplate const* GameObject::m_goInfo
protected

Definition at line 487 of file GameObject.h.

◆ m_goTemplateAddon

GameObjectTemplateAddon const* GameObject::m_goTemplateAddon
protected

Definition at line 488 of file GameObject.h.

◆ m_goTypeImpl

std::unique_ptr<GameObjectTypeBase> GameObject::m_goTypeImpl
protected

Definition at line 490 of file GameObject.h.

◆ m_goValue

GameObjectValue GameObject::m_goValue
protected

Definition at line 491 of file GameObject.h.

◆ m_linkedTrap

ObjectGuid GameObject::m_linkedTrap
protected

Definition at line 502 of file GameObject.h.

◆ m_localRotation

QuaternionData GameObject::m_localRotation
protected

Definition at line 496 of file GameObject.h.

◆ m_loot

std::unique_ptr<Loot> GameObject::m_loot

Definition at line 331 of file GameObject.h.

◆ m_LootMode

uint16 GameObject::m_LootMode
protected

Definition at line 500 of file GameObject.h.

◆ m_lootState

LootState GameObject::m_lootState
protected

Definition at line 469 of file GameObject.h.

◆ m_lootStateUnitGUID

ObjectGuid GameObject::m_lootStateUnitGUID
protected

Definition at line 470 of file GameObject.h.

◆ m_model

std::unique_ptr<GameObjectModel> GameObject::m_model

Definition at line 400 of file GameObject.h.

◆ m_packedRotation

int64 GameObject::m_packedRotation
protected

Definition at line 495 of file GameObject.h.

◆ m_perPlayerState

std::unique_ptr<std::unordered_map<ObjectGuid, PerPlayerState> > GameObject::m_perPlayerState
private

Definition at line 531 of file GameObject.h.

◆ m_personalLoot

std::unordered_map<ObjectGuid, std::unique_ptr<Loot> > GameObject::m_personalLoot

Definition at line 332 of file GameObject.h.

◆ m_prevGoState

GOState GameObject::m_prevGoState
protected

Definition at line 475 of file GameObject.h.

◆ m_respawnCompatibilityMode

bool GameObject::m_respawnCompatibilityMode
private

Definition at line 517 of file GameObject.h.

◆ m_respawnDelayTime

uint32 GameObject::m_respawnDelayTime
protected

Definition at line 466 of file GameObject.h.

◆ m_respawnTime

time_t GameObject::m_respawnTime
protected

Definition at line 465 of file GameObject.h.

◆ m_restockTime

time_t GameObject::m_restockTime
protected

Definition at line 472 of file GameObject.h.

◆ m_ritualOwnerGUID

ObjectGuid GameObject::m_ritualOwnerGUID
protected

Definition at line 479 of file GameObject.h.

◆ m_scriptStringId

Optional<std::string> GameObject::m_scriptStringId
protected

Definition at line 493 of file GameObject.h.

◆ m_SkillupList

GuidSet GameObject::m_SkillupList
protected

Definition at line 477 of file GameObject.h.

◆ m_spawnedByDefault

bool GameObject::m_spawnedByDefault
protected

Definition at line 471 of file GameObject.h.

◆ m_spawnId

ObjectGuid::LowType GameObject::m_spawnId
protected

For new or temporary gameobjects is 0 for saved it is lowguid.

Definition at line 486 of file GameObject.h.

◆ m_spellId

uint32 GameObject::m_spellId
protected

Definition at line 464 of file GameObject.h.

◆ m_stationaryPosition

Position GameObject::m_stationaryPosition
protected

Definition at line 497 of file GameObject.h.

◆ m_stringIds

std::array<std::string const*, 3> GameObject::m_stringIds
protected

Definition at line 492 of file GameObject.h.

◆ m_tapList

GuidUnorderedSet GameObject::m_tapList
protected

Definition at line 499 of file GameObject.h.

◆ m_transportPathProgress

Optional<float> GameObject::m_transportPathProgress
private

Definition at line 520 of file GameObject.h.

◆ m_unique_users

GuidSet GameObject::m_unique_users
protected

Definition at line 480 of file GameObject.h.

◆ m_usetimes

uint32 GameObject::m_usetimes
protected

Definition at line 481 of file GameObject.h.

◆ m_vignette

std::unique_ptr<Vignettes::VignetteData> GameObject::m_vignette
private

Definition at line 522 of file GameObject.h.


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