The standard implementation of the IDrawObjectEngine interface. DrawObjectEngine stores all of the IDrawObjects provided by the loaded RuleSets internally in a std::list container. The functions required by the IDrawObjectEngine interface are implemented by taking the std::list and performing the necessary operations. See the function documentation below for more details.
DrawObjectEngine.h
The standard implementation of the IDrawObjectEngine interface. | |
Stops the DrawObjectEngine. | |
Creates a new IDrawObject capable of drawing the given IGameObject. | |
Lets all IDrawObjects obtain needed resources. | |
Lets all IDrawObjects release acquired resources. | |
The std::list of IDrawObjects available to the game. |
Stops the DrawObjectEngine. | |
Creates a new IDrawObject capable of drawing the given IGameObject. | |
Lets all IDrawObjects obtain needed resources. | |
Lets all IDrawObjects release acquired resources. |
| void Stop() |
Stops the DrawObjectEngine. Clears the std::list of IDrawObjects.
|
Creates a new IDrawObject capable of drawing the given IGameObject. Searches the std::list of IDrawObjects, calling CanBuild on each with the given IGameObject until an IDrawObject is found that can build it. If one is found, the new IDrawObject is created using the prototype’s Clone function and then returned. If a handler can’t be found, an empty object is returned.
| object | The IGameObject for which an IDrawObject is needed. |
A newly cloned IDrawObject that can draw the IGameObject. May be NULL if no capable IDrawObject was found.
| virtual void ObtainAll() |
Lets all IDrawObjects obtain needed resources. Calls the Obtain function on each IDrawObject in the std::list.
| virtual void ReleaseAll() |
Lets all IDrawObjects release acquired resources. Calls the Release function on each IDrawObject in the std::list.
The std::list of IDrawObjects available to the game. |
| DrawObjectPtrList mObjectList |
The std::list of IDrawObjects available to the game.
| void Stop() |
|
| virtual void ObtainAll() |
| virtual void ReleaseAll() |
| DrawObjectPtrList mObjectList |
|
| virtual IGameObject *Clone() |