 |
Blamite Game Engine - Strings
00369.02.19.23.2014.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Go to the documentation of this file.
9 #define STRINGS_API __declspec(dllexport)
11 #define STRINGS_API __declspec(dllimport)
39 std::vector<BlamEventType> subscribed_events;
43 std::string name =
"";
60 std::vector<BlamEventType> GetSubscribedEvents();
78 void SetPriority(
int new_priority);
virtual void OnMouseClickEvent(MouseClickEvent *event)
Called when the listener is subscribed to Mouse Click events, and a new MouseClickEvent is fired.
Definition: events.h:117
STRINGS_API std::vector< BlamEventListener * > GetListeners()
Retrieves a list of currently registered listeners.
Definition: events.cpp:173
virtual void OnEditorTickEvent(EditorTickEvent *event)
Called when the listener is subscribed to Editor Tick events, and a new EditorTickEvent is fired.
Definition: events.h:157
virtual void OnLogMessageEvent(LogMessageEvent *event)
Called when the listener is subscribed to Log Message events, and a new LogMessageEvent is fired.
Definition: events.h:149
Namespace for handling things related to Events.
Definition: events.h:163
Class representing a configuration reload event.
Definition: ConfigurationReloadEvent.h:19
virtual void OnKeyPressEvent(KeyPressEvent *event)
Called when the listener is subscribed to Key Press events, and a new KeyPressEvent is fired.
Definition: events.h:109
STRINGS_API void FireEvent(BlamEvent *event)
Fires an event.
Definition: events.cpp:79
Class representing a virtual key press.
Definition: KeyPressEvent.h:18
Class representing a generic event.
Definition: BlamEvent.h:32
virtual void OnNewFrameEvent(NewFrameEvent *event)
Called when the listener is subscribed to New Frame events, and a new NewFrameEvent is fired.
Definition: events.h:141
virtual void OnCharacterInputEvent(CharacterInputEvent *event)
Called when the listener is subscribed to Character Input events, and a new CharacterInputEvent is fi...
Definition: events.h:93
Class representing an engine tick event.
Definition: TickEvent.h:18
STRINGS_API void ResortListeners(BlamEventListener *requesting_listener)
Re-sorts the list of registered listeners after a priority modification.
Definition: events.cpp:166
STRINGS_API void UnregisterListener(BlamEventListener *listener)
Unregisters a an event listener.
Definition: events.cpp:118
Class representing a mouse movement event.
Definition: MouseMoveEvent.h:16
Class representing a mouse button press.
Definition: MouseClickEvent.h:18
Class representing a log message event.
Definition: LogMessage.h:18
BlamEventType
Enumerator listing all possible event types.
Definition: BlamEvent.h:12
virtual void OnTickEvent(TickEvent *event)
Called when the listener is subscribed to Tick events, and a new TickEvent is fired.
Definition: events.h:133
#define STRINGS_API
Definition: events.h:11
STRINGS_API void RegisterListener(BlamEventListener *listener, std::string name)
Registers a an event listener.
Definition: events.cpp:109
Class representing an editor tick event.
Definition: EditorTickEvent.h:18
Class representing an Event Listener.
Definition: events.h:36
STRINGS_API void UnregisterListeners()
Unregisters all listeners.
Definition: events.cpp:136
virtual void OnMouseMoveEvent(MouseMoveEvent *event)
Called when the listener is subscribed to Mouse Move events, and a new MouseMoveEvent is fired.
Definition: events.h:125
Class representing an engine frame event.
Definition: NewFrameEvent.h:19
virtual void OnConfigurationReloadEvent(ConfigurationReloadEvent *event)
Called when the listener is subscribed to configuration reload events, and a new ConfigurationReloadE...
Definition: events.h:101