diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-05-21 22:24:01 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2022-05-21 22:59:59 +0200 |
commit | d324ad963c24edf6d19dffc305a38e0b3607b5c1 (patch) | |
tree | 10d487be5d723882a12876ea34bf2dcc2233a4d1 /src/command.cpp | |
parent | 27a55a2e841e9c248d6b055780a519a7b5ee4263 (diff) |
Add piece rotation
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/command.cpp b/src/command.cpp index efe2987..24b50cd 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -40,3 +40,7 @@ KeyboardRightPressed::~KeyboardRightPressed(){} void KeyboardRightPressed::execute( GameState &game ){ game.pressRight(); } +KeyboardSpacePressed::~KeyboardSpacePressed(){} +void KeyboardSpacePressed::execute( GameState &game ){ + game.pressRotate(); +} |