Object Class Reference

#include <Object.h>

Inheritance diagram for Object:
ActorFactory Affine AnimationCoordinatorFactory BgmapTextureManager CharSetManager ClockManager CollisionTester Error HardwareManager ListenerObject Math Mem MemoryPool MessageDispatcher ObjectTextureManager Optical Optics ParamTableManager PixelSize PixelVector Rotation SRAMManager Scale Singleton Size SoundTrack StopwatchManager Telegram TimerManager Utilities VSUManager Vector2D Vector3D VirtualCircularList VirtualList VirtualNode

# Public Member Functions

void constructor ()
 Class' constructor.
const void * getVTable ()
bool mutateTo (const void *targetClass)

# Static Public Member Functions

static Object getCast (void *object, ClassPointer targetClassGetClassMethod, ClassPointer baseClassGetClassMethod)

# Protected Attributes

void * vTable
 Pointer to the class's virtual table.

# Detailed Description

Class Object

Inherits from Object

Serves as the base class for all other classes in the engine.

Definition at line 658 of file Object.h.

# Member Function Documentation

# constructor()

void Object::constructor ( )

Class' constructor.

Definition at line 200 of file Object.c.

# getCast()

static Object Object::getCast ( void * object,
ClassPointer targetClassGetClassMethod,
ClassPointer baseClassGetClassMethod )
static

Cast an object at runtime to a give class.

Parameters
objectObject to cast
targetClassGetClassMethodpointer to the target class' identifier method
baseClassGetClassMethodpointer to the object's base class' identifier method
Returns
Pointer to the object if the cast succeeds, NULL otherwhise.

Definition at line 27 of file Object.c.

# getVTable()

const void * Object::getVTable ( )

Retrieve the object's virtual table pointer

Returns
Pointer to the object's virtual table pointer

Definition at line 219 of file Object.c.

# mutateTo()

bool Object::mutateTo ( const void * targetClass)

Converts the object into an instance of the target class if object's class is in the hierarchy of the target class.

Parameters
targetClasspointer to the target class' virtual table
Returns
True if successful

Definition at line 226 of file Object.c.

# Member Data Documentation

# vTable

void* Object::vTable
protected

Pointer to the class's virtual table.

Definition at line 665 of file Object.h.


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