file: InstantAction.aus

class: InstantAction

[29:7] extends: Action

Wraps FXGL's InstantAction abstract class (com.almasb.fxgl.entity.action.InstantAction). The engine calls performOnce(tpf) the first frame the action becomes current and then auto-completes; useful for one-shot behaviors (fire weapon, open door, play sound). Backed by AussomInstantAction (Java bridge) because the class has overridable performOnce plus the four Action lifecycle hooks. Example: public fire(tpf) { // run once then done } ia = new InstantAction(::fire); ac.addAction(ia.obj);

Methods