summaryrefslogtreecommitdiffstats
path: root/source/Entity.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/Entity.h')
-rw-r--r--source/Entity.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/Entity.h b/source/Entity.h
index 0faa10830..bd66df5f5 100644
--- a/source/Entity.h
+++ b/source/Entity.h
@@ -236,9 +236,12 @@ public:
/// Heals the specified amount of HPs
void Heal(int a_HitPoints);
- /// Returns the health of this pawn
+ /// Returns the health of this entity
int GetHealth(void) const { return m_Health; }
+ /// Sets the health of this entity; doesn't broadcast any hurt animation
+ void SetHealth(int a_Health);
+
// tolua_end
virtual void Tick(float a_Dt, cChunk & a_Chunk);