#include <string>
#include <map>
Go to the source code of this file.
Classes | |
class | SimpleWorldElementCreator< E > |
Templated implementation. More... | |
class | WorldElementCreator |
Functor interface for creating world elements. More... | |
class | WorldElementFactory |
Factory class for creating WorldElements. More... | |
Defines | |
#define | REGISTER_CREATOR(STRINGNAME, CLASSNAME) getWorldElementFactory().registerCreator( STRINGNAME, new SimpleWorldElementCreator<CLASSNAME>() ); |
Convenience macro for registering a new class. | |
Functions | |
WorldElementFactory & | getWorldElementFactory () |
Returns the world element factory singleton. |
#define REGISTER_CREATOR | ( | STRINGNAME, | |||
CLASSNAME | ) | getWorldElementFactory().registerCreator( STRINGNAME, new SimpleWorldElementCreator<CLASSNAME>() ); |
Convenience macro for registering a new class.
Definition at line 89 of file worldElementFactory.h.
WorldElementFactory& getWorldElementFactory | ( | ) | [inline] |
Returns the world element factory singleton.
Definition at line 82 of file worldElementFactory.h.