summaryrefslogtreecommitdiffstats
path: root/source/Entity.h
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-07 17:09:05 +0200
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2013-07-07 17:09:05 +0200
commita3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d (patch)
tree555f8bc01382a32af53f112c7ac016073c8cef61 /source/Entity.h
parentAdded StringUtils functions to Lua API; added StripColorCodes(); ChatLog now strips color codes from logged messages. (diff)
downloadcuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.gz
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.bz2
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.lz
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.xz
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.tar.zst
cuberite-a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d.zip
Diffstat (limited to '')
-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);