summaryrefslogtreecommitdiff
path: root/src/being.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-05-03 00:02:03 +0300
committerAndrei Karas <akaras@inbox.ru>2011-05-03 00:02:03 +0300
commit549c16295f341e51635a259695f14eb775aac730 (patch)
tree09d73cd30e95ce73ebf0d1438c4f1915366558ef /src/being.h
parent010fe80b3e44cee70422a1f19367f7630fd8a7ab (diff)
downloadmanaplus-549c16295f341e51635a259695f14eb775aac730.tar.gz
manaplus-549c16295f341e51635a259695f14eb775aac730.tar.bz2
manaplus-549c16295f341e51635a259695f14eb775aac730.tar.xz
manaplus-549c16295f341e51635a259695f14eb775aac730.zip
Add min, max, critical hits to debug window.
Diffstat (limited to 'src/being.h')
-rw-r--r--src/being.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/being.h b/src/being.h
index 1569d5df8..9609c2909 100644
--- a/src/being.h
+++ b/src/being.h
@@ -667,6 +667,26 @@ class Being : public ActorSprite, public ConfigListener
int getAttackDelay()
{ return mAttackDelay; }
+ int getMinHit()
+ { return mMinHit; }
+
+ void setMinHit(int n)
+ { mMinHit = n; }
+
+ int getMaxHit()
+ { return mMaxHit; }
+
+ void setMaxHit(int n)
+ { mMaxHit = n; }
+
+ int getCriticalHit()
+ { return mCriticalHit; }
+
+ void setCriticalHit(int n)
+ { mCriticalHit = n; }
+
+ void updateHit(int amount);
+
protected:
/**
* Sets the new path for this being.
@@ -790,6 +810,9 @@ class Being : public ActorSprite, public ConfigListener
bool mEnemy;
std::string mIp;
int mAttackDelay;
+ int mMinHit;
+ int mMaxHit;
+ int mCriticalHit;
unsigned int mPvpRank;
int *mSpriteRemap;
int *mSpriteHide;