5#ifndef EVENTDISPATCHER_H
6#define EVENTDISPATCHER_H
91 void fire()
final override{};
93 bool occurred()
final override{};
106 void fire(
const std::optional<sf::Event> &event)
override = 0;
119 bool occurred(
const std::optional<sf::Event> &event)
override = 0;
Base class for all per-event dispatchers in the Malena event system.
bool occurred(const std::optional< sf::Event > &event) override=0
Return true when the incoming SFML event should trigger this dispatcher.
void fire(const std::optional< sf::Event > &event) override=0
Deliver this event to all matching registered components.