 |
Blamite Game Engine - blam!
00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
31 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:107
BLAM void RegisterListener(BlamEventListener *listener)
Registers a an event listener.
Definition: events.cpp:80
virtual void OnLogMessageEvent(LogMessageEvent *event)
Called when the listener is subscribed to Log Message events, and a new LogMessageEvent is fired.
Definition: events.h:139
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:99
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:21
#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:131
~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:83
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:145
BLAM void FireEvent(BlamEvent *event)
Fires an event.
Definition: events.cpp:64
Class representing a mouse movement event.
Definition: MouseMoveEvent.h:10
Class representing a mouse button press.
Definition: MouseClickEvent.h:12
Class representing a log message event.
Definition: LogMessage.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:123
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:85
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:111
Class representing an Event Listener.
Definition: events.h:28
virtual void OnMouseMoveEvent(MouseMoveEvent *event)
Called when the listener is subscribed to Mouse Move events, and a new MouseMoveEvent is fired.
Definition: events.h:115
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:91
int GetPriority()
Retrieves the priority of the listener.
Definition: BlamEventListener.cpp:38