Manage the creation of entities and their access.
More...
#include <IEntityManager.hpp>
Manage the creation of entities and their access.
◆ ~IEntityManager()
| virtual Arcade::ECS::IEntityManager::~IEntityManager |
( |
| ) |
|
|
virtualdefault |
◆ createEntity()
| virtual IEntity& Arcade::ECS::IEntityManager::createEntity |
( |
const std::string & |
id | ) |
|
|
pure virtual |
Add an entity to the manager.
- Parameters
-
| id | The id of the entity to create |
- Returns
- The entity created
◆ getComponentsByComponentType()
| virtual std::unique_ptr<std::vector<std::shared_ptr<IComponent> > > Arcade::ECS::IEntityManager::getComponentsByComponentType |
( |
CompType |
comp | ) |
const |
|
pure virtual |
Get all components created by this manager of type CompType.
- Parameters
-
| comp | The component type to check in each entity |
- Returns
- The vector
◆ getEntities()
| virtual const std::vector<std::shared_ptr<IEntity> >& Arcade::ECS::IEntityManager::getEntities |
( |
| ) |
const |
|
pure virtual |
Get all entities created by this manager.
- Returns
- A vector of all entities created by this manager
◆ getEntitiesByComponentType()
| virtual std::unique_ptr<std::vector<std::shared_ptr<IEntity> > > Arcade::ECS::IEntityManager::getEntitiesByComponentType |
( |
CompType |
comp | ) |
const |
|
pure virtual |
Get all entities created by this manager that have at least one component of type CompType.
- Parameters
-
| comp | The component type to check in each entity |
- Returns
- The vector
◆ getEntitiesById()
| virtual std::shared_ptr<IEntity> Arcade::ECS::IEntityManager::getEntitiesById |
( |
const std::string & |
id | ) |
const |
|
pure virtual |
Get the entity created by this manager that have the requested ID.
- Parameters
-
- Returns
- The entity
◆ removeAllEntities()
| virtual void Arcade::ECS::IEntityManager::removeAllEntities |
( |
| ) |
|
|
pure virtual |
Remove all entities from the manager.
◆ removeEntity()
| virtual void Arcade::ECS::IEntityManager::removeEntity |
( |
const std::string & |
id | ) |
|
|
pure virtual |
Remove an entity from the manager.
- Parameters
-
| id | The entity id to remove |
The documentation for this class was generated from the following file: