TrinityCore
Object Class Referenceabstract

#include <Object.h>

+ Inheritance diagram for Object:

Classes

struct  NoopObjectDeleter
 

Public Member Functions

virtual ~Object ()
 
bool IsInWorld () const
 
virtual void AddToWorld ()
 
virtual void RemoveFromWorld ()
 
ObjectGuid const & GetGUID () const
 
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)
 
TypeID GetTypeId () const
 
bool isType (uint16 mask) const
 
virtual void BuildCreateUpdateBlockForPlayer (UpdateData *data, Player *target) const
 
void SendUpdateToPlayer (Player *player)
 
void BuildValuesUpdateBlockForPlayer (UpdateData *data, Player const *target) const
 
void BuildValuesUpdateBlockForPlayerWithFlag (UpdateData *data, UF::UpdateFieldFlag flags, Player const *target) const
 
void BuildDestroyUpdateBlock (UpdateData *data) const
 
void BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
ByteBufferPrepareValuesUpdateBuffer (UpdateData *data) const
 
virtual void DestroyForPlayer (Player *target) const
 
void SendOutOfRangeForPlayer (Player *target) const
 
virtual void ClearUpdateMask (bool remove)
 
virtual std::string GetNameForLocaleIdx (LocaleConstant locale) const =0
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
void SetIsNewObject (bool enable)
 
bool IsDestroyedObject () const
 
void SetDestroyedObject (bool destroyed)
 
virtual void BuildUpdate (UpdateDataMapType &)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
bool IsWorldObject () const
 
WorldObjectToWorldObject ()
 
WorldObject const * ToWorldObject () const
 
bool IsItem () const
 
ItemToItem ()
 
Item const * ToItem () const
 
bool IsPlayer () const
 
PlayerToPlayer ()
 
Player const * ToPlayer () const
 
bool IsCreature () const
 
CreatureToCreature ()
 
Creature const * ToCreature () const
 
bool IsUnit () const
 
UnitToUnit ()
 
Unit const * ToUnit () const
 
bool IsGameObject () const
 
GameObjectToGameObject ()
 
GameObject const * ToGameObject () const
 
bool IsCorpse () const
 
CorpseToCorpse ()
 
Corpse const * ToCorpse () const
 
bool IsDynObject () const
 
DynamicObjectToDynObject ()
 
DynamicObject const * ToDynObject () const
 
bool IsAreaTrigger () const
 
AreaTriggerToAreaTrigger ()
 
AreaTrigger const * ToAreaTrigger () const
 
bool IsSceneObject () const
 
SceneObjectToSceneObject ()
 
SceneObject const * ToSceneObject () const
 
bool IsConversation () const
 
ConversationToConversation ()
 
Conversation const * ToConversation () const
 
template<typename T >
void ForceUpdateFieldChange (UF::UpdateFieldSetter< T > const &)
 
virtual std::string GetDebugInfo () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () const
 
virtual LootGetLootForPlayer (Player const *player) const
 
virtual void BuildValuesUpdateWithFlag (ByteBuffer *data, UF::UpdateFieldFlag flags, Player const *target) const
 

Static Public Member Functions

static ObjectGuid GetGUID (Object const *o)
 
static WorldObjectToWorldObject (Object *o)
 
static WorldObject const * ToWorldObject (Object const *o)
 
static ItemToItem (Object *o)
 
static Item const * ToItem (Object const *o)
 
static PlayerToPlayer (Object *o)
 
static Player const * ToPlayer (Object const *o)
 
static CreatureToCreature (Object *o)
 
static Creature const * ToCreature (Object const *o)
 
static UnitToUnit (Object *o)
 
static Unit const * ToUnit (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)
 

Public Attributes

UF::UpdateFieldHolder m_values
 
UF::UpdateField< UF::ObjectData, 0, TYPEID_OBJECTm_objectData
 

Protected Member Functions

 Object ()
 
void _Create (ObjectGuid const &guid)
 
template<typename T >
void SetUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value)
 
template<typename T >
void SetUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type flag)
 
template<typename T >
void RemoveUpdateFieldFlagValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< 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 T >
void RemoveOptionalUpdateFieldValue (UF::OptionalUpdateFieldSetter< T > setter)
 
template<typename T >
void SetUpdateFieldStatValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type value)
 
