Used to organize entities into named groups.
More...
#include <GroupManager.h>
Used to organize entities into named groups.
Atlas::GroupManager::GroupManager |
( |
| ) |
|
void Atlas::GroupManager::addToGroup |
( |
const std::string & |
name, |
|
|
const Entity & |
entity |
|
) |
| |
Adds an Entity to a group.
- Parameters
-
name | - the name of the group |
entity | - the Entity to be added |
std::vector<std::string> Atlas::GroupManager::getEntityGroups |
( |
const Entity & |
entity | ) |
const |
Retrieves all groups that an Entity is in.
- Parameters
-
entity | - the Entity of interest. |
- Returns
- container of named groups that the Entity is in.
std::vector<Entity::ID> Atlas::GroupManager::getGroup |
( |
const std::string & |
name | ) |
|
Retrieves all Entities from a group.
- Parameters
-
name | - the name of the group |
- Returns
- container of Entity::IDs that are in the group
void Atlas::GroupManager::removeFromAllGroups |
( |
const Entity & |
entity | ) |
|
Removes an Entity from all groups that it is in.
- Parameters
-
entity | - the Entity to be removed |
void Atlas::GroupManager::removeFromGroup |
( |
const std::string & |
name, |
|
|
const Entity & |
entity, |
|
|
bool |
fullErase = false |
|
) |
| |
Removes an Entity from a specific group.
- Parameters
-
name | - the name of the group |
entity | - the Entity to be removed |
fullErase | - only true if Entity is being removed from all groups |
void Atlas::GroupManager::toString |
( |
| ) |
|
Prints each group with the ID's of the Entities that are included.
The documentation for this class was generated from the following file:
- D:/Users/Andrew/PerforceWorkspace/Drew-DeskPC/Atlas/EntityComponentTest/include/GroupManager.h