The Joe Engine
Joe's engine programming playground
|
The Entity Manager class. More...
#include <EntityManager.h>
Public Member Functions | |
JEEntityManager () | |
Constructor. More... | |
~JEEntityManager ()=default | |
Destructor (default). More... | |
Entity | SpawnEntity () |
Spawn entity. More... | |
void | DestroyEntity (Entity e) |
Destroy entity. More... | |
uint32_t | NumEntities () |
Get current number of entities. More... | |
The Entity Manager class.
Class that manages the list of active entities in the scene. Currently, this class is not actually vital.
|
inline |
Constructor.
Initializes counter to zero.
|
default |
Destructor (default).
void JoeEngine::JEEntityManager::DestroyEntity | ( | Entity | e | ) |
Destroy entity.
Removes a specific entity from the list.
|
inline |
Get current number of entities.
Entity JoeEngine::JEEntityManager::SpawnEntity | ( | ) |
Spawn entity.
Adds an entity to the list and increments the id counter.