template<typename T >
void ApplyModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, typename UF::UpdateFieldSetter< T >::value_type mod, bool apply)
 
template<typename T >
void ApplyPercentModUpdateFieldValue (UF::UpdateFieldSetter< T > setter, float percent, bool apply)
 
template<typename Action >
void DoWithSuppressingObjectUpdates (Action &&action)
 
void BuildMovementUpdate (ByteBuffer *data, CreateObjectBits flags, Player *target) const
 
virtual UF::UpdateFieldFlag GetUpdateFieldFlagsFor (Player const *target) const
 
virtual void BuildValuesCreate (ByteBuffer *data, Player const *target) const =0
 
virtual void BuildValuesUpdate (ByteBuffer *data, Player const *target) const =0
 
virtual bool AddToObjectUpdate ()=0
 
virtual void RemoveFromObjectUpdate ()=0
 
void AddToObjectUpdateIfNeeded ()
 

Protected Attributes

uint16 m_objectType
 
TypeID m_objectTypeId
 
CreateObjectBits m_updateFlag
 
bool m_objectUpdated
 

Private Member Functions

 Object (Object const &right)=delete
 
 Object (Object &&right)=delete
 
Objectoperator= (Object const &right)=delete
 
Objectoperator= (Object &&right)=delete
 

Private Attributes

ObjectGuid m_guid
 
bool m_inWorld
 
bool m_isNewObject
 
bool m_isDestroyedObject
 
Trinity::unique_trackable_ptr< Objectm_scriptRef
 

Detailed Description

Definition at line 149 of file Object.h.

Constructor & Destructor Documentation

◆ ~Object()

Object::~Object ( )
virtual

Definition at line 84 of file Object.cpp.

+ Here is the call graph for this function:

◆ Object() [1/3]

Object::Object ( )
protected

Definition at line 72 of file Object.cpp.

+ Here is the call graph for this function:

◆ Object() [2/3]

Object::Object ( Object const &  right)
privatedelete

◆ Object() [3/3]

Object::Object ( Object &&  right)
privatedelete

Member Function Documentation

◆ _Create()

void Object::_Create ( ObjectGuid const &  guid)
protected

Definition at line 101 of file Object.cpp.

+ Here is the caller graph for this function:

◆ AddDynamicUpdateFieldValue()

template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result Object::AddDynamicUpdateFieldValue ( UF::DynamicUpdateFieldSetter< T >  setter)
inlineprotected

Definition at line 308 of file Object.h.

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

◆ AddToObjectUpdate()

virtual bool Object::AddToObjectUpdate ( )
protectedpure virtual

Implemented in Item, and WorldObject.

+ Here is the caller graph for this function:

◆ AddToObjectUpdateIfNeeded()

void Object::AddToObjectUpdateIfNeeded ( )
protected

Definition at line 784 of file Object.cpp.

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

◆ AddToWorld()

void Object::AddToWorld ( )
virtual

Reimplemented in AreaTrigger, Conversation, Corpse, Creature, DynamicObject, GameObject, Bag, WorldObject, Pet, Player, SceneObject, and Unit.

Definition at line 107 of file Object.cpp.

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

◆ ApplyModUpdateFieldValue()

template<typename T >
void Object::ApplyModUpdateFieldValue ( UF::UpdateFieldSetter< T >  setter,
typename UF::UpdateFieldSetter< T >::value_type  mod,
bool  apply 
)
inlineprotected

Definition at line 351 of file Object.h.

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

◆ ApplyPercentModUpdateFieldValue()

template<typename T >
void Object::ApplyPercentModUpdateFieldValue ( UF::UpdateFieldSetter< T >  setter,
float  percent,
bool  apply 
)
inlineprotected

Definition at line 365 of file Object.h.

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

◆ BuildCreateUpdateBlockForPlayer()

void Object::BuildCreateUpdateBlockForPlayer ( UpdateData data,
Player target 
) const
virtual

Reimplemented in Bag, and Player.

Definition at line 137 of file Object.cpp.

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

◆ BuildDestroyUpdateBlock()

void Object::BuildDestroyUpdateBlock ( UpdateData data) const

Definition at line 215 of file Object.cpp.

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

◆ BuildFieldsUpdate()

void Object::BuildFieldsUpdate ( Player player,
UpdateDataMapType data_map 
) const

