This is the base class for entity system in KGE.
More...
#include <Entity.h>
Detailed Description
This is the base class for entity system in KGE.
Definition at line 15 of file Entity.h.
Constructor & Destructor Documentation
kge::en::Entity::Entity |
( |
int |
ID | ) |
|
kge::en::Entity::~Entity |
( |
| ) |
|
Member Function Documentation
void kge::en::Entity::AddComponent |
( |
Component * |
pCmp | ) |
|
Adds a component to the entity.
Component* kge::en::Entity::GetComponent |
( |
int |
iCmpID | ) |
|
Returns a component by its ID.
std::vector<Component*> kge::en::Entity::GetComponents |
( |
int |
iCmpID | ) |
|
Returns a list of components by its ID.
Use this function when your entity has multi instance of one component
int kge::en::Entity::GetID |
( |
| ) |
|
|
inline |
Returns the entity ID.
Definition at line 26 of file Entity.h.
Member Data Documentation
int kge::en::Entity::m_iID |
|
protected |
std::map<int, std::vector<Component*> >::iterator kge::en::Entity::m_itComponents |
|
protected |
The helper iterator.
Definition at line 46 of file Entity.h.
std::map<int, std::vector<Component*> > kge::en::Entity::m_vComponents |
|
protected |
The list of components.
Definition at line 45 of file Entity.h.
int kge::en::Entity::Type |
The documentation for this class was generated from the following file: