Arcade architecture
IEvent.hpp
Go to the documentation of this file.
1
13#ifndef IEVENT_HPP_
14#define IEVENT_HPP_
15
24class IEvent {
25 public:
31 virtual ~IEvent() = default;
32
39 virtual void init() = 0;
40
48 virtual int pollEvents() = 0;
49
56 virtual void cleanup() = 0;
57
65 enum event_t {
75 };
76};
77#endif /* !IEVENT_HPP_ */
Abstract interface for event handling.
Definition: IEvent.hpp:24
virtual int pollEvents()=0
Poll for events.
virtual void cleanup()=0
Clean up the event system.
virtual ~IEvent()=default
Virtual destructor for the IEvent interface.
event_t
Enumeration of standard event types.
Definition: IEvent.hpp:65
@ UP
Definition: IEvent.hpp:66
@ DOWN
Definition: IEvent.hpp:67
@ SPACE
Definition: IEvent.hpp:70
@ CLOSE
Definition: IEvent.hpp:73
@ ENTER
Definition: IEvent.hpp:71
@ RIGHT
Definition: IEvent.hpp:69
@ LEFT
Definition: IEvent.hpp:68
@ ESCAPE
Definition: IEvent.hpp:72
@ NEXTGAME
Definition: IEvent.hpp:74
virtual void init()=0
Initialize the event system.