The interface of the IGameObject engine. The IGameObjectEngine maintans a database of IGameObjects that have been provided by the loaded RuleSets. The purpose of keeping track of all of the IGameObjects is related entirely to serialization of the Game and PlayerGame data. Since IGameObjects are entirely pluggable, it would be impossible to know which objects to create and load when reading in data from the disk unless there was some method of creating the right object at the right time. The IGameObjectEngine provides a way by storing IGameObjects with an associated key. When an IGameObject needs to be created from the disk, the serialization function can call the CreateGameObject function to request the right IGameObject for the key that it requires.
IGameObjectEngine.h
The interface of the IGameObject engine. | |
Creates a new IGameObject that matches the given name. | |
The IGameObjectEngine destructor. |
Creates a new IGameObject that matches the given name. |
|
Creates a new IGameObject that matches the given name.
| name | The name of the IGameObject to create. |
A newly cloned IGameObject. May be NULL if no object was found to match the name.
|
| virtual ~IGameObjectEngine()=0 |