#include <GObject.h>
Public Member Functions | |
GObject (void) | |
indicates wheter object is active | |
~GObject (void) | |
standard constructor | |
int | queryProperty (char *, char **) |
standard destructor | |
int | insertProperty (char *, char *) |
query the value of a certain property | |
int | copyPropertyList (GObject *) |
insert a new property along with a corresponding value | |
int | clearPropertyList (void) |
copy all properties and corresponding values to another instance of GObject | |
bool | isEmpty (void) |
clear all properties and values | |
virtual bool | isActive (void) |
check wheter propertylist is empty | |
virtual void | setActive (bool) |
check wheter object is currently active | |
virtual int | Update (double time, double dtime) |
set the objects active state | |
Protected Attributes | |
int | miId |
struct propertylist_t * | PropertyList |
internal id | |
bool | mbActive |
list of generic properties and values |
GObject::GObject | ( | void | ) |
indicates wheter object is active
GObject::~GObject | ( | void | ) |
standard constructor
int GObject::clearPropertyList | ( | void | ) |
copy all properties and corresponding values to another instance of GObject
int GObject::copyPropertyList | ( | GObject * | o | ) |
insert a new property along with a corresponding value
int GObject::insertProperty | ( | char * | key, | |
char * | value | |||
) |
query the value of a certain property
bool GObject::isActive | ( | void | ) | [virtual] |
check wheter propertylist is empty
bool GObject::isEmpty | ( | void | ) |
clear all properties and values
int GObject::queryProperty | ( | char * | key, | |
char ** | value | |||
) |
standard destructor
void GObject::setActive | ( | bool | b | ) | [virtual] |
check wheter object is currently active
Reimplemented in Portal, and SpawnPoint.
int GObject::Update | ( | double | time, | |
double | dtime | |||
) | [virtual] |
set the objects active state
Reimplemented in Creature, GCamera, GGraphicsObject, GHud, GModel, GParticle, GParticleEmitter, Player, and SpawnPoint.
bool GObject::mbActive [protected] |
list of generic properties and values
int GObject::miId [protected] |
struct propertylist_t* GObject::PropertyList [protected] |
internal id