21 #ifndef GF_ENTITY_CONTAINER_H 22 #define GF_ENTITY_CONTAINER_H 24 #include <type_traits> 27 #include "GraphicsApi.h" 29 #include "RenderStates.h" 33 #ifndef DOXYGEN_SHOULD_SKIP_THIS 72 void update(
Time time);
100 void addEntity(
Entity& entity);
125 static_assert(std::is_base_of<Entity, E>::value,
"E must be an Entity");
126 return static_cast<E*
>(removeEntity(entity));
132 std::vector<Ref<Entity>> m_entities;
135 #ifndef DOXYGEN_SHOULD_SKIP_THIS 140 #endif // GF_ENTITY_CONTAINER_H Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
Represents a time value.
Definition: Time.h:65
A game entity.
Definition: Entity.h:53
The namespace for gf classes.
Definition: Action.h:35
E * removeTypedEntity(E *entity)
Remove a typed entity from the collection.
Definition: EntityContainer.h:124
A collection of entities.
Definition: EntityContainer.h:60