8#ifndef MALENA_EVENTDISPATCHER_H
9#define MALENA_EVENTDISPATCHER_H
94 void fire()
final override{};
96 bool occurred()
final override{
return false;};
110 void fire(
const std::optional<sf::Event> &event)
override = 0;
123 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.