![]() |
TrinityCore
|
#include <Object.h>
Inheritance diagram for Object:Classes | |
| struct | NoopObjectDeleter |
Static Public Member Functions | |
| static ObjectGuid | GetGUID (Object const *o) |
| static WorldObject * | ToWorldObject (Object *o) |
| static WorldObject const * | ToWorldObject (Object const *o) |
| static Item * | ToItem (Object *o) |
| static Item const * | ToItem (Object const *o) |
| static Player * | ToPlayer (Object *o) |
| static Player const * | ToPlayer (Object const *o) |
| static Creature * | ToCreature (Object *o) |
| static Creature const * | ToCreature (Object const *o) |
| static Unit * | ToUnit (Object *o) |
| static Unit const * | ToUnit (Object const *o) |
| static GameObject * | ToGameObject (Object *o) |
| static GameObject const * | ToGameObject (Object const *o) |
| static Corpse * | ToCorpse (Object *o) |
| static Corpse const * | ToCorpse (Object const *o) |
| static DynamicObject * | ToDynObject (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 | |
| Object & | operator= (Object const &right)=delete |
| Object & | operator= (Object &&right)=delete |
Private Attributes | |
| bool | m_inWorld |
| bool | m_isNewObject |
| PackedGuid | m_PackGUID |
| Trinity::unique_trackable_ptr< Object > | m_scriptRef |
|
virtual |
|
protected |
Definition at line 64 of file Object.cpp.
|
privatedelete |
|
privatedelete |
Definition at line 118 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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:
|
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:
|
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:| 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:
|
protectedpure virtual |
|
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:
|
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:Definition at line 853 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 805 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 737 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| void Object::ApplyModPositiveFloatValue | ( | uint16 | index, |
| float | val, | ||
| bool | apply | ||
| ) |
| 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:Definition at line 728 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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:| 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:
|
protected |
Unit, Player and default here are sending wrong values.
@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:| void Object::BuildMovementUpdateBlock | ( | UpdateData * | data, |
| uint32 | flags = 0 |
||
| ) | const |
| 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:
|
inlinevirtual |
Reimplemented in Item, WorldObject, and Transport.
Definition at line 158 of file Object.h.
Here is the caller graph for this function:
|
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:| 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:| 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:
|
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:| 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:Definition at line 267 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
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:
|
inlinevirtual |
Reimplemented in GameObject, and Unit.
| 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:
|
inline |
|
inlinestatic |
| 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:Definition at line 243 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 274 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 249 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 255 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 498 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
Definition at line 846 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
Definition at line 799 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 880 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in Creature, GameObject, and Item.
Definition at line 156 of file Object.h.
Here is the caller graph for this function:
|
inlinevirtual |
Reimplemented in Creature, GameObject, and Item.
Definition at line 155 of file Object.h.
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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:Definition at line 824 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
|
inline |
Definition at line 775 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 865 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
protectedpure virtual |
|
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:| 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:
|
inlinevirtual |
Reimplemented in GameObject, and Unit.
| 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:Definition at line 810 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 668 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
|
inline |
|
inline |
Definition at line 760 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 858 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| 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:| 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:Definition at line 572 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinevirtual |
| 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:Definition at line 720 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 684 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 585 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:Definition at line 606 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 791 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inlinestatic |
Definition at line 598 of file Object.cpp.
Here is the call graph for this function:
Here is the caller graph for this function:| union { ... } Object |
|
protected |
|
private |
|
private |