TrinityCore
Loading...
Searching...
No Matches
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 GetGUID () const
 
PackedGuid const & GetPackGUID () const
 
uint32 GetEntry () const
 
void SetEntry (uint32 entry)
 
float GetObjectScale () const
 
virtual void SetObjectScale (float scale)
 
virtual uint32 GetDynamicFlags () const
 
bool HasDynamicFlag (uint32 flag) const
 
virtual void SetDynamicFlag (uint32 flag)
 
virtual void RemoveDynamicFlag (uint32 flag)
 
virtual 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 BuildOutOfRangeUpdateBlock (UpdateData *data) const
 
void BuildMovementUpdateBlock (UpdateData *data, uint32 flags=0) const
 
virtual void DestroyForPlayer (Player *target, bool onDeath=false) const
 
int32 GetInt32Value (uint16 index) const
 
uint32 GetUInt32Value (uint16 index) const
 
uint64 GetUInt64Value (uint16 index) const
 
float GetFloatValue (uint16 index) const
 
uint8 GetByteValue (uint16 index, uint8 offset) const
 
uint16 GetUInt16Value (uint16 index, uint8 offset) const
 
ObjectGuid GetGuidValue (uint16 index) const
 
void SetInt32Value (uint16 index, int32 value)
 
void SetUInt32Value (uint16 index, uint32 value)
 
void UpdateUInt32Value (uint16 index, uint32 value)
 
void SetUInt64Value (uint16 index, uint64 value)
 
void SetFloatValue (uint16 index, float value)
 
void SetByteValue (uint16 index, uint8 offset, uint8 value)
 
void SetUInt16Value (uint16 index, uint8 offset, uint16 value)
 
void SetInt16Value (uint16 index, uint8 offset, int16 value)
 
void SetGuidValue (uint16 index, ObjectGuid value)
 
void SetStatFloatValue (uint16 index, float value)
 
void SetStatInt32Value (uint16 index, int32 value)
 
bool AddGuidValue (uint16 index, ObjectGuid value)
 
bool RemoveGuidValue (uint16 index, ObjectGuid value)
 
void ApplyModUInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModInt32Value (uint16 index, int32 val, bool apply)
 
void ApplyModPositiveFloatValue (uint16 index, float val, bool apply)
 
void ApplyModSignedFloatValue (uint16 index, float val, bool apply)
 
void SetFlag (uint16 index, uint32 newFlag)
 
void RemoveFlag (uint16 index, uint32 oldFlag)
 
void ToggleFlag (uint16 index, uint32 flag)
 
bool HasFlag (uint16 index, uint32 flag) const
 
void ApplyModFlag (uint16 index, uint32 flag, bool apply)
 
void SetByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void RemoveByteFlag (uint16 index, uint8 offset, uint8 newFlag)
 
void ToggleByteFlag (uint16 index, uint8 offset, uint8 flag)
 
bool HasByteFlag (uint16 index, uint8 offset, uint8 flag) const
 
void ApplyModByteFlag (uint16 index, uint8 offset, uint8 flag, bool apply)
 
void SetFlag64 (uint16 index, uint64 newFlag)
 
void RemoveFlag64 (uint16 index, uint64 oldFlag)
 
void ToggleFlag64 (uint16 index, uint64 flag)
 
bool HasFlag64 (uint16 index, uint64 flag) const
 
void ApplyModFlag64 (uint16 index, uint64 flag, bool apply)
 
void ClearUpdateMask (bool remove)
 
uint16 GetValuesCount () const
 
virtual bool hasQuest (uint32) const
 
virtual bool hasInvolvedQuest (uint32) const
 
void SetIsNewObject (bool enable)
 
virtual void BuildUpdate (UpdateDataMapType &)
 
void BuildFieldsUpdate (Player *, UpdateDataMapType &) const
 
void SetFieldNotifyFlag (uint16 flag)
 
void RemoveFieldNotifyFlag (uint16 flag)
 
void ForceValuesUpdateAtIndex (uint32)
 
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
 
virtual std::string GetDebugInfo () const
 
Trinity::unique_weak_ptr< ObjectGetWeakPtr () 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)
 

Protected Member Functions

 Object ()
 
void _InitValues ()
 
void _Create (ObjectGuid const &guid)
 
std::string _ConcatFields (uint16 startIndex, uint16 size) const
 
