dao::CGameObject
class
Any game object; the base of every object class in this file.
The As* functions cast it to a more specific class.
Declared in dao/Objects.h.
Functions
AsArea()
CCArea * AsArea()
Returns the object as an area, or null if it is not one.
AsCreature()
CCCreature * AsCreature()
Returns the object as a creature, or null if it is not one.
AsEffectsHolder()
SEffectsHolder * AsEffectsHolder()
Returns the object’s effects holder, which keeps the effects on it, or null if it has none.
The holder’s layout is not yet known.
AsItem()
CCItem * AsItem()
Returns the object as an item, or null if it is not one.
AsItemPossessor()
ItemPossessor * AsItemPossessor()
Returns the object’s inventory, or null if it has none. Its layout is not yet known.
AsModule()
CCModule * AsModule()
Returns the object as the module, or null if it is not one.
AsObject()
CCObject * AsObject()
Returns the object as a CCObject, or null if it is not one.
AsPlaceable()
CCPlaceable * AsPlaceable()
Returns the object as a placeable, or null if it is not one.
AsWayPoint()
CCWayPoint * AsWayPoint()
Returns the object as a waypoint, or null if it is not one.
Cast()
void * Cast(generated::CastSlot slot)
Casts the object to any class the engine can cast to.
Use it for classes that have no As* function here.
Returns the object as that class, or null if it is not one
Id()
ObjectId Id() const
Returns the object’s id, the number CClientExoApp’s lookups take.
Type()
core::ObjectType Type() const
Returns the object’s type (dao/core/ObjectType.h).
The engine’s typed lookups check it before they cast.
Fields
| Field | Type | |
|---|---|---|
kId |
std::size_t = 0x10 |
offset of the id |
kType |
std::size_t = 0x14 |
offset of the type byte |