Yet Another Game Engine
|
Manages entities in a space. More...
#include <entitymanager.h>
Public Member Functions | |
EntityManager ()=default | |
Default instance of an EntityManager. More... | |
EntityManager (Space *space) | |
Creates an instance of the entity manager, which refers back to the space it was created in and belongs to. More... | |
EntityManager (Space *space, std::size_t n) | |
Creates an instance of the entitiy manager with an initial size. More... | |
unsigned | createEntity () |
Creates an Entity and returns the handle to the entity, which can then be used by the user to do operations on it. More... | |
Entity | createEntityInstance () |
Creates an Entity and returns it. More... | |
Manages entities in a space.
|
default |
Default instance of an EntityManager.
yage::EntityManager::EntityManager | ( | Space * | space | ) |
Creates an instance of the entity manager, which refers back to the space it was created in and belongs to.
space | Current space that the EntityManager belongs to. |
yage::EntityManager::EntityManager | ( | Space * | space, |
std::size_t | n | ||
) |
Creates an instance of the entitiy manager with an initial size.
space | Current space that the EntityManager belongs to. |
n | Initial size of the EntityManager. |
unsigned yage::EntityManager::createEntity | ( | ) |
Creates an Entity and returns the handle to the entity, which can then be used by the user to do operations on it.
Entity yage::EntityManager::createEntityInstance | ( | ) |
Creates an Entity and returns it.