Class Event

Inheritance Relationships

Derived Types

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

EventType GetEventType()

Retrieves the type of the event.

Return

The event type.

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.

Public Members

EventType event_type

The type of the event.