21 #ifndef GF_ENTITY_CONTAINER_H 22 #define GF_ENTITY_CONTAINER_H 24 #include <type_traits> 32 #ifndef DOXYGEN_SHOULD_SKIP_THIS 136 static_assert(std::is_base_of<
Entity, E>::value,
"E must be an Entity");
143 std::vector<Entity *> m_entities;
146 #ifndef DOXYGEN_SHOULD_SKIP_THIS void update(Time time)
Update the entities.
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:66
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
Represents a time value.
Definition: Time.h:73
A game entity.
Definition: Entity.h:53
The namespace for gf classes.
Definition: Action.h:34
void render(RenderTarget &target, const RenderStates &states=RenderStates())
Render the entities on the target.
void addEntity(Entity &entity)
Add an entity to the collection.
Entity * removeEntity(Entity *entity)
Remove an entity from the collection.
#define GF_API
Definition: Portability.h:35
E * removeTypedEntity(E *entity)
Remove a typed entity from the collection.
Definition: EntityContainer.h:135
A collection of entities.
Definition: EntityContainer.h:59