#include <thing.h>
Public Methods | |
CThingFactory () | |
~CThingFactory () | |
int | Register (int nTypeID, THING_ALLOCATER pAllocateProc, THING_PERLEVELINIT pPerLevelInitProc=NULL) |
Register a CThing given its type ID and a pointer to an allocate procedure. | |
CThing* | Allocate (int nTypeID) |
Allocate a CThing based on it's type ID. Returns NULL if no such type ID. | |
void | PerLevelInitialize () |
Called per level. Allows thing-specific per-level initialization. This function calls the per-level-init proc for all registered things. | |
Protected Attributes | |
vector<SDescriptor> | m_aDescriptors |
http://www.scorpioncity.com/djgame.html Copyright (C) David Joffe. Generated: 15 Jul 2001 |