28 #ifndef DOXYGEN_SHOULD_SKIP_THIS 63 : m_priority(priority)
64 , m_liveness(Liveness::ALIVE)
94 return m_liveness == Liveness::ALIVE;
103 m_liveness = Liveness::ALIVE;
113 m_liveness = Liveness::DEAD;
140 enum class Liveness :
int {
149 #ifndef DOXYGEN_SHOULD_SKIP_THIS Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:66
virtual void render(RenderTarget &target, const RenderStates &states)
Render the entity.
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
Represents a time value.
Definition: Time.h:73
Entity(int priority=0)
Contructor.
Definition: Entity.h:62
A game entity.
Definition: Entity.h:53
virtual ~Entity()
Destructor.
The namespace for gf classes.
Definition: Action.h:34
void setAlive()
Set the entity alive (again)
Definition: Entity.h:102
#define GF_API
Definition: Portability.h:35
virtual void update(Time time)
Update the entity's state.
int getPriority() const
Get the priority of the entity.
Definition: Entity.h:78
void kill()
Kill an entity.
Definition: Entity.h:112
bool isAlive() const
Check if the entity is alive.
Definition: Entity.h:93