From a204d2b11e6a4b620877ab6c5b80a818eaa7d476 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 28 Dec 2014 18:14:58 +0300 Subject: Add fake commands to change pet direction. --- src/actions/pets.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'src/actions/pets.cpp') 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 -- cgit v1.2.3-70-g09d2