23 #include "utils/Util.h"
39 virtual void update()
override;
59 std::queue<std::unique_ptr<TriggerEvent>> mEventQueue;
virtual bool event(QEvent *e)
virtual void update() override
Processes queued TriggerEvents, firing handleEvent() for each.
void queueEvent(TriggerEvent *event)
Enqueues a TriggerEvent for processing in the next game update.
Abstract base class for events which can be handled by Triggers.
Definition: Trigger.h:68
virtual void handleEvent(TriggerEvent *event)
Responds to a TriggerEvent.
Non-visual entities in the QML item tree that define behavior for their parent Actor.
Definition: Logic.h:31
Listens for one or more events (TriggerEvent) and calls an event handler (handleEvent()) in response ...
Definition: Trigger.h:33
virtual QVariant toVariant()
Returns the value to be passed as the first parameter of the JavaScript handleEvent() function when t...
Definition: Trigger.h:76