summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
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();
+}