 |
Blamite Game Engine - blam!
00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
30 std::vector<BlamEventType> subscribed_events;
virtual void OnMouseClickEvent(MouseClickEvent *event)
Called when the listener is subscribed to Mouse Click events, and a new MouseClickEvent is fired.
Definition: events.h:106
BLAM void RegisterListener(BlamEventListener *listener)
Registers a an event listener.
Definition: events.cpp:75
Class representing a configuration reload event.
Definition: ConfigurationReloadEvent.h:13
virtual void OnKeyPressEvent(KeyPressEvent *event)
Called when the listener is subscribed to Key Press events, and a new KeyPressEvent is fired.
Definition: events.h:98
void SetPriority(int new_priority)
Sets the priority of the listener.
Definition: BlamEventListener.cpp:31
Class representing a virtual key press.
Definition: KeyPressEvent.h:12
Class representing a generic event.
Definition: BlamEvent.h:20
#define BLAM
Definition: events.h:8
virtual void OnNewFrameEvent(NewFrameEvent *event)
Called when the listener is subscribed to New Frame events, and a new NewFrameEvent is fired.
Definition: events.h:130
~BlamEventListener()
Definition: BlamEventListener.cpp:8
virtual void OnCharacterInputEvent(CharacterInputEvent *event)
Called when the listener is subscribed to Character Input events, and a new CharacterInputEvent is fi...
Definition: events.h:82
std::vector< BlamEventType > GetSubscribedEvents()
Retrieves the list of subscribed event types.
Definition: BlamEventListener.cpp:13
Class representing an engine tick event.
Definition: TickEvent.h:10
Namespace for handling things related to Events.
Definition: events.h:136
BLAM void FireEvent(BlamEvent *event)
Fires an event.
Definition: events.cpp:59
Class representing a mouse movement event.
Definition: MouseMoveEvent.h:10
Class representing a mouse button press.
Definition: MouseClickEvent.h:12
BlamEventType
Definition: BlamEvent.h:3
virtual void OnTickEvent(TickEvent *event)
Called when the listener is subscribed to Key Press events, and a new TickEvent is fired.
Definition: events.h:122
void Subscribe(BlamEventType type)
Subscribes to an event type.
Definition: BlamEventListener.cpp:3
BLAM void UnregisterListener(BlamEventListener *listener)
Unregisters a an event listener.
Definition: events.cpp:80
bool IsSubscribed(BlamEventType type)
Determines whether or not the listener is subscribed to the specified event type.
Definition: BlamEventListener.cpp:18
BLAM void ResortListeners(BlamEventListener *requesting_listener)
Re-sorts the list of registered listeners after a priority modification.
Definition: events.cpp:106
Class representing an Event Listener.
Definition: events.h:27
virtual void OnMouseMoveEvent(MouseMoveEvent *event)
Called when the listener is subscribed to Mouse Move events, and a new MouseMoveEvent is fired.
Definition: events.h:114
Class representing an engine frame event.
Definition: NewFrameEvent.h:13
virtual void OnConfigurationReloadEvent(ConfigurationReloadEvent *event)
Called when the listener is subscribed to configuration reload events, and a new ConfigurationReloadE...
Definition: events.h:90
int GetPriority()
Retrieves the priority of the listener.
Definition: BlamEventListener.cpp:38