Main game widget that manages the dinosaur game.
Definition DinasourGameMainWidget.h:23
Handles and processes user input events for the game.
Definition EventManager.h:16
Indication indication() const
Gets the current action indication from key presses.
Definition EventManager.h:77
Indication
Enumeration of possible game actions from key presses.
Definition EventManager.h:21
@ LAY
Duck/lay down action requested.
@ JUMP
Jump action requested.
@ LAUNCH_GAME
Start game action requested.
@ NOTHING
No action indicated.
KeyReleaseIndication
Enumeration of possible game actions from key releases.
Definition EventManager.h:31
@ RELAX
Release current action (e.g., stand up from ducking)
void install_keyPress_keyEvent(QKeyEvent *keyEvent)
Processes a key press event.
Definition EventManager.cpp:6
void install_keyRelease_keyEvent(QKeyEvent *keyEvent)
Processes a key release event.
Definition EventManager.cpp:33
EventManager(DinasourGameMainWidget *h)
Constructs an EventManager with a parent widget.
Definition EventManager.h:47
EventManager()=delete
Deleted default constructor.
void install_mousepress_event(QMouseEvent *mouseEvent)
Processes a mouse press event.
Definition EventManager.cpp:40
KeyReleaseIndication release_indication() const
Gets the current action indication from key releases.
Definition EventManager.h:83