[20:7] extends: FxObj
Wraps FXGL's abstract MiniGame (com.almasb.fxgl.minigames.MiniGame), the base type for every built-in minigame (CircuitBreaker, LockPick, SweetSpot, TriggerMash, TriggerSequence, RandomOccurrence). Carries the minigame's MiniGameResult once isDone becomes true, plus the tpf-driven update loop that the MiniGameView subscene runs. Aussom code typically uses the concrete subclass wrappers (CircuitBreakerMiniGame, SweetSpotMiniGame, etc.) rather than this base; the base wrapper is for adopt flows and shared inspection.
MiniGame ()
Constructs an empty wrapper; populate via adopt.
adopt (object Ajo)
Wraps an existing MiniGame AussomJavaObject.
Ajo is an AussomJavaObject around a MiniGame.A new wrapper.getResult ()
Returns the MiniGameResult AussomJavaObject. Only valid after isDone has flipped to true.
An AussomJavaObject around a MiniGameResult.isDone ()
Returns whether the minigame has produced its result.
A bool.onUpdate (double Tpf)
Advances the minigame by tpf seconds. The hosting MiniGameSubScene calls this every frame.
Tpf is the time per frame in seconds.this object