summaryrefslogtreecommitdiff
path: root/src/being/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-07-17 22:03:36 +0300
committerAndrei Karas <akaras@inbox.ru>2016-07-17 22:03:36 +0300
commit1ce5e20594dbf44d6311d217cdba3b217491fc0b (patch)
tree982c0042f9d50c48c9a3bceecbbc2682922af3e6 /src/being/localplayer.h
parenteed4e612309c788565eda120fa2ad30de50ca19e (diff)
downloadmv-1ce5e20594dbf44d6311d217cdba3b217491fc0b.tar.gz
mv-1ce5e20594dbf44d6311d217cdba3b217491fc0b.tar.bz2
mv-1ce5e20594dbf44d6311d217cdba3b217491fc0b.tar.xz
mv-1ce5e20594dbf44d6311d217cdba3b217491fc0b.zip
Freeze plater while casting skill.
Diffstat (limited to 'src/being/localplayer.h')
-rw-r--r--src/being/localplayer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/being/localplayer.h b/src/being/localplayer.h
index 08974a621..b09e63828 100644
--- a/src/being/localplayer.h
+++ b/src/being/localplayer.h
@@ -423,6 +423,8 @@ class LocalPlayer final : public Being,
bool canMove() const;
+ void freezeMoving(const int timeWaitTicks);
+
protected:
void updateCoords() override final;
@@ -493,6 +495,7 @@ class LocalPlayer final : public Being,
int mTestParticleTime;
unsigned long mTestParticleHash;
int mSyncPlayerMoveDistance;
+ int mUnfreezeTime;
unsigned char mWalkingDir; // The direction the player is walking in.
/** Whether or not the name settings have changed */
bool mUpdateName;
@@ -519,6 +522,7 @@ class LocalPlayer final : public Being,
bool mWaitPing;
bool mShowNavigePath;
bool mAllowRename;
+ bool mFreezed;
};
extern LocalPlayer *localPlayer;