 |
Blamite Game Engine - Strings
00367.02.08.23.1815.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)
36 std::vector<BlamEventType> subscribed_events;
40 std::string name =
"";
57 std::vector<BlamEventType> GetSubscribedEvents();
75 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:114
STRINGS_API std::vector< BlamEventListener * > GetListeners()
Retrieves a list of currently registered listeners.
Definition: events.cpp:155
virtual void OnEditorTickEvent(EditorTickEvent *event)
Called when the listener is subscribed to Editor Tick events, and a new EditorTickEvent is fired.
Definition: events.h:156
virtual void OnLogMessageEvent(LogMessageEvent *event)
Called when the listener is subscribed to Log Message events, and a new LogMessageEvent is fired.
Definition: events.h:146
Namespace for handling things related to Events.
Definition: events.h:162
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:106
STRINGS_API void FireEvent(BlamEvent *event)
Fires an event.
Definition: events.cpp:67
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:138
virtual void OnCharacterInputEvent(CharacterInputEvent *event)
Called when the listener is subscribed to Character Input events, and a new CharacterInputEvent is fi...
Definition: events.h:90
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:148
STRINGS_API void UnregisterListener(BlamEventListener *listener)
Unregisters a an event listener.
Definition: events.cpp:100
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:130
#define STRINGS_API
Definition: events.h:11
STRINGS_API void RegisterListener(BlamEventListener *listener, std::string name)
Registers a an event listener.
Definition: events.cpp:91
Class representing an editor tick event.
Definition: EditorTickEvent.h:18
Class representing an Event Listener.
Definition: events.h:33
STRINGS_API void UnregisterListeners()
Unregisters all listeners.
Definition: events.cpp:118
virtual void OnMouseMoveEvent(MouseMoveEvent *event)
Called when the listener is subscribed to Mouse Move events, and a new MouseMoveEvent is fired.
Definition: events.h:122
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:98