bool _LoadIntoDataField (std::string const &data, uint32 startOffset, uint32 count)
 
uint32 GetUpdateFieldData (Player const *target, uint32 *&flags) const
 
void BuildMovementUpdate (ByteBuffer *data, uint16 flags) const
 
virtual void BuildValuesUpdate (uint8 updatetype, ByteBuffer *data, Player const *target) const
 
virtual bool AddToObjectUpdate ()=0
 
virtual void RemoveFromObjectUpdate ()=0
 
void AddToObjectUpdateIfNeeded ()
 

Protected Attributes

uint16 m_objectType
 
TypeID m_objectTypeId
 
uint16 m_updateFlag
 
union { 
 
   int32 *   m_int32Values 
 
   uint32 *   m_uint32Values 
 
   float *   m_floatValues 
 
};  
 
UpdateMask _changesMask
 
uint16 m_valuesCount
 
uint16 _fieldNotifyFlags
 
bool m_objectUpdated
 

Private Member Functions

bool PrintIndexError (uint32 index, bool set) const
 
 Object (Object const &right)=delete
 
 Object (Object &&right)=delete
 
Objectoperator= (Object const &right)=delete
 
Objectoperator= (Object &&right)=delete
 

Private Attributes

bool m_inWorld
 
bool m_isNewObject
 
PackedGuid m_PackGUID
 
Trinity::unique_trackable_ptr< Objectm_scriptRef
 

Detailed Description

Definition at line 68 of file Object.h.

Constructor & Destructor Documentation

◆ ~Object()

Object::~Object ( )
virtual

Definition at line 79 of file Object.cpp.

+ Here is the call graph for this function:

◆ Object() [1/3]

Object::Object ( )
protected

Definition at line 64 of file Object.cpp.

◆ Object() [2/3]

Object::Object ( Object const &  right)
privatedelete

◆ Object() [3/3]

Object::Object ( Object &&  right)
privatedelete

Member Function Documentation

◆ _ConcatFields()

std::string Object::_ConcatFields ( uint16  startIndex,
uint16  size 
) const
protected

Definition at line 118 of file Object.cpp.

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

◆ _Create()

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

Definition at line 109 of file Object.cpp.

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

◆ _InitValues()

void Object::_InitValues ( )
protected

Definition at line 99 of file Object.cpp.

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

◆ _LoadIntoDataField()

bool Object::_LoadIntoDataField ( std::string const &  data,
uint32  startOffset,
uint32  count 
)
protected

Definition at line 551 of file Object.cpp.

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

◆ AddGuidValue()

bool Object::AddGuidValue ( uint16  index,
ObjectGuid  value 
)

Definition at line 620 of file Object.cpp.

+ 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 473 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 Corpse, Creature, DynamicObject, GameObject, Bag, WorldObject, Pet, Player, and Unit.

Definition at line 126 of file Object.cpp.

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

◆ ApplyModByteFlag()

void Object::ApplyModByteFlag ( uint16  index,
uint8  offset,
uint8  flag,
bool  apply 
)

Definition at line 853 of file Object.cpp.

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

◆ ApplyModFlag()

void Object::ApplyModFlag ( uint16  index,
uint32  flag,
bool  apply 
)

Definition at line 805 of file Object.cpp.

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

◆ ApplyModFlag64()

void Object::ApplyModFlag64 ( uint16  index,
uint64  flag,
bool  apply 
)

Definition at line 886 of file Object.cpp.

+ Here is the call graph for this function:

◆ ApplyModInt32Value()

void Object::ApplyModInt32Value ( uint16  index,
int32  val,
bool  apply 
)

Definition at line 737 of file Object.cpp.

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

◆ ApplyModPositiveFloatValue()

void Object::ApplyModPositiveFloatValue ( uint16  index,
float  val,
bool  apply 
)

Definition at line 751 of file Object.cpp.

+ Here is the call graph for this function:

◆ ApplyModSignedFloatValue()

void Object::ApplyModSignedFloatValue ( uint16  index,
float  val,
bool  apply 
)

Definition at line 744 of file Object.cpp.

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

◆ ApplyModUInt32Value()

void Object::ApplyModUInt32Value ( uint16  index,
int32  val,
bool  apply 
)

Definition at line 728 of file Object.cpp.

+ 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

lower flag1

