CheeseEngine
A 2D Game Engine
Loading...
Searching...
No Matches
Classes | Enumerations | Variables
Events.hpp File Reference
#include <cstdint>
#include <entt/entt.hpp>
#include <glm/glm.hpp>
Include dependency graph for Events.hpp:

Go to the source code of this file.

Classes

struct  Event
 Base marker class for all engine events. More...
 
struct  CollideEvent
 Fired when two solid physical bodies collide. More...
 
struct  InterceptionEvent
 Fired when an entity overlaps with a non-solid trigger zone. More...
 
struct  InputEvent
 Fired when input from the OS/hardware is received. More...
 
struct  QuestStartEvent
 Fired when a built-in quest or script is triggered. More...
 

Enumerations

enum class  TriggerAction { ENTER , STAY , EXIT }
 Represents the state of a trigger zone overlap. More...
 

Variables

constexpr int INPUT_RELEASE = 0
 Key was released.
 
constexpr int INPUT_PRESS = 1
 Key was pressed this frame.
 
constexpr int INPUT_HOLD = 2
 Key is being held down.
 

Enumeration Type Documentation

◆ TriggerAction

enum class TriggerAction
strong

Represents the state of a trigger zone overlap.

Enumerator
ENTER 

Entity just entered the trigger zone.

STAY 

Entity is currently inside the trigger zone.

EXIT 

Entity just left the trigger zone.

Variable Documentation

◆ INPUT_HOLD

constexpr int INPUT_HOLD = 2
constexpr

Key is being held down.

◆ INPUT_PRESS

constexpr int INPUT_PRESS = 1
constexpr

Key was pressed this frame.

◆ INPUT_RELEASE

constexpr int INPUT_RELEASE = 0
constexpr

Key was released.