diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-03-03 17:54:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-03-03 17:54:54 +0300 |
commit | 510c8595205081a8c19002ce46b1cc0de35e59c2 (patch) | |
tree | 2d179f4e07e266ef98e025cd395f8586019e76e6 /src | |
parent | ad43e58d901bcc89632c80bdcf498acf2f1717c2 (diff) | |
download | manaplus-510c8595205081a8c19002ce46b1cc0de35e59c2.tar.gz manaplus-510c8595205081a8c19002ce46b1cc0de35e59c2.tar.bz2 manaplus-510c8595205081a8c19002ce46b1cc0de35e59c2.tar.xz manaplus-510c8595205081a8c19002ce46b1cc0de35e59c2.zip |
Add ride sprite actions.
Diffstat (limited to 'src')
-rw-r--r-- | src/resources/spriteaction.h | 7 | ||||
-rw-r--r-- | src/resources/spritedef.cpp | 6 |
2 files changed, 13 insertions, 0 deletions
diff --git a/src/resources/spriteaction.h b/src/resources/spriteaction.h index e1504e69c..d46150a46 100644 --- a/src/resources/spriteaction.h +++ b/src/resources/spriteaction.h @@ -49,18 +49,25 @@ namespace SpriteAction static const std::string CAST_MAGIC("magic"); static const std::string USE_ITEM("item"); static const std::string SPAWN("spawn"); + static const std::string FLY("fly"); static const std::string SWIM("swim"); + static const std::string RIDE("ride"); static const std::string STANDSKY("standsky"); static const std::string STANDWATER("standwater"); + static const std::string STANDRIDE("standride"); static const std::string SITSKY("sitsky"); static const std::string SITWATER("sitwater"); + static const std::string SITRIDE("sitride"); static const std::string ATTACKSKY("attacksky"); static const std::string ATTACKWATER("attackwater"); + static const std::string ATTACKRIDE("attackride"); static const std::string SPAWNSKY("spawnsky"); static const std::string SPAWNWATER("spawnwater"); + static const std::string SPAWNRIDE("spawnride"); static const std::string DEADSKY("deadsky"); static const std::string DEADWATER("deadwater"); + static const std::string DEADRIDE("deadride"); static const std::string INVALID(""); } // namespace SpriteAction diff --git a/src/resources/spritedef.cpp b/src/resources/spritedef.cpp index 6ea358448..1f5b02610 100644 --- a/src/resources/spritedef.cpp +++ b/src/resources/spritedef.cpp @@ -165,16 +165,22 @@ void SpriteDef::substituteActions() substituteAction(SpriteAction::SPAWN, SpriteAction::STAND); substituteAction(SpriteAction::FLY, SpriteAction::MOVE); substituteAction(SpriteAction::SWIM, SpriteAction::MOVE); + substituteAction(SpriteAction::RIDE, SpriteAction::MOVE); substituteAction(SpriteAction::STANDSKY, SpriteAction::STAND); substituteAction(SpriteAction::STANDWATER, SpriteAction::STAND); + substituteAction(SpriteAction::STANDRIDE, SpriteAction::STAND); substituteAction(SpriteAction::SITSKY, SpriteAction::SIT); substituteAction(SpriteAction::SITWATER, SpriteAction::SIT); + substituteAction(SpriteAction::SITRIDE, SpriteAction::SIT); substituteAction(SpriteAction::ATTACKSKY, SpriteAction::ATTACK); substituteAction(SpriteAction::ATTACKWATER, SpriteAction::ATTACK); + substituteAction(SpriteAction::ATTACKRIDE, SpriteAction::ATTACK); substituteAction(SpriteAction::SPAWNSKY, SpriteAction::SPAWN); substituteAction(SpriteAction::SPAWNWATER, SpriteAction::SPAWN); + substituteAction(SpriteAction::SPAWNRIDE, SpriteAction::SPAWN); substituteAction(SpriteAction::DEADSKY, SpriteAction::DEAD); substituteAction(SpriteAction::DEADWATER, SpriteAction::DEAD); + substituteAction(SpriteAction::DEADRIDE, SpriteAction::DEAD); } void SpriteDef::loadSprite(const XmlNodePtr spriteNode, const int variant, |