summaryrefslogtreecommitdiff
path: root/src/being
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-14 17:25:37 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-14 17:25:37 +0300
commit15424641cca695650f4b56c37711c12c81cf2c32 (patch)
tree6438f82c7542e265897c98565242767b2f9a0adc /src/being
parent1a5c1d155337923ab8b0c208ba7cc4dc3cb70e18 (diff)
downloadmv-15424641cca695650f4b56c37711c12c81cf2c32.tar.gz
mv-15424641cca695650f4b56c37711c12c81cf2c32.tar.bz2
mv-15424641cca695650f4b56c37711c12c81cf2c32.tar.xz
mv-15424641cca695650f4b56c37711c12c81cf2c32.zip
Add cast action to beings.
Diffstat (limited to 'src/being')
-rw-r--r--src/being/being.cpp4
-rw-r--r--src/being/being.h2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/being/being.cpp b/src/being/being.cpp
index b4ea52df1..dd06c918d 100644
--- a/src/being/being.cpp
+++ b/src/being/being.cpp
@@ -1358,6 +1358,7 @@ std::string Being::getAttackAction(const Attack *const attack1) const
getSpriteAction(Dead, DEAD)
getSpriteAction(Spawn, SPAWN)
+getSpriteAction(Cast, CAST)
std::string Being::getStandAction() const
{
@@ -1442,6 +1443,9 @@ void Being::setAction(const BeingActionT &action, const int attackId)
}
}
break;
+ case BeingAction::CAST:
+ currentAction = getCastAction();
+ break;
case BeingAction::HURT:
if (mInfo)
{
diff --git a/src/being/being.h b/src/being/being.h
index 11518a3c0..9c9fd6ade 100644
--- a/src/being/being.h
+++ b/src/being/being.h
@@ -597,6 +597,8 @@ class Being notfinal : public ActorSprite,
*/
std::string getSitAction() const A_WARN_UNUSED;
+ std::string getCastAction() const A_WARN_UNUSED;
+
std::string getMoveAction() const A_WARN_UNUSED;
std::string getDeadAction() const A_WARN_UNUSED;