Aggregates IGameObjects so they can be sent to the renderer in one batch. At various points in the game, many new game objects are created at once, such as the board being constructed, or seaports being turned on and off. Using an AggregatorObject to pass them all to the view at once allows for much greater function call efficiency then calling the view dozens of times with single objects.
AggregatorObject.h
Aggregates IGameObjects so they can be sent to the renderer in one batch. | |
A std::list container of IGameObject shared_ptrs. | |
Provides an iterator to the start of the IGameObject list. | |
Provides an iterator to the end of the IGameObject list. | |
Adds a new IGameObject shared_ptr to the end of the list. | |
Returns the raw std::list of IGameObjects. | |
The std::list of IGameObject shared_ptrs. |
A std::list container of IGameObject shared_ptrs. | |
Provides an iterator to the start of the IGameObject list. | |
Provides an iterator to the end of the IGameObject list. | |
Adds a new IGameObject shared_ptr to the end of the list. | |
Returns the raw std::list of IGameObjects. |
|
Adds a new IGameObject shared_ptr to the end of the list.
| object | The IGameObject shared_ptr to add. |
| GameObjectList &list() |
Returns the raw std::list of IGameObjects.
A reference to the std::list of IGameObjects.
| GameObjectList::const_iterator objects_begin() |
| GameObjectList::const_iterator objects_end() |
|
| GameObjectList &list() |
| GameObjectList mObjectList |