Definition at line 802 of file Object.cpp.

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

◆ BuildMovementUpdate()

void Object::BuildMovementUpdate ( ByteBuffer data,
CreateObjectBits  flags,
Player target 
) const
protected

Definition at line 255 of file Object.cpp.

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

◆ BuildOutOfRangeUpdateBlock()

void Object::BuildOutOfRangeUpdateBlock ( UpdateData data) const

Definition at line 220 of file Object.cpp.

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

◆ BuildUpdate()

virtual void Object::BuildUpdate ( UpdateDataMapType )
inlinevirtual

Reimplemented in Item, WorldObject, and Transport.

Definition at line 197 of file Object.h.

+ Here is the caller graph for this function:

◆ BuildValuesCreate()

virtual void Object::BuildValuesCreate ( ByteBuffer data,
Player const *  target 
) const
protectedpure virtual

Implemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, AzeriteEmpoweredItem, AzeriteItem, Bag, Item, Player, SceneObject, and Unit.

+ Here is the caller graph for this function:

◆ BuildValuesUpdate()

virtual void Object::BuildValuesUpdate ( ByteBuffer data,
Player const *  target 
) const
protectedpure virtual

Implemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, AzeriteEmpoweredItem, AzeriteItem, Bag, Item, Player, SceneObject, and Unit.

+ Here is the caller graph for this function:

◆ BuildValuesUpdateBlockForPlayer()

void Object::BuildValuesUpdateBlockForPlayer ( UpdateData data,
Player const *  target 
) const

Definition at line 197 of file Object.cpp.

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

◆ BuildValuesUpdateBlockForPlayerWithFlag()

void Object::BuildValuesUpdateBlockForPlayerWithFlag ( UpdateData data,
UF::UpdateFieldFlag  flags,
Player const *  target 
) const

Definition at line 206 of file Object.cpp.

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

◆ BuildValuesUpdateWithFlag()

void Object::BuildValuesUpdateWithFlag ( ByteBuffer data,
UF::UpdateFieldFlag  flags,
Player const *  target 
) const
virtual

Reimplemented in AzeriteItem, Item, Player, and Unit.

Definition at line 775 of file Object.cpp.

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

◆ ClearDynamicUpdateFieldValues()

template<typename T >
void Object::ClearDynamicUpdateFieldValues ( UF::DynamicUpdateFieldSetter< T >  setter)
inlineprotected

Definition at line 329 of file Object.h.

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

◆ ClearUpdateMask()

void Object::ClearUpdateMask ( bool  remove)
virtual

Reimplemented in AreaTrigger, Conversation, Corpse, DynamicObject, GameObject, AzeriteEmpoweredItem, AzeriteItem, Bag, Item, Player, SceneObject, and Unit.

Definition at line 790 of file Object.cpp.

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

◆ DestroyForPlayer()

void Object::DestroyForPlayer ( Player target) const
virtual

Reimplemented in Player, and Unit.

Definition at line 233 of file Object.cpp.

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

◆ DoWithSuppressingObjectUpdates()

template<typename Action >
void Object::DoWithSuppressingObjectUpdates ( Action &&  action)
inlineprotected

Definition at line 381 of file Object.h.

+ Here is the caller graph for this function:

◆ ForceUpdateFieldChange()

template<typename T >
void Object::ForceUpdateFieldChange ( UF::UpdateFieldSetter< T > const &  )
inline

Definition at line 270 of file Object.h.

+ Here is the caller graph for this function:

◆ GetDebugInfo()

std::string Object::GetDebugInfo ( ) const
virtual

Reimplemented in Creature, TempSummon, Minion, Guardian, GameObject, Bag, Item, WorldObject, Pet, Player, Transport, and Unit.

Definition at line 816 of file Object.cpp.

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

◆ GetDynamicFlags()

uint32 Object::GetDynamicFlags ( ) const
inline

Definition at line 167 of file Object.h.

+ Here is the caller graph for this function:

◆ GetEntry()

uint32 Object::GetEntry ( ) const
inline

Definition at line 161 of file Object.h.

◆ GetGUID() [1/2]

ObjectGuid const & Object::GetGUID ( ) const
inline

Definition at line 160 of file Object.h.

◆ GetGUID() [2/2]

static ObjectGuid Object::GetGUID ( Object const *  o)
inlinestatic

