From f07cfeff7bcf84029b7117943eb948096647e4b2 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Tue, 4 Mar 2008 06:14:00 +0000 Subject: Added HP regeneration and new death messages. --- src/localplayer.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/localplayer.h') diff --git a/src/localplayer.h b/src/localplayer.h index d850ed5f..9b4c7eb3 100644 --- a/src/localplayer.h +++ b/src/localplayer.h @@ -49,6 +49,7 @@ BASE_ATTR_BEGIN = 0, BASE_ATTR_EVADE, /**< Ability to avoid hits. */ BASE_ATTR_HIT, /**< Ability to hit stuff. */ BASE_ATTR_HP, /**< Hit Points (Base value: maximum, Modded value: current) */ + BASE_ATTR_HP_REGEN,/**< number of HP regenerated every 10 game ticks */ BASE_ATTR_END, BASE_ATTR_NB = BASE_ATTR_END - BASE_ATTR_BEGIN, @@ -150,34 +151,34 @@ class LocalPlayer : public Player */ virtual void drawName(Graphics *, int, int) {}; - + /** * Adds a guild to the local player. */ void addGuild(short guildId, bool inviteRights); - + /** * Removers a guild from the local player. */ void removeGuild(short guildId); - + /** * Finds a guild the local player belongs to, by the guildId * @return returns the guild associated with the guildId */ Guild* findGuildById(short guildId); - + /** * Finds a guild the local player belongs to, by the guild's name. * @return returns the guild with that name */ Guild* findGuildByName(const std::string &guildName); - + /** * Get number of guilds the player belongs to */ short getNumberOfGuilds(); - + /** * Check the player has permission to invite users */ @@ -367,7 +368,7 @@ class LocalPlayer : public Player protected: void walk(unsigned char dir); - + // Character guild information std::vector mGuilds; -- cgit v1.2.3-70-g09d2