summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/pets.cpp24
-rw-r--r--src/actions/pets.h4
2 files changed, 28 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
diff --git a/src/actions/pets.h b/src/actions/pets.h
index 37bd85713..4aed1d94c 100644
--- a/src/actions/pets.h
+++ b/src/actions/pets.h
@@ -36,6 +36,10 @@ namespace Actions
decHandler(petMoveDown);
decHandler(petMoveLeft);
decHandler(petMoveRight);
+ decHandler(petDirectUp);
+ decHandler(petDirectDown);
+ decHandler(petDirectLeft);
+ decHandler(petDirectRight);
} // namespace Actions
#undef decHandler