summaryrefslogtreecommitdiff
path: root/src/resources
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/resources
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/resources')
-rw-r--r--src/resources/spriteaction.h4
-rw-r--r--src/resources/spritedef.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/resources/spriteaction.h b/src/resources/spriteaction.h
index 61967f155..b39c1e96d 100644
--- a/src/resources/spriteaction.h
+++ b/src/resources/spriteaction.h
@@ -44,6 +44,7 @@ namespace SpriteAction
static const std::string MOVE("walk");
static const std::string ATTACK("attack");
static const std::string SPAWN("spawn");
+ static const std::string CAST("cast");
static const std::string FLY("fly");
static const std::string SWIM("swim");
@@ -57,6 +58,9 @@ namespace SpriteAction
static const std::string ATTACKSKY("attacksky");
static const std::string ATTACKWATER("attackwater");
static const std::string ATTACKRIDE("attackride");
+ static const std::string CASTSKY("castsky");
+ static const std::string CASTWATER("castwater");
+ static const std::string CASTRIDE("castride");
static const std::string SPAWNSKY("spawnsky");
static const std::string SPAWNWATER("spawnwater");
static const std::string SPAWNRIDE("spawnride");
diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp
index 9930f58b9..8626a9e6e 100644
--- a/src/resources/spritedef.cpp
+++ b/src/resources/spritedef.cpp
@@ -157,6 +157,7 @@ void SpriteDef::substituteActions()
substituteAction(SpriteAction::STAND, SpriteAction::DEFAULT);
substituteAction(SpriteAction::MOVE, SpriteAction::STAND);
substituteAction(SpriteAction::ATTACK, SpriteAction::STAND);
+ substituteAction(SpriteAction::CAST, SpriteAction::ATTACK);
substituteAction(SpriteAction::SIT, SpriteAction::STAND);
substituteAction(SpriteAction::SITTOP, SpriteAction::SIT);
substituteAction(SpriteAction::DEAD, SpriteAction::STAND);
@@ -173,6 +174,9 @@ void SpriteDef::substituteActions()
substituteAction(SpriteAction::ATTACKSKY, SpriteAction::ATTACK);
substituteAction(SpriteAction::ATTACKWATER, SpriteAction::ATTACK);
substituteAction(SpriteAction::ATTACKRIDE, SpriteAction::ATTACK);
+ substituteAction(SpriteAction::CASTSKY, SpriteAction::CAST);
+ substituteAction(SpriteAction::CASTWATER, SpriteAction::CAST);
+ substituteAction(SpriteAction::CASTRIDE, SpriteAction::CAST);
substituteAction(SpriteAction::SPAWNSKY, SpriteAction::SPAWN);
substituteAction(SpriteAction::SPAWNWATER, SpriteAction::SPAWN);
substituteAction(SpriteAction::SPAWNRIDE, SpriteAction::SPAWN);