![]() |
Blamite Game Engine - Strings
00402.09.29.23.0627.blamite
A library containing general purpose utilities and classes for use in multiple projects.
|
Class representing a generic event. More...
#include <BlamEvent.h>
Public Member Functions | |
BlamEvent (BlamEventType type) | |
Constructs a new event with the specified type. More... | |
BlamEventType | GetEventType () |
Retrieves the type of the event. More... | |
void | SetCancelled (bool cancel) |
Sets whether or not the event should be cancelled. More... | |
bool | IsCancelled () |
Determines whether or not the event has been cancelled. More... | |
Class representing a generic event.
Events can be used for virtually anything. They are used as a way to avoid lots of hard-coding when certain actions are triggered.
BlamEvent::BlamEvent | ( | BlamEventType | type | ) |
Constructs a new event with the specified type.
type | - The type of the new event. |
BlamEventType BlamEvent::GetEventType | ( | ) |
Retrieves the type of the event.
bool BlamEvent::IsCancelled | ( | ) |
Determines whether or not the event has been cancelled.
void BlamEvent::SetCancelled | ( | bool | cancel | ) |
Sets whether or not the event should be cancelled.
If an event is cancelled, none of the remaining listeners will recieve a notification about the event.
cancel | - Whether or not to cancel the event. |