Definition at line 159 of file Object.h.

+ Here is the call graph for this function:

◆ GetLootForPlayer()

virtual Loot * Object::GetLootForPlayer ( Player const *  player) const
inlinevirtual

Reimplemented in Corpse, GameObject, Item, and Creature.

Definition at line 279 of file Object.h.

◆ GetNameForLocaleIdx()

virtual std::string Object::GetNameForLocaleIdx ( LocaleConstant  locale) const
pure virtual

Implemented in Creature, GameObject, Item, and WorldObject.

◆ GetObjectScale()

float Object::GetObjectScale ( ) const
inline

Definition at line 164 of file Object.h.

+ Here is the caller graph for this function:

◆ GetTypeId()

TypeID Object::GetTypeId ( ) const
inline

Definition at line 173 of file Object.h.

◆ GetUpdateFieldFlagsFor()

UF::UpdateFieldFlag Object::GetUpdateFieldFlagsFor ( Player const *  target) const
protectedvirtual

Reimplemented in Item, Player, and Unit.

Definition at line 770 of file Object.cpp.

+ Here is the caller graph for this function:

◆ GetWeakPtr()

Trinity::unique_weak_ptr< Object > Object::GetWeakPtr ( ) const
inline

Definition at line 277 of file Object.h.

◆ HasDynamicFlag()

bool Object::HasDynamicFlag ( uint32  flag) const
inline

Definition at line 168 of file Object.h.

+ Here is the caller graph for this function:

◆ hasInvolvedQuest()

virtual bool Object::hasInvolvedQuest ( uint32  ) const
inlinevirtual

Reimplemented in Creature, GameObject, and Item.

Definition at line 193 of file Object.h.

+ Here is the caller graph for this function:

◆ hasQuest()

virtual bool Object::hasQuest ( uint32  ) const
inlinevirtual

Reimplemented in Creature, GameObject, and Item.

Definition at line 192 of file Object.h.

+ Here is the caller graph for this function:

◆ InsertDynamicUpdateFieldValue()

template<typename T >
UF::DynamicUpdateFieldSetter< T >::insert_result Object::InsertDynamicUpdateFieldValue ( UF::DynamicUpdateFieldSetter< T >  setter,
uint32  index 
)
inlineprotected

Definition at line 315 of file Object.h.

+ Here is the call graph for this function:

◆ IsAreaTrigger()

bool Object::IsAreaTrigger ( ) const
inline

Definition at line 248 of file Object.h.

◆ IsConversation()

bool Object::IsConversation ( ) const
inline

Definition at line 260 of file Object.h.

◆ IsCorpse()

bool Object::IsCorpse ( ) const
inline

Definition at line 236 of file Object.h.

+ Here is the caller graph for this function:

◆ IsCreature()

bool Object::IsCreature ( ) const
inline

Definition at line 218 of file Object.h.

+ Here is the caller graph for this function:

◆ IsDestroyedObject()

bool Object::IsDestroyedObject ( ) const
inline

Definition at line 195 of file Object.h.

+ Here is the caller graph for this function:

◆ IsDynObject()

bool Object::IsDynObject ( ) const
inline

Definition at line 242 of file Object.h.

◆ IsGameObject()

bool Object::IsGameObject ( ) const
inline

Definition at line 230 of file Object.h.

+ Here is the caller graph for this function:

◆ IsInWorld()

bool Object::IsInWorld ( ) const
inline

Definition at line 154 of file Object.h.

+ Here is the caller graph for this function:

◆ IsItem()

bool Object::IsItem ( ) const
inline

Definition at line 206 of file Object.h.

◆ IsPlayer()

bool Object::IsPlayer ( ) const
inline

Definition at line 212 of file Object.h.

+ Here is the caller graph for this function:

◆ IsSceneObject()

bool Object::IsSceneObject ( ) const
inline

Definition at line 254 of file Object.h.

◆ isType()

bool Object::isType ( uint16  mask) const
inline

Definition at line 174 of file Object.h.

◆ IsUnit()

bool Object::IsUnit ( ) const
inline

Definition at line 224 of file Object.h.

+ Here is the caller graph for this function:

◆ IsWorldObject()

bool Object::IsWorldObject ( ) const
inline

Definition at line 200 of file Object.h.

