diff options
author | Philipp Sehmisch <mana@crushnet.org> | 2010-02-25 20:21:59 +0100 |
---|---|---|
committer | Philipp Sehmisch <mana@crushnet.org> | 2010-02-25 20:21:59 +0100 |
commit | c5252ab6c58a7680f5d8ab49fc7ecb17fa778c7c (patch) | |
tree | 36237d241f7ba778e480be9b704c580edafb616d /src/game-server/being.hpp | |
parent | e993ea11bfc211fa69a08838f0d9f1ca069e9e37 (diff) | |
download | manaserv-c5252ab6c58a7680f5d8ab49fc7ecb17fa778c7c.tar.gz manaserv-c5252ab6c58a7680f5d8ab49fc7ecb17fa778c7c.tar.bz2 manaserv-c5252ab6c58a7680f5d8ab49fc7ecb17fa778c7c.tar.xz manaserv-c5252ab6c58a7680f5d8ab49fc7ecb17fa778c7c.zip |
Added script bindings for healing characters and other beings.
Reviewed-by: Jared Adams <jaxad0127@gmail.com>
Diffstat (limited to 'src/game-server/being.hpp')
-rw-r--r-- | src/game-server/being.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/game-server/being.hpp b/src/game-server/being.hpp index 8bf23ff9..ad9beb1a 100644 --- a/src/game-server/being.hpp +++ b/src/game-server/being.hpp @@ -156,6 +156,12 @@ class Being : public Actor */ virtual int damage(Actor *source, const Damage &damage); + /** Restores all hit points of the being */ + void heal(); + + /** Restores a specific number of hit points of the being */ + void heal(int hp); + /** * Changes status and calls all the "died" listeners. */ |