Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: MiniGameResult

[15:7] extends: FxObj

Wraps FXGL's MiniGameResult interface (com.almasb.fxgl.minigames.MiniGameResult). Every built-in minigame produces a result that implements this interface; the common surface is the isSuccess flag. Concrete results (CircuitBreakerResult, SweetSpotResult, etc.) have their own dedicated wrappers when they carry extra fields.

Methods

  • MiniGameResult ()

    Constructs an empty wrapper; populate via adopt. The underlying type is an interface, so there is no direct constructor.

  • adopt (object Ajo)

    Wraps an existing MiniGameResult AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a MiniGameResult.
    • @r A new wrapper.
  • isSuccess ()

    Returns whether the minigame ended in success.

    • @r A bool.