ecs::Event
#include <Event.hpp>
Public Types
enum
EventType { Null, Unknown, Quit, Move, MoveUp, MoveLeft, MoveDown, MoveRight, MoveStop, HitBox, Shoot, UIUp, UILeft, UIDown, UIRight, UIEnter}
Public Functions
Event() =delete
bool
operator==(const Event other) const
bool
operator==(const Event::EventType type) const
bool
operator!=(const Event other) const
bool
operator!=(const Event::EventType type) const
char
serialize() const
Detailed Description
class ecs::Event;
Event class is used to manage every events gave by the user The Event class make the link between the user and the back-end
Public Types Documentation
enum EventType
Null
Unknown
Quit
Move
MoveUp
MoveLeft
MoveDown
MoveRight
MoveStop
HitBox
Shoot
UIUp
UILeft
UIDown
UIRight
UIEnter
List every type of event currently managed
Public Functions Documentation
function Event
Event() =delete
Default constructor is deleted because you have to inform the event you want to treat
function Event
inline Event(
EventType e
)
Parameters:
e The Event you want to treat
Constructor of Event class
function operator==
inline bool operator==(
const Event other
) const
function operator==
inline bool operator==(
const Event::EventType type
) const
function operator!=
inline bool operator!=(
const Event other
) const
function operator!=
inline bool operator!=(
const Event::EventType type
) const
function serialize
inline char serialize() const
Updated on 2022-11-13 at 17:21:37 +0100
Last updated