summaryrefslogtreecommitdiff
path: root/src/localplayer.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-06-01 18:45:31 +0300
committerAndrei Karas <akaras@inbox.ru>2013-06-01 18:45:31 +0300
commit49f27fffbe07e66a3047812a838f03d7636cc4a9 (patch)
tree68996fa1dfc002e239513af1a92d1ffd69539204 /src/localplayer.h
parent69108c8a2892cf87a3d425b5e82e0eadbb5f7fa9 (diff)
downloadmv-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.gz
mv-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.bz2
mv-49f27fffbe07e66a3047812a838f03d7636cc4a9.tar.xz
mv-49f27fffbe07e66a3047812a838f03d7636cc4a9.zip
Add chat command /testparticle for testing particle effects on player.
Command: /testparticle particle.xml - set particle effect on player. /testparticle - remove particle effect. Each second it check for particle file update and reloading it if need.
Diffstat (limited to 'src/localplayer.h')
-rw-r--r--src/localplayer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/localplayer.h b/src/localplayer.h
index 857b61167..6786ee0b0 100644
--- a/src/localplayer.h
+++ b/src/localplayer.h
@@ -468,6 +468,9 @@ class LocalPlayer final : public Being,
void updateStatus() const;
+ void setTestParticle(const std::string &fileName,
+ bool updateHash = true);
+
std::string getInvertDirectionString();
std::string getCrazyMoveTypeString();
@@ -632,6 +635,10 @@ class LocalPlayer final : public Being,
std::string mLastHitFrom;
std::string mWaitFor;
int mAdvertTime;
+ Particle *mTestParticle;
+ std::string mTestParticleName;
+ int mTestParticleTime;
+ unsigned long mTestParticleHash;
bool mBlockAdvert;
bool mEnableAdvert;
bool mTradebot;