Class Event¶
Defined in File Event.hpp
Inheritance Relationships¶
Derived Types¶
public Blam::Events::CharacterInputEvent
(Class CharacterInputEvent)public Blam::Events::KeyPressEvent
(Class KeyPressEvent)
Class Documentation¶
-
class
Event
¶ Class representing a generic event.
Events can be used for virtually anything. They are used as a way to avoid lots of hard-coding when certain actions are triggered.
Subclassed by Blam::Events::CharacterInputEvent, Blam::Events::KeyPressEvent
Public Functions
-
void
setCancelled
(bool cancel)¶ Sets whether or not the event should be cancelled.
If an event is cancelled, none of the remaining listeners will recieve a notification about the event.
- Parameters
cancel
: - Whether or not to cancel the event.
-
bool
isCancelled
()¶ Determines whether or not the event has been cancelled.
- Return
Whether or not the event is cancelled.
-
void