|
ModelFactory Class ReferenceThe model factory; the class is just for namespacing purposes.
More...
#include <ModelFactory.hh>
List of all members.
|
Static Public Member Functions |
static void | RegisterAll () |
| Register all known models.
|
static void | RegisterModel (const char *type, const char *classname, ModelFactoryFn factoryfn) |
| Register a model class (called by model registration function).
|
static Model * | NewModel (World *world, const char *classname) |
| Create a new instance of a model. Used by the world when reading the world file.
|
Classes |
class | ModelClass |
Detailed Description
The model factory; the class is just for namespacing purposes.
Member Function Documentation
void ModelFactory::RegisterAll |
( |
|
) |
[static] |
|
|
Register all known models.
|
void ModelFactory::RegisterModel |
( |
const char * |
type, |
|
|
const char * |
classname, |
|
|
ModelFactoryFn |
factoryfn |
|
) |
[static] |
|
|
Register a model class (called by model registration function).
|
Model * ModelFactory::NewModel |
( |
World * |
world, |
|
|
const char * |
classname |
|
) |
[static] |
|
|
Create a new instance of a model. Used by the world when reading the world file.
|
The documentation for this class was generated from the following files:
|