From a3c8b12ee99ec53fbbf3b36bd71a8f45cf274c1d Mon Sep 17 00:00:00 2001 From: "madmaxoft@gmail.com" Date: Sun, 7 Jul 2013 15:09:05 +0000 Subject: Mobs are assigned MaxHealth from monsters.ini; reading monsters.ini doesn't need settings.ini values anymore. Fixes FS #409. git-svn-id: http://mc-server.googlecode.com/svn/trunk@1662 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/Entity.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source/Entity.h') 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); -- cgit v1.2.3