24 #include "Portability.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:73
 
Define the states used for drawing to a RenderTarget. 
Definition: RenderStates.h:82
 
Represents a time value. 
Definition: Time.h:74
 
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