Meta entity. Used as a proxy to the EntityManager.
More...
Meta entity. Used as a proxy to the EntityManager.
PZ::MetaEntity::MetaEntity |
( |
| ) |
|
|
inline |
Constructs an invalid object, to be used as a null object.
PZ::MetaEntity::~MetaEntity |
( |
| ) |
|
|
inline |
template<class T >
T* PZ::MetaEntity::AddComponent |
( |
| ) |
|
|
inline |
Adds a component.
- Returns
- null if it fails, else the component.
Adds a component.
- Parameters
-
family | The family of the component. |
- Returns
- null if it fails, else.
bool PZ::MetaEntity::Destroy |
( |
| ) |
|
|
inline |
Destroys this entity.
- Returns
- true if it succeeds, false if it fails.
void PZ::MetaEntity::GetAllComponents |
( |
ComponentList & |
list | ) |
const |
|
inline |
Gets all components.
- Parameters
-
template<class T >
T* PZ::MetaEntity::GetComponent |
( |
| ) |
const |
|
inline |
Gets a component.
- Returns
- null if it fails, else the component.
Gets a component.
- Parameters
-
family | The family of the component. |
- Returns
- null if it fails, else the component.
const EntityID& PZ::MetaEntity::GetID |
( |
| ) |
const |
|
inline |
Gets the identifier.
- Returns
- The identifier.
Gets the manager.
- Returns
- The manager.
template<class T >
bool PZ::MetaEntity::HasComponent |
( |
| ) |
const |
|
inline |
Query if the entity has a component.
- Returns
- true if it has the component, false if not.
bool PZ::MetaEntity::HasComponent |
( |
const HashString & |
family | ) |
const |
|
inline |
Query if the entity has a component.
- Parameters
-
family | The family of the component. |
- Returns
- true if it has the component, false if not.
bool PZ::MetaEntity::IsValid |
( |
| ) |
const |
|
inline |
Query if this object is valid.
- Returns
- true if valid, false if not.
bool PZ::MetaEntity::operator!= |
( |
const MetaEntity & |
other | ) |
|
|
inline |
bool PZ::MetaEntity::operator== |
( |
const MetaEntity & |
other | ) |
|
|
inline |
template<class T >
bool PZ::MetaEntity::RemoveComponent |
( |
| ) |
|
|
inline |
Removes a component.
- Returns
- true if it succeeds, false if it fails.
bool PZ::MetaEntity::RemoveComponent |
( |
const HashString & |
family | ) |
|
|
inline |
Removes a component.
- Parameters
-
family | The family of the component. |
- Returns
- true if it succeeds, false if it fails.
bool PZ::MetaEntity::StillExists |
( |
| ) |
const |
|
inline |
Queries if this entity still exists.
- Returns
- true if it does, false if it does not.
The documentation for this class was generated from the following file: