diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-05-02 16:56:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-05-02 16:56:41 +0300 |
commit | bcb217f987a65fe4165caf55d96bd016933e9be6 (patch) | |
tree | 35fbc2ef8b5738b27ff7afe9287f3b6197bda868 /src/being.h | |
parent | 6ff97aad8bf4af8e1a69665b3ad414042efada02 (diff) | |
download | plus-bcb217f987a65fe4165caf55d96bd016933e9be6.tar.gz plus-bcb217f987a65fe4165caf55d96bd016933e9be6.tar.bz2 plus-bcb217f987a65fe4165caf55d96bd016933e9be6.tar.xz plus-bcb217f987a65fe4165caf55d96bd016933e9be6.zip |
Save being speed in being object.
Diffstat (limited to 'src/being.h')
-rw-r--r-- | src/being.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; |