 |
Blamite Game Engine - blam!
00357.06.18.22.0809.blamite
The core library for the Blamite Game Engine.
|
Go to the documentation of this file.
32 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:110
virtual void OnLogMessageEvent(LogMessageEvent *event)
Called when the listener is subscribed to Log Message events, and a new LogMessageEvent is fired.
Definition: events.h:142
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:102
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:24
#define BLAM
Definition: events.h:9
virtual void OnNewFrameEvent(NewFrameEvent *event)
Called when the listener is subscribed to New Frame events, and a new NewFrameEvent is fired.
Definition: events.h:134
~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:86
std::vector< BlamEventType > GetSubscribedEvents()
Retrieves the list of subscribed event types.
Definition: BlamEventListener.cpp:13
Class representing an engine tick event.
Definition: TickEvent.h:12
Namespace for handling things related to Events.
Definition: events.h:148
BLAM void FireEvent(BlamEvent *event)
Fires an event.
Definition: events.cpp:64
Class representing a mouse movement event.
Definition: MouseMoveEvent.h:10
std::string name
The name of the listener. Used for debugging purposes.
Definition: events.h:36
Class representing a mouse button press.
Definition: MouseClickEvent.h:12
Class representing a log message event.
Definition: LogMessage.h:12
BLAM void RegisterListener(BlamEventListener *listener, std::string name)
Registers a an event listener.
Definition: events.cpp:80
BlamEventType
Enumerator listing all possible event types.
Definition: BlamEvent.h:6
BLAM std::vector< BlamEventListener * > GetListeners()
Retrieves a list of currently registered listeners.
Definition: events.cpp:133
virtual void OnTickEvent(TickEvent *event)
Called when the listener is subscribed to Key Press events, and a new TickEvent is fired.
Definition: events.h:126
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:89
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:126
Class representing an Event Listener.
Definition: events.h:29
virtual void OnMouseMoveEvent(MouseMoveEvent *event)
Called when the listener is subscribed to Mouse Move events, and a new MouseMoveEvent is fired.
Definition: events.h:118
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:94
int GetPriority()
Retrieves the priority of the listener.
Definition: BlamEventListener.cpp:38
BLAM void UnregisterListeners()
Unregisters all listeners.
Definition: events.cpp:101