27 #ifndef DOXYGEN_SHOULD_SKIP_THIS
61 : m_priority(priority)
92 return m_liveness == Liveness
::ALIVE;
111 m_liveness = Liveness
::DEAD;
126 virtual void update(
float dt);
137 enum class Liveness :
int {
146 #ifndef DOXYGEN_SHOULD_SKIP_THIS
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:65
bool isAlive() const
Check if the entity is alive.
Definition: Entity.h:91
virtual void update(float dt)
Update the entity's state.
Entity(int priority=0)
Contructor.
Definition: Entity.h:60
A game entity.
Definition: Entity.h:51
virtual ~Entity()
Destructor.
void setAlive()
Set the entity alive (again)
Definition: Entity.h:100
#define GF_API
Definition: Portability.h:35
virtual void render(RenderTarget &target)
Render the entity.
void kill()
Kill an entity.
Definition: Entity.h:110
int getPriority() const
Get the priority of the entity.
Definition: Entity.h:76