Reimplemented in Bag, and Player.

Definition at line 170 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 492 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,
uint16  flags 
) const
protected

Unit, Player and default here are sending wrong values.

Todo:
Research the proper formula

@TODO Use IsTransport() to also handle type 11 (TRANSPORT) Currently grid objects are not updated if there are no nearby players, this causes clients to receive different PathProgress resulting in players seeing the object in a different position

Definition at line 287 of file Object.cpp.

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

◆ BuildMovementUpdateBlock()

void Object::BuildMovementUpdateBlock ( UpdateData data,
uint32  flags = 0 
) const

Definition at line 158 of file Object.cpp.

+ Here is the call graph for this function:

◆ BuildOutOfRangeUpdateBlock()

void Object::BuildOutOfRangeUpdateBlock ( UpdateData data) const

Definition at line 226 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 158 of file Object.h.

+ Here is the caller graph for this function:

◆ BuildValuesUpdate()

void Object::BuildValuesUpdate ( uint8  updatetype,
ByteBuffer data,
Player const *  target 
) const
protectedvirtual

Reimplemented in GameObject, and Unit.

Definition at line 447 of file Object.cpp.

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

◆ BuildValuesUpdateBlockForPlayer()

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

Definition at line 214 of file Object.cpp.

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

◆ ClearUpdateMask()

void Object::ClearUpdateMask ( bool  remove)

Definition at line 479 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,
bool  onDeath = false 
) const
virtual

If the following bool is true, the client will call "void CGUnit_C::OnDeath()" for this object. OnDeath() does for eg trigger death animation and interrupts certain spells/missiles/auras/sounds...

Reimplemented in Unit, and Player.

Definition at line 231 of file Object.cpp.

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

◆ ForceValuesUpdateAtIndex()

void Object::ForceValuesUpdateAtIndex ( uint32  i)

Definition at line 1777 of file Object.cpp.

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

◆ GetByteValue()

uint8 Object::GetByteValue ( uint16  index,
uint8  offset 
) const

Definition at line 267 of file Object.cpp.

+ Here is the call graph for this function:
+ 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 899 of file Object.cpp.

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

◆ GetDynamicFlags()

virtual uint32 Object::GetDynamicFlags ( ) const
inlinevirtual

Reimplemented in GameObject, and Unit.

Definition at line 87 of file Object.h.

◆ GetEntry()

uint32 Object::GetEntry ( ) const
inline

Definition at line 81 of file Object.h.

◆ GetFloatValue()

float Object::GetFloatValue ( uint16  index) const

Definition at line 261 of file Object.cpp.

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

◆ GetGUID() [1/2]

ObjectGuid Object::GetGUID ( ) const
inline

Definition at line 79 of file Object.h.

◆ GetGUID() [2/2]

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

Definition at line 78 of file Object.h.

+ Here is the call graph for this function:

◆ GetGuidValue()

ObjectGuid Object::GetGuidValue ( uint16  index) const

Definition at line 281 of file Object.cpp.

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

◆ GetInt32Value()

int32 Object::GetInt32Value ( uint16  index) const

Definition at line 243 of file Object.cpp.

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

◆ GetObjectScale()

float Object::GetObjectScale ( ) const
inline

Definition at line 84 of file Object.h.

+ Here is the caller graph for this function:

◆ GetPackGUID()

PackedGuid const & Object::GetPackGUID ( ) const
inline

Definition at line 80 of file Object.h.

+ Here is the caller graph for this function:

◆ GetTypeId()

TypeID Object::GetTypeId ( ) const
inline

Definition at line 93 of file Object.h.

◆ GetUInt16Value()

uint16 Object::GetUInt16Value ( uint16  index,
uint8  offset 
) const

Definition at line 274 of file Object.cpp.

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

◆ GetUInt32Value()

uint32 Object::GetUInt32Value ( uint16  index) const

Definition at line 249 of file Object.cpp.

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

◆ GetUInt64Value()

uint64 Object::GetUInt64Value ( uint16  index) const

Definition at line 255 of file Object.cpp.

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

◆ GetUpdateFieldData()

uint32 Object::GetUpdateFieldData ( Player const *  target,
uint32 *&  flags 
) const
protected

Definition at line 498 of file Object.cpp.

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

◆ GetValuesCount()

uint16 Object::GetValuesCount ( ) const
inline

