|
Arcade architecture
|
Abstract interface for event handling. More...
#include <IEvent.hpp>
Public Types | |
| enum | event_t { UP , DOWN , LEFT , RIGHT , SPACE , ENTER , ESCAPE , CLOSE , NEXTGAME } |
| Enumeration of standard event types. More... | |
Public Member Functions | |
| virtual | ~IEvent ()=default |
| Virtual destructor for the IEvent interface. More... | |
| virtual void | init ()=0 |
| Initialize the event system. More... | |
| virtual int | pollEvents ()=0 |
| Poll for events. More... | |
| virtual void | cleanup ()=0 |
| Clean up the event system. More... | |
Abstract interface for event handling.
The IEvent interface provides a contract for managing events in the application. It includes methods for initialization, polling events, and cleanup. It also defines an enumeration for standard event types.
| enum IEvent::event_t |
Enumeration of standard event types.
This enumeration defines various types of events that can be handled by the application.
|
virtualdefault |
Virtual destructor for the IEvent interface.
Ensures proper cleanup of derived classes.
|
pure virtual |
Clean up the event system.
This method releases any resources or configurations used for event handling.
|
pure virtual |
Initialize the event system.
This method is responsible for setting up any resources or configurations required for event handling.
|
pure virtual |
Poll for events.
This method retrieves and processes events from the event queue.