Elaztek Developer Hub
Blamite Game Engine - blam!  00346.12.11.21.0529.blamite
The core library for the Blamite Game Engine.
BlamEvent.h
Go to the documentation of this file.
1 #pragma once
2 
4 {
13 };
14 
21 class BlamEvent
22 {
23 private:
24  bool cancelled = false;
25  BlamEventType event_type;
26 
27 public:
28 
35 
42 
51  void SetCancelled(bool cancel);
52 
58  bool IsCancelled();
59 };
EventType_CharacterInput
@ EventType_CharacterInput
Definition: BlamEvent.h:6
EventType_ConfigurationReload
@ EventType_ConfigurationReload
Definition: BlamEvent.h:11
EventType_NewFrame
@ EventType_NewFrame
Definition: BlamEvent.h:10
EventType_MouseMove
@ EventType_MouseMove
Definition: BlamEvent.h:8
BlamEvent
Class representing a generic event.
Definition: BlamEvent.h:21
EventType_MouseClick
@ EventType_MouseClick
Definition: BlamEvent.h:7
EventType_LogMessage
@ EventType_LogMessage
Definition: BlamEvent.h:12
BlamEvent::SetCancelled
void SetCancelled(bool cancel)
Sets whether or not the event should be cancelled.
Definition: BlamEvent.cpp:13
BlamEvent::IsCancelled
bool IsCancelled()
Determines whether or not the event has been cancelled.
Definition: BlamEvent.cpp:18
BlamEventType
BlamEventType
Definition: BlamEvent.h:3
EventType_KeyPress
@ EventType_KeyPress
Definition: BlamEvent.h:5
EventType_Tick
@ EventType_Tick
Definition: BlamEvent.h:9
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