Definition at line 153 of file Object.h.

+ Here is the caller graph for this function:

◆ GetWeakPtr()

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

Definition at line 217 of file Object.h.

◆ HasByteFlag()

bool Object::HasByteFlag ( uint16  index,
uint8  offset,
uint8  flag 
) const

Definition at line 846 of file Object.cpp.

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

◆ HasDynamicFlag()

bool Object::HasDynamicFlag ( uint32  flag) const
inline

Definition at line 88 of file Object.h.

+ Here is the caller graph for this function:

◆ HasFlag()

bool Object::HasFlag ( uint16  index,
uint32  flag 
) const

Definition at line 799 of file Object.cpp.

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

◆ HasFlag64()

bool Object::HasFlag64 ( uint16  index,
uint64  flag 
) const

Definition at line 880 of file Object.cpp.

+ Here is the call graph for this function:
+ 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 156 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 155 of file Object.h.

+ Here is the caller graph for this function:

◆ IsCorpse()

bool Object::IsCorpse ( ) const
inline

Definition at line 203 of file Object.h.

+ Here is the caller graph for this function:

◆ IsCreature()

bool Object::IsCreature ( ) const
inline

Definition at line 185 of file Object.h.

+ Here is the caller graph for this function:

◆ IsDynObject()

bool Object::IsDynObject ( ) const
inline

Definition at line 209 of file Object.h.

◆ IsGameObject()

bool Object::IsGameObject ( ) const
inline

Definition at line 197 of file Object.h.

◆ IsInWorld()

bool Object::IsInWorld ( ) const
inline

Definition at line 73 of file Object.h.

+ Here is the caller graph for this function:

◆ IsItem()

bool Object::IsItem ( ) const
inline

Definition at line 173 of file Object.h.

◆ IsPlayer()

bool Object::IsPlayer ( ) const
inline

Definition at line 179 of file Object.h.

+ Here is the caller graph for this function:

◆ isType()

bool Object::isType ( uint16  mask) const
inline

Definition at line 94 of file Object.h.

◆ IsUnit()

bool Object::IsUnit ( ) const
inline

Definition at line 191 of file Object.h.

+ Here is the caller graph for this function:

◆ IsWorldObject()

bool Object::IsWorldObject ( ) const
inline

Definition at line 167 of file Object.h.

◆ operator=() [1/2]

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

◆ operator=() [2/2]

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

◆ PrintIndexError()

bool Object::PrintIndexError ( uint32  index,
bool  set 
) const
private

Definition at line 891 of file Object.cpp.

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

◆ RemoveByteFlag()

void Object::RemoveByteFlag ( uint16  index,
uint8  offset,
uint8  newFlag 
)

Definition at line 824 of file Object.cpp.

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

◆ RemoveDynamicFlag()

virtual void Object::RemoveDynamicFlag ( uint32  flag)
inlinevirtual

Definition at line 90 of file Object.h.

+ Here is the caller graph for this function:

◆ RemoveFieldNotifyFlag()

void Object::RemoveFieldNotifyFlag ( uint16  flag)
inline

Definition at line 162 of file Object.h.

+ Here is the caller graph for this function:

◆ RemoveFlag()

void Object::RemoveFlag ( uint16  index,
uint32  oldFlag 
)

Definition at line 775 of file Object.cpp.

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

◆ RemoveFlag64()

void Object::RemoveFlag64 ( uint16  index,
uint64  oldFlag 
)

Definition at line 865 of file Object.cpp.

+ 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 Corpse, Creature, TempSummon, Minion, DynamicObject, GameObject, Bag, WorldObject, Pet, Player, and Unit.

Definition at line 145 of file Object.cpp.

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

◆ RemoveGuidValue()

bool Object::RemoveGuidValue ( uint16  index,
ObjectGuid  value 
)

Definition at line 637 of file Object.cpp.

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

◆ ReplaceAllDynamicFlags()

virtual void Object::ReplaceAllDynamicFlags ( uint32  flag)
inlinevirtual

Reimplemented in GameObject, and Unit.

Definition at line 91 of file Object.h.

◆ SendUpdateToPlayer()

void Object::SendUpdateToPlayer ( Player player)

Definition at line 200 of file Object.cpp.

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

◆ SetByteFlag()

void Object::SetByteFlag ( uint16  index,
uint8  offset,
uint8  newFlag 
)

