|
VEGO-Engine
0.1
|
Is responsible for managing all entities. More...
#include <Manager.h>
Public Member Functions | |
| void | update (uint_fast16_t diffTime) |
| void | refresh () |
| std::vector< Entity * > | getAll () |
| Returns all entities currently loaded in the game. | |
| Entity & | addEntity () |
| Add a new entity to the game. | |
| 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
| Entity & Manager::addEntity | ( | ) |
Add a new entity to the game.
Creates and returns a new, empty entity
| std::vector< Entity * > Manager::getAll | ( | ) |
Returns all entities currently loaded in the game.
|
inline |
| void Manager::refresh | ( | ) |
Disables all functionality of entities marked for destruction
| void Manager::update | ( | uint_fast16_t | diffTime | ) |