libes
0.5.3
an Entity System library for C++
|
A type-safe wrapper around a store. More...
#include <es/Store.h>
Public Member Functions | |
ComponentStore (Store *store) | |
bool | has (Entity e) |
Tell whether an entity is present in this store. More... | |
C * | get (Entity e) |
Get the compnent associated to an entity. More... | |
bool | add (Entity e, C *c) |
Add a component to an entity. More... | |
bool | remove (Entity e) |
Remove a component from an entity. More... | |
A type-safe wrapper around a store.
|
inline |
|
inline |
Add a component to an entity.
The user is responsible to allocate the component.
e | the entity |
c | the component |
|
inline |
Get the compnent associated to an entity.
e | the entity |
|
inline |
Tell whether an entity is present in this store.
e | the entity |
|
inline |
Remove a component from an entity.
The user is responsible for deleting the component.
e | the entity |