Definition at line 810 of file Object.cpp.

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

◆ SetByteValue()

void Object::SetByteValue ( uint16  index,
uint8  offset,
uint8  value 
)

Definition at line 668 of file Object.cpp.

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

◆ SetDynamicFlag()

virtual void Object::SetDynamicFlag ( uint32  flag)
inlinevirtual

Definition at line 89 of file Object.h.

+ Here is the caller graph for this function:

◆ SetEntry()

void Object::SetEntry ( uint32  entry)
inline

Definition at line 82 of file Object.h.

+ Here is the caller graph for this function:

◆ SetFieldNotifyFlag()

void Object::SetFieldNotifyFlag ( uint16  flag)
inline

Definition at line 161 of file Object.h.

+ Here is the caller graph for this function:

◆ SetFlag()

void Object::SetFlag ( uint16  index,
uint32  newFlag 
)

Definition at line 760 of file Object.cpp.

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

◆ SetFlag64()

void Object::SetFlag64 ( uint16  index,
uint64  newFlag 
)

Definition at line 858 of file Object.cpp.

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

◆ SetFloatValue()

void Object::SetFloatValue ( uint16  index,
float  value 
)

Definition at line 655 of file Object.cpp.

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

◆ SetGuidValue()

void Object::SetGuidValue ( uint16  index,
ObjectGuid  value 
)

Definition at line 699 of file Object.cpp.

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

◆ SetInt16Value()

void Object::SetInt16Value ( uint16  index,
uint8  offset,
int16  value 
)
inline

Definition at line 120 of file Object.h.

+ Here is the caller graph for this function:

◆ SetInt32Value()

void Object::SetInt32Value ( uint16  index,
int32  value 
)

Definition at line 572 of file Object.cpp.

+ 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 157 of file Object.h.

◆ SetObjectScale()

virtual void Object::SetObjectScale ( float  scale)
inlinevirtual

Reimplemented in Creature, and Player.

Definition at line 85 of file Object.h.

+ Here is the caller graph for this function:

◆ SetStatFloatValue()

void Object::SetStatFloatValue ( uint16  index,
float  value 
)

Definition at line 712 of file Object.cpp.

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

◆ SetStatInt32Value()

void Object::SetStatInt32Value ( uint16  index,
int32  value 
)

Definition at line 720 of file Object.cpp.

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

◆ SetUInt16Value()

void Object::SetUInt16Value ( uint16  index,
uint8  offset,
uint16  value 
)

Definition at line 684 of file Object.cpp.

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

◆ SetUInt32Value()

void Object::SetUInt32Value ( uint16  index,
uint32  value 
)

Definition at line 585 of file Object.cpp.

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

◆ SetUInt64Value()

void Object::SetUInt64Value ( uint16  index,
uint64  value 
)

Definition at line 606 of file Object.cpp.

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

◆ ToCorpse() [1/4]

Corpse * Object::ToCorpse ( )
inline

Definition at line 206 of file Object.h.

+ Here is the caller graph for this function:

◆ ToCorpse() [2/4]

Corpse const * Object::ToCorpse ( ) const
inline

Definition at line 207 of file Object.h.

◆ ToCorpse() [3/4]

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

Definition at line 204 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 205 of file Object.h.

+ Here is the call graph for this function:

◆ ToCreature() [1/4]

Creature * Object::ToCreature ( )
inline

Definition at line 188 of file Object.h.

+ Here is the caller graph for this function:

◆ ToCreature() [2/4]

Creature const * Object::ToCreature ( ) const
inline

Definition at line 189 of file Object.h.

◆ ToCreature() [3/4]

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

Definition at line 186 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 187 of file Object.h.

+ Here is the call graph for this function:

◆ ToDynObject() [1/4]

DynamicObject * Object::ToDynObject ( )
inline

Definition at line 212 of file Object.h.

+ Here is the caller graph for this function:

◆ ToDynObject() [2/4]

DynamicObject const * Object::ToDynObject ( ) const
inline

Definition at line 213 of file Object.h.

◆ ToDynObject() [3/4]

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

Definition at line 210 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 211 of file Object.h.

+ Here is the call graph for this function:

◆ ToGameObject() [1/4]

GameObject * Object::ToGameObject ( )
inline

Definition at line 200 of file Object.h.

+ Here is the caller graph for this function:

◆ ToGameObject() [2/4]

GameObject const * Object::ToGameObject ( ) const
inline

Definition at line 201 of file Object.h.

◆ ToGameObject() [3/4]

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

Definition at line 198 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 199 of file Object.h.

+ Here is the call graph for this function:

◆ ToggleByteFlag()

void Object::ToggleByteFlag ( uint16  index,
uint8  offset,
uint8  flag 
)

Definition at line 838 of file Object.cpp.

+ Here is the call graph for this function:

◆ ToggleFlag()

void Object::ToggleFlag ( uint16  index,
uint32  flag 
)

Definition at line 791 of file Object.cpp.

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

◆ ToggleFlag64()

void Object::ToggleFlag64 ( uint16  index,
uint64  flag 
)

Definition at line 872 of file Object.cpp.

+ Here is the call graph for this function:

◆ ToItem() [1/4]

Item * Object::ToItem ( )
inline

Definition at line 176 of file Object.h.

+ Here is the caller graph for this function:

◆ ToItem() [2/4]

Item const * Object::ToItem ( ) const
inline

Definition at line 177 of file Object.h.

◆ ToItem() [3/4]

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

Definition at line 174 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 175 of file Object.h.

+ Here is the call graph for this function:

◆ ToPlayer() [1/4]

Player * Object::ToPlayer ( )
inline

Definition at line 182 of file Object.h.

+ Here is the caller graph for this function:

◆ ToPlayer() [2/4]

Player const * Object::ToPlayer ( ) const
inline

Definition at line 183 of file Object.h.

◆ ToPlayer() [3/4]

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

Definition at line 180 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 181 of file Object.h.

+ Here is the call graph for this function:

◆ ToUnit() [1/4]

Unit * Object::ToUnit ( )
inline

Definition at line 194 of file Object.h.

+ Here is the caller graph for this function:

◆ ToUnit() [2/4]

Unit const * Object::ToUnit ( ) const
inline

Definition at line 195 of file Object.h.

◆ ToUnit() [3/4]

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

Definition at line 192 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 193 of file Object.h.

+ Here is the call graph for this function:

◆ ToWorldObject() [1/4]

WorldObject * Object::ToWorldObject ( )
inline

Definition at line 170 of file Object.h.

+ Here is the caller graph for this function:

◆ ToWorldObject() [2/4]

WorldObject const * Object::ToWorldObject ( ) const
inline

Definition at line 171 of file Object.h.

◆ ToWorldObject() [3/4]

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

Definition at line 168 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 169 of file Object.h.

+ Here is the call graph for this function:

◆ UpdateUInt32Value()

void Object::UpdateUInt32Value ( uint16  index,
uint32  value 
)

Definition at line 598 of file Object.cpp.

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

Member Data Documentation

◆ [union]

union { ... } Object

◆ _changesMask

UpdateMask Object::_changesMask
protected

Definition at line 244 of file Object.h.

◆ _fieldNotifyFlags

uint16 Object::_fieldNotifyFlags
protected

Definition at line 248 of file Object.h.

◆ m_floatValues

float* Object::m_floatValues

Definition at line 241 of file Object.h.

◆ m_int32Values

int32* Object::m_int32Values

Definition at line 239 of file Object.h.

◆ m_inWorld

bool Object::m_inWorld
private

Definition at line 257 of file Object.h.

◆ m_isNewObject

bool Object::m_isNewObject
private

Definition at line 258 of file Object.h.

◆ m_objectType

uint16 Object::m_objectType
protected

Definition at line 232 of file Object.h.

◆ m_objectTypeId

TypeID Object::m_objectTypeId
protected

Definition at line 234 of file Object.h.

◆ m_objectUpdated

bool Object::m_objectUpdated
protected

Definition at line 254 of file Object.h.

◆ m_PackGUID

PackedGuid Object::m_PackGUID
private

Definition at line 260 of file Object.h.

◆ m_scriptRef

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

Definition at line 263 of file Object.h.

◆ m_uint32Values

uint32* Object::m_uint32Values

Definition at line 240 of file Object.h.

◆ m_updateFlag

uint16 Object::m_updateFlag
protected

Definition at line 235 of file Object.h.

◆ m_valuesCount

uint16 Object::m_valuesCount
protected

Definition at line 246 of file Object.h.


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