#include <Manager.hpp>
◆ Manager()
The constructor for the Manager class creates a new EntityManager, ComponentManager, and SystemManager
◆ ~Manager()
◆ addComponent()
Add a component to an entity.
- Parameters
-
e | The entity to add the component to |
c | The component type to add to the entity. |
◆ addSystem()
template<typename System >
System& Manager::addSystem |
( |
| ) |
|
|
inline |
◆ createEntity()
It creates an entity and returns it
- Parameters
-
type | The type of entity you want to create. |
- Returns
- An entity.
◆ destroyEntity()
This function destroys an entity.
- Parameters
-
entity | The entity to destroy. |
◆ getComponent()
Get a component from the component manager.
◆ getComponentList()
It returns a map of all the components of a given entity.
◆ getEntities()
It returns a reference to the deque of entities
- Returns
- A deque of entities.
◆ getEntityById()
It returns a reference to a deque of entities that have the given id
- Returns
- A deque of entities with the given id.
◆ getEntityByType()
It returns a reference to a deque of entities that have the specified type
- Returns
- A deque of entities.
◆ getEntityList()
Get a list of entities that have a specific component.
◆ getSystem()
template<class System >
System& Manager::getSystem |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: