Elaztek Developer Hub
Blamite Game Engine - Strings  00386.06.16.23.0646.blamite
A library containing general purpose utilities and classes for use in multiple projects.
BlamEvent.h
Go to the documentation of this file.
1 #pragma once
2 
3 #ifdef STRINGS_EXPORTS
4 #define STRINGS_API __declspec(dllexport)
5 #else
6 #define STRINGS_API __declspec(dllimport)
7 #endif
8 
12 enum class BlamEventType
13 {
14  KeyPress,
16  MouseClick,
17  MouseMove,
18  Tick,
19  NewFrame,
21  LogMessage,
22 
23  EditorTick,
25 };
26 
34 {
35 private:
36  bool cancelled = false;
37  BlamEventType event_type;
38 
39 public:
40 
47 
53  BlamEventType GetEventType();
54 
63  void SetCancelled(bool cancel);
64 
70  bool IsCancelled();
71 };
BlamEventType::ConfigurationReload
@ ConfigurationReload
Indicates the event is a configuration reload event. See ConfigurationReloadEvent for details.
BlamEventType::Tick
@ Tick
Indicates the event is a tick event. See TickEvent for details.
BlamEvent.h
BlamEventType::CharacterInput
@ CharacterInput
Indicates the event is a character input event. See CharacterInputEvent for details.
BlamEvent
Class representing a generic event.
Definition: BlamEvent.h:33
BlamEventType::EditorTick
@ EditorTick
Indicates the event is an editor tick event. See EditorTickEvent for details.
BlamEvent::SetCancelled
void SetCancelled(bool cancel)
Sets whether or not the event should be cancelled.
Definition: BlamEvent.cpp:13
STRINGS_API
#define STRINGS_API
Definition: BlamEvent.h:6
BlamEventType::KeyPress
@ KeyPress
Indicates the event is a key press event. See KeyPressEvent for details.
BlamEvent::IsCancelled
bool IsCancelled()
Determines whether or not the event has been cancelled.
Definition: BlamEvent.cpp:18
BlamEventType
BlamEventType
Enumerator listing all possible event types.
Definition: BlamEvent.h:12
BlamEventType::NewFrame
@ NewFrame
Indicates the event is a new frame event. See NewFrameEvent for details.
BlamEvent::GetEventType
BlamEventType GetEventType()
Retrieves the type of the event.
Definition: BlamEvent.cpp:8
cancel
#define cancel
Definition: resource.h:133
BlamEvent::BlamEvent
BlamEvent(BlamEventType type)
Constructs a new event with the specified type.
Definition: BlamEvent.cpp:3
BlamEventType::MouseClick
@ MouseClick
Indicates the event is a mouse click event. See MouseClickEvent for details.
BlamEventType::LogMessage
@ LogMessage
Indicates the event is a log message event. See LogMessageEvent for details.
BlamEventType::MouseMove
@ MouseMove
Indicates the event is a mouse move event. See MouseMoveEvent for details.
BlamEventType::EditorThemeChange
@ EditorThemeChange
Indicates the event is an editor theme change event. See EditorThemeChangeEvent for details.