file: EventBuilder.aus

class: EventBuilder

[25:7] extends: FxObj

Wraps FXGL's EventBuilder (com.almasb.fxgl.dsl.EventBuilder), the fluent setup for firing a JavaFX Event onto the FXGL EventBus on a timer + a condition. Construct via fxgl.eventBuilder(). Wiring: eb = fxgl.eventBuilder(); eb.interval(durationAjo) .whenCondition(::shouldFire) .limit(5) .thenRun(::doIt) .buildAndStart(); Returns a TimerAction AJO that callers can later expire.

Methods