+ Here is the caller graph for this function:

◆ operator=() [1/2]

Object & Object::operator= ( Object &&  right)
privatedelete

◆ operator=() [2/2]

Object & Object::operator= ( Object const &  right)
privatedelete

◆ PrepareValuesUpdateBuffer()

ByteBuffer & Object::PrepareValuesUpdateBuffer ( UpdateData data) const

Definition at line 225 of file Object.cpp.

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

◆ RemoveDynamicFlag()

void Object::RemoveDynamicFlag ( uint32  flag)
inline

Definition at line 170 of file Object.h.

+ Here is the caller graph for this function:

◆ RemoveDynamicUpdateFieldValue()

template<typename T >
void Object::RemoveDynamicUpdateFieldValue ( UF::DynamicUpdateFieldSetter< T >  setter,
uint32  index 
)
inlineprotected

Definition at line 322 of file Object.h.

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

◆ RemoveFromObjectUpdate()

virtual void Object::RemoveFromObjectUpdate ( )
protectedpure virtual

Implemented in Item, and WorldObject.

+ Here is the caller graph for this function:

◆ RemoveFromWorld()

void Object::RemoveFromWorld ( )
virtual

Reimplemented in AreaTrigger, Conversation, Corpse, Creature, TempSummon, Minion, DynamicObject, GameObject, Bag, WorldObject, Pet, Player, SceneObject, and Unit.

Definition at line 124 of file Object.cpp.

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

◆ RemoveOptionalUpdateFieldValue()

template<typename T >
void Object::RemoveOptionalUpdateFieldValue ( UF::OptionalUpdateFieldSetter< T >  setter)
inlineprotected

Definition at line 336 of file Object.h.

+ Here is the call graph for this function:

◆ RemoveUpdateFieldFlagValue()

template<typename T >
void Object::RemoveUpdateFieldFlagValue ( UF::UpdateFieldSetter< T >  setter,
typename UF::UpdateFieldSetter< T >::value_type  flag 
)
inlineprotected

Definition at line 301 of file Object.h.

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

◆ ReplaceAllDynamicFlags()

void Object::ReplaceAllDynamicFlags ( uint32  flag)
inline

Definition at line 171 of file Object.h.

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

◆ SendOutOfRangeForPlayer()

void Object::SendOutOfRangeForPlayer ( Player target) const

Definition at line 244 of file Object.cpp.

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

◆ SendUpdateToPlayer()

void Object::SendUpdateToPlayer ( Player player)

Definition at line 183 of file Object.cpp.

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

◆ SetDestroyedObject()

void Object::SetDestroyedObject ( bool  destroyed)
inline

Definition at line 196 of file Object.h.

+ Here is the caller graph for this function:

◆ SetDynamicFlag()

void Object::SetDynamicFlag ( uint32  flag)
inline

Definition at line 169 of file Object.h.

+ Here is the caller graph for this function:

◆ SetEntry()

void Object::SetEntry ( uint32  entry)
inline

Definition at line 162 of file Object.h.

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

◆ SetIsNewObject()

void Object::SetIsNewObject ( bool  enable)
inline

Definition at line 194 of file Object.h.

◆ SetObjectScale()

virtual void Object::SetObjectScale ( float  scale)
inlinevirtual

Reimplemented in Creature, and Player.

Definition at line 165 of file Object.h.

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

◆ SetUpdateFieldFlagValue()

template<typename T >
void Object::SetUpdateFieldFlagValue ( UF::UpdateFieldSetter< T >  setter,
typename UF::UpdateFieldSetter< T >::value_type  flag 
)
inlineprotected

Definition at line 294 of file Object.h.

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

◆ SetUpdateFieldStatValue()

template<typename T >
void Object::SetUpdateFieldStatValue ( UF::UpdateFieldSetter< T >  setter,
typename UF::UpdateFieldSetter< T >::value_type  value 
)
inlineprotected

Definition at line 344 of file Object.h.

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

◆ SetUpdateFieldValue()

template<typename T >
void Object::SetUpdateFieldValue ( UF::UpdateFieldSetter< T >  setter,
typename UF::UpdateFieldSetter< T >::value_type  value 
)
inlineprotected

Definition at line 287 of file Object.h.

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

◆ ToAreaTrigger() [1/4]

AreaTrigger * Object::ToAreaTrigger ( )
inline

