diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-03 18:01:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-03 18:17:57 +0300 |
commit | 7f299fa18a883f5e7392b00764aa1c4d2c41b212 (patch) | |
tree | f95e6ac025e652ea63adec4a38f51a8a665de9db /src/resources/iteminfo.cpp | |
parent | 510c8595205081a8c19002ce46b1cc0de35e59c2 (diff) | |
download | plus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.gz plus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.bz2 plus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.tar.xz plus-7f299fa18a883f5e7392b00764aa1c4d2c41b212.zip |
Add rideattack-action into item db.
Diffstat (limited to 'src/resources/iteminfo.cpp')
-rw-r--r-- | src/resources/iteminfo.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/resources/iteminfo.cpp b/src/resources/iteminfo.cpp index abea2c605..c115320cb 100644 --- a/src/resources/iteminfo.cpp +++ b/src/resources/iteminfo.cpp @@ -55,6 +55,7 @@ ItemInfo::ItemInfo() : mAttackAction(SpriteAction::INVALID), mSkyAttackAction(SpriteAction::INVALID), mWaterAttackAction(SpriteAction::INVALID), + mRideAttackAction(SpriteAction::INVALID), mAttackRange(0), mMissileParticle(), mAnimationFiles(), @@ -134,6 +135,14 @@ void ItemInfo::setWaterAttackAction(const std::string &attackAction) mWaterAttackAction = attackAction; } +void ItemInfo::setRideAttackAction(const std::string &attackAction) +{ + if (attackAction.empty()) + mRideAttackAction = SpriteAction::ATTACKRIDE; + else + mRideAttackAction = attackAction; +} + void ItemInfo::addSound(const ItemSoundEvent::Type event, const std::string &filename, const int delay) { |