summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-05-21 21:36:37 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-05-21 21:36:37 +0200
commit41d2578d3401e38fa8600a533ad5998dc39e7be5 (patch)
tree8199af62e448b1010bab8ec4caca98d7ada860ff /src/command.cpp
parent3ce5ae75abd2de874b6c33214ea44063f11a0d4d (diff)
add move sideways capability
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/command.cpp b/src/command.cpp
index d0ee45b..efe2987 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -32,3 +32,11 @@ KeyboardDownPressed::~KeyboardDownPressed(){}
void KeyboardDownPressed::execute( GameState &game ){
game.pressDown();
}
+KeyboardLeftPressed::~KeyboardLeftPressed(){}
+void KeyboardLeftPressed::execute( GameState &game ){
+ game.pressLeft();
+}
+KeyboardRightPressed::~KeyboardRightPressed(){}
+void KeyboardRightPressed::execute( GameState &game ){
+ game.pressRight();
+}