Definition at line 251 of file Object.h.

+ Here is the caller graph for this function:

◆ ToAreaTrigger() [2/4]

AreaTrigger const * Object::ToAreaTrigger ( ) const
inline

Definition at line 252 of file Object.h.

◆ ToAreaTrigger() [3/4]

static AreaTrigger * Object::ToAreaTrigger ( Object o)
inlinestatic

Definition at line 249 of file Object.h.

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

◆ ToAreaTrigger() [4/4]

static AreaTrigger const * Object::ToAreaTrigger ( Object const *  o)
inlinestatic

Definition at line 250 of file Object.h.

+ Here is the call graph for this function:

◆ ToConversation() [1/4]

Conversation * Object::ToConversation ( )
inline

Definition at line 263 of file Object.h.

◆ ToConversation() [2/4]

Conversation const * Object::ToConversation ( ) const
inline

Definition at line 264 of file Object.h.

◆ ToConversation() [3/4]

static Conversation * Object::ToConversation ( Object o)
inlinestatic

Definition at line 261 of file Object.h.

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

◆ ToConversation() [4/4]

static Conversation const * Object::ToConversation ( Object const *  o)
inlinestatic

Definition at line 262 of file Object.h.

+ Here is the call graph for this function:

◆ ToCorpse() [1/4]

Corpse * Object::ToCorpse ( )
inline

Definition at line 239 of file Object.h.

+ Here is the caller graph for this function:

◆ ToCorpse() [2/4]

Corpse const * Object::ToCorpse ( ) const
inline

Definition at line 240 of file Object.h.

◆ ToCorpse() [3/4]

static Corpse * Object::ToCorpse ( Object o)
inlinestatic

Definition at line 237 of file Object.h.

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

◆ ToCorpse() [4/4]

static Corpse const * Object::ToCorpse ( Object const *  o)
inlinestatic

Definition at line 238 of file Object.h.

+ Here is the call graph for this function:

◆ ToCreature() [1/4]

Creature * Object::ToCreature ( )
inline

Definition at line 221 of file Object.h.

+ Here is the caller graph for this function:

◆ ToCreature() [2/4]

Creature const * Object::ToCreature ( ) const
inline

Definition at line 222 of file Object.h.

◆ ToCreature() [3/4]

static Creature * Object::ToCreature ( Object o)
inlinestatic

Definition at line 219 of file Object.h.

+ Here is the call graph for this function:

◆ ToCreature() [4/4]

static Creature const * Object::ToCreature ( Object const *  o)
inlinestatic

Definition at line 220 of file Object.h.

+ Here is the call graph for this function:

◆ ToDynObject() [1/4]

DynamicObject * Object::ToDynObject ( )
inline

Definition at line 245 of file Object.h.

+ Here is the caller graph for this function:

◆ ToDynObject() [2/4]

DynamicObject const * Object::ToDynObject ( ) const
inline

Definition at line 246 of file Object.h.

◆ ToDynObject() [3/4]

static DynamicObject * Object::ToDynObject ( Object o)
inlinestatic

Definition at line 243 of file Object.h.

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

◆ ToDynObject() [4/4]

static DynamicObject const * Object::ToDynObject ( Object const *  o)
inlinestatic

Definition at line 244 of file Object.h.

+ Here is the call graph for this function:

◆ ToGameObject() [1/4]

GameObject * Object::ToGameObject ( )
inline

Definition at line 233 of file Object.h.

+ Here is the caller graph for this function:

◆ ToGameObject() [2/4]

GameObject const * Object::ToGameObject ( ) const
inline

Definition at line 234 of file Object.h.

◆ ToGameObject() [3/4]

static GameObject * Object::ToGameObject ( Object o)
inlinestatic

Definition at line 231 of file Object.h.

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

◆ ToGameObject() [4/4]

static GameObject const * Object::ToGameObject ( Object const *  o)
inlinestatic

Definition at line 232 of file Object.h.

+ Here is the call graph for this function:

◆ ToItem() [1/4]

Item * Object::ToItem ( )
inline

Definition at line 209 of file Object.h.

+ Here is the caller graph for this function:

◆ ToItem() [2/4]

Item const * Object::ToItem ( ) const
inline

Definition at line 210 of file Object.h.

◆ ToItem() [3/4]

