From 41d2578d3401e38fa8600a533ad5998dc39e7be5 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Sat, 21 May 2022 21:36:37 +0200 Subject: add move sideways capability --- src/command.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/command.cpp') 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(); +} -- cgit v1.2.3