diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-28 18:14:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-28 18:14:58 +0300 |
commit | a204d2b11e6a4b620877ab6c5b80a818eaa7d476 (patch) | |
tree | ee2112216168624403769a1fdeab120dafab4100 /src/actions/pets.cpp | |
parent | d82cd00f86cf5f902a47ef19fd24c7745e4104d4 (diff) | |
download | manaplus-a204d2b11e6a4b620877ab6c5b80a818eaa7d476.tar.gz manaplus-a204d2b11e6a4b620877ab6c5b80a818eaa7d476.tar.bz2 manaplus-a204d2b11e6a4b620877ab6c5b80a818eaa7d476.tar.xz manaplus-a204d2b11e6a4b620877ab6c5b80a818eaa7d476.zip |
Add fake commands to change pet direction.
Diffstat (limited to 'src/actions/pets.cpp')
-rw-r--r-- | src/actions/pets.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/actions/pets.cpp b/src/actions/pets.cpp index e30e7f529..64ac81e83 100644 --- a/src/actions/pets.cpp +++ b/src/actions/pets.cpp @@ -177,4 +177,28 @@ impHandler0(petMoveRight) return true; } +impHandler0(petDirectUp) +{ + petHandler->setDirection(BeingDirection::UP); + return true; +} + +impHandler0(petDirectDown) +{ + petHandler->setDirection(BeingDirection::DOWN); + return true; +} + +impHandler0(petDirectLeft) +{ + petHandler->setDirection(BeingDirection::LEFT); + return true; +} + +impHandler0(petDirectRight) +{ + petHandler->setDirection(BeingDirection::RIGHT); + return true; +} + } // namespace Actions |