The base class for all events. More...
#include <eventbase.h>
Public Types | |
enum | EventType { GameWindow, QuitMessage, UserInput, Other } |
A listing of values that can be used to identify Events. More... | |
Public Member Functions | |
virtual | ~EventBase () |
Virtual Deconstructor. | |
virtual EventBase::EventType | GetType () const =0 |
This will aid in identifying all classes that inherit from this class. More... | |
The base class for all events.
All Events used in the Event Manager, will inherit from this. While not absolutely required by the game programmer to write their own events, it it could be useful. Instances of this class cannot be made, and all classes that inherit from this are expected to implement getEventType().
Definition at line 61 of file eventbase.h.
A listing of values that can be used to identify Events.
A listing of values that can be used to identify Events.
Enumerator | |
---|---|
GameWindow | |
QuitMessage |
Indicates the Event is a Mezzanine::EventQuit. |
UserInput |
Indicates the Event is a EventUserInput. |
Definition at line 66 of file eventbase.h.
|
pure virtual |
This will aid in identifying all classes that inherit from this class.
All Classes derived form this calls will return an Event::EventType that correspond the the data/class type they actually are.
Implemented in Mezzanine::EventUserInput, Mezzanine::EventGameWindow, and Mezzanine::EventQuit.