#include <EntityContainer.h>
Public Member Functions | |
| EntityContainer (void) | |
| virtual | ~EntityContainer (void) |
| size_t | GetEntityCount () const |
| size_t | GetAwakeCount () const |
| size_t | GetAsleepCount () const |
| void | AddEntity (Entity *entity) |
| void | RemoveEntity (Entity *entity) |
| Entity * | GetEntity (size_t index) const |
| virtual void | SendMessage (int msg, const void *data=NULL) |
| virtual void | UpdateState (const void *data=NULL) |
| void | RefreshState () |
Enthält (und zum Teil verwaltet) Spielobjekte jeglicher (oder spezieller) Art und Form.
| gl7::ingame::EntityContainer::EntityContainer | ( | void | ) |
Default constructor.
| gl7::ingame::EntityContainer::~EntityContainer | ( | void | ) | [virtual] |
Destructor.
| void gl7::ingame::EntityContainer::AddEntity | ( | Entity * | entity | ) |
Adds the given entity to this container.
| size_t gl7::ingame::EntityContainer::GetAsleepCount | ( | ) | const [inline] |
Returns the number of sleeping entities.
| size_t gl7::ingame::EntityContainer::GetAwakeCount | ( | ) | const [inline] |
Returns the number of awake entities.
| Entity * gl7::ingame::EntityContainer::GetEntity | ( | size_t | index | ) | const |
Returns the entity identified by the given index.
| size_t gl7::ingame::EntityContainer::GetEntityCount | ( | ) | const [inline] |
Returns the number of all entities.
| void gl7::ingame::EntityContainer::RefreshState | ( | ) |
Refreshes the ranges of the awake and sleeping entities within this container according to the particular state of each entity (once per frame).
| void gl7::ingame::EntityContainer::RemoveEntity | ( | Entity * | entity | ) |
Removes the given entity from this container.
| void gl7::ingame::EntityContainer::SendMessage | ( | int | msg, | |
| const void * | data = NULL | |||
| ) | [virtual] |
Sends a message to all (awake) entities.
| void gl7::ingame::EntityContainer::UpdateState | ( | const void * | data = NULL |
) | [virtual] |
Updates the state of all entities (once per frame).
1.7.1