EntityManager class that stores all entities within the game.
More...
#include <EntityManager.hpp>
EntityManager class that stores all entities within the game.
◆ EntityManager()
EntityManager::EntityManager |
( |
| ) |
|
|
default |
◆ AddEntity()
Add an entity to the Class.
Adds an entity to the appropriate vector of Entity Types.
- Parameters
-
name | An enum of type entityType |
entity | A shared pointer to GameEntity Object |
entityType | name |
std::shared_ptr<GameEntity> | entity |
◆ ClearVector()
void EntityManager::ClearVector |
( |
entityType |
name | ) |
|
Removing a particular entity from the Class.
Clears the vector of items with pass entityType.
- Parameters
-
name | An enum of type entityType |
entityType | name |
◆ GetEntityVector()
Returns the EntityVector of the class that stores the entities.
Returns the vector of the passed entityType. If it does not exist, it returns an empty vectors.
- Parameters
-
name | An enum of type entityType |
- Returns
- Entity Vector
- Parameters
-
- Returns
- std::vector<std::shared_ptr<GameEntity>>
◆ gameEntities
The documentation for this class was generated from the following files: