Blamite Game Engine - Blam (Core)
Event.hpp
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace Blam::Events
6 {
13  class Event
14  {
15  private:
16  bool cancelled = false;
17  public:
19 
26  {
27  return event_type;
28  }
29 
38  void setCancelled(bool cancel)
39  {
40  cancelled = cancel;
41  }
42 
48  bool isCancelled()
49  {
50  return cancelled;
51  }
52  };
53 }
EventType
EventType
Definition: events.h:5
Blam::Events::Event::event_type
EventType event_type
The type of the event.
Definition: Event.hpp:18
Blam::Events::Event
Class representing a generic event.
Definition: Event.hpp:13
events.h
Blam::Events::Event::isCancelled
bool isCancelled()
Determines whether or not the event has been cancelled.
Definition: Event.hpp:48
Blam::Events
Namespace for handling things related to Events.
Definition: CharacterInputEvent.hpp:5
Blam::Events::Event::setCancelled
void setCancelled(bool cancel)
Sets whether or not the event should be cancelled.
Definition: Event.hpp:38
Blam::Events::Event::GetEventType
EventType GetEventType()
Retrieves the type of the event.
Definition: Event.hpp:25