Go to the source code of this file.
#define ABSTRACT_DECLARATION |
( |
|
nameofsuperclass, |
|
|
|
nameofclass |
|
) |
| |
Value:idTypeInfo nameofclass::Type( #nameofclass, #nameofsuperclass, \
(
idEventFunc<idClass> * )nameofclass::eventCallbacks, nameofclass::CreateInstance, (
void (
idClass::* )(
void ) )&nameofclass::Spawn, \
idClass *nameofclass::CreateInstance(
void ) {
\
gameLocal.
Error(
"Cannot instanciate abstract class %s.", #nameofclass ); \
} \
idTypeInfo *nameofclass::GetType( void ) const { \
return &( nameofclass::Type ); \
} \
idEventFunc<nameofclass> nameofclass::eventCallbacks[] = {
void void void void void Error(const char *fmt,...) const id_attribute((format(printf
Definition at line 156 of file Class.h.
#define ABSTRACT_PROTOTYPE |
( |
|
nameofclass | ) |
|
Value:public: \
static
idClass *CreateInstance(
void ); \
Definition at line 138 of file Class.h.
#define CLASS_DECLARATION |
( |
|
nameofsuperclass, |
|
|
|
nameofclass |
|
) |
| |
Value:idTypeInfo nameofclass::Type( #nameofclass, #nameofsuperclass, \
(
idEventFunc<idClass> * )nameofclass::eventCallbacks, nameofclass::CreateInstance, (
void (
idClass::* )(
void ) )&nameofclass::Spawn, \
idClass *nameofclass::CreateInstance( void ) { \
try { \
nameofclass *ptr = new nameofclass; \
ptr->FindUninitializedMemory(); \
return ptr; \
} \
} \
} \
idTypeInfo *nameofclass::GetType( void ) const { \
return &( nameofclass::Type ); \
} \
idEventFunc<nameofclass> nameofclass::eventCallbacks[] = {
Definition at line 110 of file Class.h.
#define CLASS_PROTOTYPE |
( |
|
nameofclass | ) |
|
Value:public: \
static
idClass *CreateInstance(
void ); \
Definition at line 92 of file Class.h.
#define EVENT |
( |
|
event, |
|
|
|
function |
|
) |
| { &( event ), ( void ( idClass::* )( void ) )( &function ) }, |
typedef void( idClass::* classSpawnFunc_t)(void) |
typedef void( idClass::* eventCallback_t)(void) |