Public Member Functions | |
| EntityManager () | |
| Constructor. | |
| ~EntityManager () | |
| Deconstructor. | |
| void | init () |
| Initialises the EntityManager. | |
| void | clear () |
| Clears the EntityManager. | |
| void | refAdd () |
| Increases the reference counter. | |
| void | refRelease () |
| Decreases the reference counter. | |
| bool | addEntity (Entity *entity) |
| Adds the given Entity to the EntityManager. | |
| Entity * | createEntity (const std::string &name, Entity *parent=NULL) |
| Creates (and adds) an Entity with the given name. | |
| Entity * | getEntity (const u32 id) |
| Gets the Entity with the given ID. | |
| Entity * | getEntity (const std::string &name) |
| Gets the Entity with the given name. | |
| void | removeAllEntities () |
| Removes all entities from the EntityManager. | |
| bool | removeEntity (Entity *entity) |
| Removes the given Entity. | |
| bool | removeEntity (const u32 id) |
| Removes the given Entity with the given ID. | |
| bool | removeEntity (const std::string &name) |
| Removes the given Entity with the given name. | |
Definition at line 30 of file EntityManager.h.
| EntityManager::EntityManager | ( | ) |
| EntityManager::~EntityManager | ( | ) |
| bool EntityManager::addEntity | ( | Entity * | entity | ) |
Adds the given Entity to the EntityManager.
| entity | Pointer to the Entity to add. |
Definition at line 60 of file EntityManager.cpp.
| void EntityManager::clear | ( | ) |
Creates (and adds) an Entity with the given name.
| name | Name of the Entity. | |
| parent | Parent of the entity that is going to be created. |
Definition at line 77 of file EntityManager.cpp.
| Entity * EntityManager::getEntity | ( | const std::string & | name | ) |
Gets the Entity with the given name.
Definition at line 103 of file EntityManager.cpp.
| Entity * EntityManager::getEntity | ( | const u32 | id | ) |
Gets the Entity with the given ID.
Definition at line 91 of file EntityManager.cpp.
| void EntityManager::init | ( | ) |
| void EntityManager::refAdd | ( | ) |
Increases the reference counter.
Definition at line 48 of file EntityManager.cpp.
| void EntityManager::refRelease | ( | ) |
Decreases the reference counter.
Definition at line 54 of file EntityManager.cpp.
| void EntityManager::removeAllEntities | ( | ) |
| bool EntityManager::removeEntity | ( | const std::string & | name | ) |
Removes the given Entity with the given name.
| name | Name of the Entity to remove. |
Definition at line 172 of file EntityManager.cpp.
| bool EntityManager::removeEntity | ( | const u32 | id | ) |
Removes the given Entity with the given ID.
| id | ID of the Entity to remove. |
Definition at line 150 of file EntityManager.cpp.
| bool EntityManager::removeEntity | ( | Entity * | entity | ) |
Removes the given Entity.
| entity | Pointer to the Entity to remove. |
Definition at line 124 of file EntityManager.cpp.
1.5.8