KarmaEngine
Game Engine for practical learning and research purposes
|
The base class of all the events for Karma. More...
#include <Event.h>
Public Member Functions | |
virtual EventType | GetEventType () const =0 |
Getter for event name (type) | |
virtual const char * | GetName () const =0 |
Getter for event type. | |
virtual int | GetCategoryFlags () const =0 |
Getter for category flags (enum EventCategory) | |
virtual std::string | ToString () const |
String representation of the event. | |
bool | IsInCategory (EventCategory category) |
Routine to see if the category of the Event is (or a part of) given category. | |
bool | IsHandled () const |
Getter for the m_Handled. | |
Event * | GetObjPointer () |
Getter for the pointer to the object. | |
Protected Attributes | |
bool | m_Handled = false |
Friends | |
class | EventDispatcher |
An event dispatching class. | |
The base class of all the events for Karma.
|
pure virtual |
Getter for category flags (enum EventCategory)
|
pure virtual |
Getter for event name (type)
|
pure virtual |
|
inline |
Getter for the pointer to the object.
|
inline |
Getter for the m_Handled.
|
inline |
Routine to see if the category of the Event is (or a part of) given category.
|
inlinevirtual |
String representation of the event.
Reimplemented in Karma::ControllerDeviceConnectedEvent, Karma::ControllerDeviceDisconnectedEvent, Karma::KeyPressedEvent, Karma::KeyReleasedEvent, Karma::KeyTypedEvent, Karma::MouseButtonPressedEvent, Karma::MouseButtonReleasedEvent, Karma::MouseMovedEvent, Karma::MouseScrolledEvent, and Karma::WindowResizeEvent.
|
friend |
An event dispatching class.