From 91075015ad4b5bd576c1a5668a11ea0227dd6bd1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 23 Jul 2013 23:19:30 +0300 Subject: add support for attacksky and attackwater actions. --- src/resources/iteminfo.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/resources/iteminfo.h') 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 -- cgit v1.2.3-60-g2f50