The basic Entity class for CORGI. It contains an array of index values, which are used by Components for tracking their data associated with an Entity. It also contains a boolean for tracking if this Entity has been marked for deletion.
More...
#include <entity.h>
The basic Entity class for CORGI. It contains an array of index values, which are used by Components for tracking their data associated with an Entity. It also contains a boolean for tracking if this Entity has been marked for deletion.
bool corgi::Entity::marked_for_deletion |
( |
| ) |
const |
|
inline |
An accessor function to check if this Entity has been marked for deletion.
- Returns
- Returns a bool indicating whether or not this Entity is marked for deletion.
Sets an entity's unique ID.
Normally only used internally by the entitymanager for bookkeeping.
void corgi::Entity::set_marked_for_deletion |
( |
bool |
marked_for_deletion | ) |
|
|
inline |
A mutator function to set an Entity as marked for deletion.
- Parameters
-
[in] | marked_for_deletion | A bool corresponding to whether the Entity should be marked for deletion or not. |
The documentation for this class was generated from the following file: