Elaztek Developer Hub
Blamite Game Engine - blam!  00357.06.18.22.0809.blamite
The core library for the Blamite Game Engine.
BlamEvent.h
Go to the documentation of this file.
1 #pragma once
2 
6 enum class BlamEventType
7 {
8  KeyPress,
10  MouseClick,
11  MouseMove,
12  Tick,
13  NewFrame,
15  LogMessage
16 };
17 
24 class BlamEvent
25 {
26 private:
27  bool cancelled = false;
28  BlamEventType event_type;
29 
30 public:
31 
38 
45 
54  void SetCancelled(bool cancel);
55 
61  bool IsCancelled();
62 };
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.
BlamEventType::CharacterInput
@ CharacterInput
Indicates the event is a character input event. See CharacterInputEvent for details.
BlamEvent
Class representing a generic event.
Definition: BlamEvent.h:24
BlamEvent::SetCancelled
void SetCancelled(bool cancel)
Sets whether or not the event should be cancelled.
Definition: BlamEvent.cpp:13
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:6
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
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.