24 #include "GraphicsApi.h" 28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 63 : m_priority(priority)
64 , m_liveness(Liveness::Alive)
79 m_priority = priority;
103 return m_liveness == Liveness::Alive;
112 m_liveness = Liveness::Alive;
122 m_liveness = Liveness::Dead;
137 virtual void update(
Time time);
149 enum class Liveness : int {
158 #ifndef DOXYGEN_SHOULD_SKIP_THIS 163 #endif // GF_ENTITY_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
Entity(int priority=0)
Contructor.
Definition: Entity.h:62
A game entity.
Definition: Entity.h:53
The namespace for gf classes.
Definition: Action.h:35
void setAlive()
Set the entity alive (again)
Definition: Entity.h:111
void setPriority(int priority)
Set the priority of the entity.
Definition: Entity.h:78
int getPriority() const
Get the priority of the entity.
Definition: Entity.h:87
void kill()
Kill an entity.
Definition: Entity.h:121
bool isAlive() const
Check if the entity is alive.
Definition: Entity.h:102