diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-07-23 23:19:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-07-23 23:19:30 +0300 |
commit | 91075015ad4b5bd576c1a5668a11ea0227dd6bd1 (patch) | |
tree | 181df7013e6bfdd41cad4f2e9f18ad8944b79d04 /src/resources/iteminfo.h | |
parent | 66f7df70fb03d487ae0c667adec3d5ad6e11721e (diff) | |
download | manaverse-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.gz manaverse-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.bz2 manaverse-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.tar.xz manaverse-91075015ad4b5bd576c1a5668a11ea0227dd6bd1.zip |
add support for attacksky and attackwater actions.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r-- | src/resources/iteminfo.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h index e3dfe29d7..a38f32e66 100644 --- a/src/resources/iteminfo.h +++ b/src/resources/iteminfo.h @@ -172,6 +172,10 @@ class ItemInfo final void setAttackAction(const std::string &attackAction); + void setSkyAttackAction(const std::string &attackAction); + + void setWaterAttackAction(const std::string &attackAction); + // Handlers for seting and getting the string // used for particles when attacking void setMissileParticleFile(const std::string &s) @@ -201,6 +205,12 @@ class ItemInfo final const std::string &getAttackAction() const { return mAttackAction; } + const std::string &getSkyAttackAction() const + { return mSkyAttackAction; } + + const std::string &getWaterAttackAction() const + { return mWaterAttackAction; } + int getAttackRange() const A_WARN_UNUSED { return mAttackRange; } @@ -325,6 +335,8 @@ class ItemInfo final * Attack action sub-types (bow, sword, ...) are defined in items.xml. */ std::string mAttackAction; + std::string mSkyAttackAction; + std::string mWaterAttackAction; int mAttackRange; /**< Attack range, will be zero if non weapon. */ // Particle to be shown when weapon attacks |