summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-03-03 18:01:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-03-03 18:17:57 +0300
commit7f299fa18a883f5e7392b00764aa1c4d2c41b212 (patch)
treef95e6ac025e652ea63adec4a38f51a8a665de9db /src/resources/iteminfo.h
parent510c8595205081a8c19002ce46b1cc0de35e59c2 (diff)
downloadmanaplus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.gz
manaplus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.bz2
manaplus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.xz
manaplus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.zip
Add rideattack-action into item db.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 78ecf13d3..4d69b5c36 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -135,6 +135,8 @@ class ItemInfo final
void setWaterAttackAction(const std::string &attackAction);
+ void setRideAttackAction(const std::string &attackAction);
+
// Handlers for seting and getting the string
// used for particles when attacking
void setMissileParticleFile(const std::string &s)
@@ -170,6 +172,9 @@ class ItemInfo final
const std::string &getWaterAttackAction() const
{ return mWaterAttackAction; }
+ const std::string &getRideAttackAction() const
+ { return mRideAttackAction; }
+
int getAttackRange() const A_WARN_UNUSED
{ return mAttackRange; }
@@ -299,6 +304,7 @@ class ItemInfo final
std::string mAttackAction;
std::string mSkyAttackAction;
std::string mWaterAttackAction;
+ std::string mRideAttackAction;
int mAttackRange; /**< Attack range, will be zero if non weapon. */
// Particle to be shown when weapon attacks