Blamite Game Engine - blam!  00296.01.12.21.0102.blamite
The core library for the Blamite Game Engine.
BlamEvent.h
Go to the documentation of this file.
1 #pragma once
2 
4 {
12 };
13 
20 class BlamEvent
21 {
22 private:
23  bool cancelled = false;
24  BlamEventType event_type;
25 
26 public:
27 
34 
41 
50  void SetCancelled(bool cancel);
51 
57  bool IsCancelled();
58 };
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:20
EventType_MouseClick
@ EventType_MouseClick
Definition: BlamEvent.h:7
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