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;
149 enum class Liveness :
int {
158#ifndef DOXYGEN_SHOULD_SKIP_THIS
A game entity.
Definition: Entity.h:53
virtual void render(RenderTarget &target, const RenderStates &states)
Render the entity.
virtual ~Entity()
Destructor.
bool isAlive() const
Check if the entity is alive.
Definition: Entity.h:102
Entity(int priority=0)
Contructor.
Definition: Entity.h:62
void kill()
Kill an entity.
Definition: Entity.h:121
virtual void update(Time time)
Update the entity's state.
int getPriority() const
Get the priority of the entity.
Definition: Entity.h:87
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
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
Represents a time value.
Definition: Time.h:65
The namespace for gf classes.
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82