static Item * Object::ToItem ( Object o)
inlinestatic

Definition at line 207 of file Object.h.

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

◆ ToItem() [4/4]

static Item const * Object::ToItem ( Object const *  o)
inlinestatic

Definition at line 208 of file Object.h.

+ Here is the call graph for this function:

◆ ToPlayer() [1/4]

Player * Object::ToPlayer ( )
inline

Definition at line 215 of file Object.h.

+ Here is the caller graph for this function:

◆ ToPlayer() [2/4]

Player const * Object::ToPlayer ( ) const
inline

Definition at line 216 of file Object.h.

◆ ToPlayer() [3/4]

static Player * Object::ToPlayer ( Object o)
inlinestatic

Definition at line 213 of file Object.h.

+ Here is the call graph for this function:

◆ ToPlayer() [4/4]

static Player const * Object::ToPlayer ( Object const *  o)
inlinestatic

Definition at line 214 of file Object.h.

+ Here is the call graph for this function:

◆ ToSceneObject() [1/4]

SceneObject * Object::ToSceneObject ( )
inline

Definition at line 257 of file Object.h.

◆ ToSceneObject() [2/4]

SceneObject const * Object::ToSceneObject ( ) const
inline

Definition at line 258 of file Object.h.

◆ ToSceneObject() [3/4]

static SceneObject * Object::ToSceneObject ( Object o)
inlinestatic

Definition at line 255 of file Object.h.

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

◆ ToSceneObject() [4/4]

static SceneObject const * Object::ToSceneObject ( Object const *  o)
inlinestatic

Definition at line 256 of file Object.h.

+ Here is the call graph for this function:

◆ ToUnit() [1/4]

Unit * Object::ToUnit ( )
inline

Definition at line 227 of file Object.h.

+ Here is the caller graph for this function:

◆ ToUnit() [2/4]

Unit const * Object::ToUnit ( ) const
inline

Definition at line 228 of file Object.h.

◆ ToUnit() [3/4]

static Unit * Object::ToUnit ( Object o)
inlinestatic

Definition at line 225 of file Object.h.

+ Here is the call graph for this function:

◆ ToUnit() [4/4]

static Unit const * Object::ToUnit ( Object const *  o)
inlinestatic

Definition at line 226 of file Object.h.

+ Here is the call graph for this function:

◆ ToWorldObject() [1/4]

WorldObject * Object::ToWorldObject ( )
inline

Definition at line 203 of file Object.h.

◆ ToWorldObject() [2/4]

WorldObject const * Object::ToWorldObject ( ) const
inline

Definition at line 204 of file Object.h.

◆ ToWorldObject() [3/4]

static WorldObject * Object::ToWorldObject ( Object o)
inlinestatic

Definition at line 201 of file Object.h.

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

◆ ToWorldObject() [4/4]

static WorldObject const * Object::ToWorldObject ( Object const *  o)
inlinestatic

Definition at line 202 of file Object.h.

+ Here is the call graph for this function:

Member Data Documentation

◆ m_guid

ObjectGuid Object::m_guid
private

Definition at line 413 of file Object.h.

◆ m_inWorld

bool Object::m_inWorld
private

Definition at line 414 of file Object.h.

◆ m_isDestroyedObject

bool Object::m_isDestroyedObject
private

Definition at line 416 of file Object.h.

◆ m_isNewObject

bool Object::m_isNewObject
private

Definition at line 415 of file Object.h.

◆ m_objectData

UF::UpdateField<UF::ObjectData, 0, TYPEID_OBJECT> Object::m_objectData

Definition at line 267 of file Object.h.

◆ m_objectType

uint16 Object::m_objectType
protected

Definition at line 401 of file Object.h.

◆ m_objectTypeId

TypeID Object::m_objectTypeId
protected

Definition at line 403 of file Object.h.

◆ m_objectUpdated

bool Object::m_objectUpdated
protected

Definition at line 410 of file Object.h.

◆ m_scriptRef

Trinity::unique_trackable_ptr<Object> Object::m_scriptRef
private

Definition at line 419 of file Object.h.

◆ m_updateFlag

CreateObjectBits Object::m_updateFlag
protected

Definition at line 404 of file Object.h.

◆ m_values

UF::UpdateFieldHolder Object::m_values

Definition at line 266 of file Object.h.


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