summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2010-01-09 23:47:50 +0200
committerBlue <bluesansdouze@gmail.com>2010-01-10 01:12:46 +0100
commit0c86751e2ca0674e1ae6e584b9e017af8d1e48fe (patch)
tree0bd5954c3887f5444ac587a1121019ccbdd47803 /src/being.h
parenta9da8dca359f1975d1be6bbef16ea72928652880 (diff)
downloadmana-0c86751e2ca0674e1ae6e584b9e017af8d1e48fe.tar.gz
mana-0c86751e2ca0674e1ae6e584b9e017af8d1e48fe.tar.bz2
mana-0c86751e2ca0674e1ae6e584b9e017af8d1e48fe.tar.xz
mana-0c86751e2ca0674e1ae6e584b9e017af8d1e48fe.zip
Show monster inflicted damage.
Disabled by default.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 8aa34b7c..67ad8096 100644
--- a/src/being.h
+++ b/src/being.h
@@ -475,6 +475,11 @@ class Being : public Sprite, public ConfigListener
void flashName(int time);
+ int getTakedDamage() const
+ { return mTakedDamage; }
+
+ void updateName();
+
protected:
/**
* Sets the new path for this being.
@@ -586,6 +591,8 @@ class Being : public Sprite, public ConfigListener
int mPx, mPy; /**< Position in pixels */
int mX, mY; /**< Position on tile */
+ int mTakedDamage;
+
/** Target cursor being used */
SimpleAnimation* mUsedTargetCursor;
};