The default implementation of the IGameObjectEngine interface. GameObjectEngine stores all of the IGameObjects provided by the loaded RuleSets internally in a hash map container. The functions required by the IGameObjectEngine interface are implemented by taking the hash map and performing the necessary operations. See the function documentation below for more details.
GameObjectEngine.h
The default implementation of the IGameObjectEngine interface. | |
Stops the GameObjectEngine. | |
Creates a new IGameObject that matches the given name. | |
The hash of IGameObjects available to the game. |
Stops the GameObjectEngine. | |
Creates a new IGameObject that matches the given name. |
| void Stop() |
Stops the GameObjectEngine. Clears the hash of IGameObjects.
|
Creates a new IGameObject that matches the given name. Searches the hash for an entry at the given name. If an object exists there, clones the object and returns the clone. Otherwise, returns an empty object.
| name | The name of the IGameObject to create. |
A newly cloned IGameObject. May be NULL if no object was found to match the name.
The hash of IGameObjects available to the game. |
| RuleSet::GameObjectHash mObjectHash |
The hash of IGameObjects available to the game.
| void Stop() |
|
| RuleSet::GameObjectHash mObjectHash |