From bcb217f987a65fe4165caf55d96bd016933e9be6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 2 May 2011 16:56:22 +0300 Subject: Save being speed in being object. --- src/being.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/being.h') diff --git a/src/being.h b/src/being.h index c83d0fb48..1569d5df8 100644 --- a/src/being.h +++ b/src/being.h @@ -661,6 +661,12 @@ class Being : public ActorSprite, public ConfigListener Uint8 calcDirection() const; + void setAttackDelay(int n) + { mAttackDelay = n; } + + int getAttackDelay() + { return mAttackDelay; } + protected: /** * Sets the new path for this being. @@ -783,6 +789,7 @@ class Being : public ActorSprite, public ConfigListener bool mErased; bool mEnemy; std::string mIp; + int mAttackDelay; unsigned int mPvpRank; int *mSpriteRemap; int *mSpriteHide; -- cgit v1.2.3-60-g2f50