|
VEGO-Engine
0.1
|
Is responsible for managing all entities. More...
#include <Manager.h>
Public Member Functions | |
| Manager (GameInternal *game) | |
| void | update () |
| void | refresh () |
| void | addToGroup (Entity *mEntity, Group mGroup) |
| std::vector< Entity * > & | getGroup (Group mGroup) |
| std::vector< Entity * > | getAll () |
| Entity & | addEntity () |
| Creates and returns a new, empty entity. | |
| GameInternal * | getGame () |
Is responsible for managing all entities.
The manager class handles update and draw calls collectively for all entities, and provides functionality to get all or a subset of all entities
| std::vector< Entity * > Manager::getAll | ( | ) |
| std::vector< Entity * > & Manager::getGroup | ( | Group | mGroup | ) |
| void Manager::refresh | ( | ) |
Disables all functionality of entities marked for destruction
| void Manager::update | ( | ) |