D:/Projects/dark-oberon.svn/game/sources/kernel/object_cmds.cpp File Reference


Detailed Description

Author:
RadonLabs GmbH, Peter Knut
Date:
2005
Interface for script commands.

Version:
1.0 - Initial.

#include "kernel/system.h"
#include "kernel/object.h"
#include "kernel/kernelserver.h"

Functions

static void s_GetClassName (void *o, Cmd *cmd)
static void s_GetClasses (void *o, Cmd *cmd)
static void s_IsA (void *o, Cmd *cmd)
static void s_IsInstanceOf (void *o, Cmd *cmd)
static void s_GetCommands (void *o, Cmd *cmd)
static void s_GetInstanceSize (void *o, Cmd *cmd)
void s_InitObject_cmds (Class *cl)


Function Documentation

static void s_GetClasses ( void *  o,
Cmd cmd 
) [static]

Returns the list of classes which the object is an instance of.

static void s_GetClassName ( void *  o,
Cmd cmd 
) [static]

Returns name of class which the object is an instance of.

static void s_GetCommands ( void *  o,
Cmd cmd 
) [static]

Returns a list of all script command prototypes the object accepts.

static void s_GetInstanceSize ( void *  o,
Cmd cmd 
) [static]

Gets byte size of this object. This may or may not accurate, depending on whether the object uses external allocated memory, and if the object's class takes this into account.

void s_InitObject_cmds ( Class cl  ) 

static void s_IsA ( void *  o,
Cmd cmd 
) [static]

Checkes whether the object is instantiated or derived from the class given by its name.

static void s_IsInstanceOf ( void *  o,
Cmd cmd 
) [static]

Checkes whether the object is an instance of the class given by its name.


Generated on Sat Oct 20 14:47:30 2007 for Dark Oberon by  doxygen 1.5.3