Class Object [-] [+]

A basic game object (either an Item or a WorldObject).

Objects in MaNGOS/Trinity are stored an a giant block of "values". Subclasses of Object, like WorldObject, extend the block with more data specific to that subclass. Further subclasses, like Player, extend it even further.

A detailed map of all the fields in this data block can be found in the UpdateFields.h file of your emulator (it varies depending on the expansion supported).

The GetValue methods in this class (e.g. Object:GetInt32Value) provide low-level access to the data block. Other methods, like Object:HasFlag and Object:GetScale, merely wrap the GetValue methods and provide a simpler interface.

Inherits all methods from: none

Methods

GetByteValue

Returns the data at the specified index and offset, casted to an unsigned 8-bit integer.

GetEntry

Returns the entry of the Object.

GetFloatValue

Returns the data at the specified index, casted to a single-precision floating point value.

GetGUID

Returns the GUID of the Object.

GetGUIDLow

Returns the low-part of the Object's GUID.

GetInt32Value

Returns the data at the specified index, casted to a signed 32-bit integer.

GetScale

Returns the scale/size of the Object.

GetTypeId

Returns the TypeId of the Object.

GetUInt16Value

Returns the data at the specified index and offset, casted to a signed 16-bit integer.

GetUInt32Value

Returns the data at the specified index, casted to a unsigned 32-bit integer.

GetUInt64Value

Returns the data at the specified index, casted to an unsigned 64-bit integer.

HasFlag

Returns true if the specified flag is set, otherwise false.

IsInWorld

Returns true if the Object has been added to its Map, otherwise false.

RemoveFlag

Removes a flag from the value at the specified index.

SetByteValue

Sets the data at the specified index and offset to the given value, converted to an unsigned 8-bit integer.

SetFlag

Sets the specified flag in the data value at the specified index.

SetFloatValue

Sets the data at the specified index to the given value, converted to a single-precision floating point value.

SetInt16Value

Sets the data at the specified index to the given value, converted to a signed 16-bit integer.

SetInt32Value

Sets the data at the specified index to the given value, converted to a signed 32-bit integer.

SetScale

Sets the Object's scale/size to the given value.

SetUInt16Value

Sets the data at the specified index to the given value, converted to an unsigned 16-bit integer.

SetUInt32Value

Sets the data at the specified index to the given value, converted to an unsigned 32-bit integer.

SetUInt64Value

Sets the data at the specified index to the given value, converted to an unsigned 64-bit integer.

ToCorpse

Attempts to convert the Object to a Corpse.

ToCreature

Attempts to convert the Object to a Creature.

ToGameObject

Attempts to convert the Object to a GameObject.

ToPlayer

Attempts to convert the Object to a Player.

ToUnit

Attempts to convert the Object to a Unit.

UpdateUInt32Value

Sets the data at the specified index to the given value, converted to an unsigned 32-bit integer.

Generated on
© 2010 - 2024 Eluna Lua Engine