Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: MiniGameView

[19:7] extends: Parent

Wraps FXGL's abstract MiniGameView (com.almasb.fxgl.minigames.MiniGameView), the JavaFX Parent subclass that renders a MiniGame. Concrete views like CircuitBreakerView and SweetSpotView extend this; their wrappers are the typical entry point. Because MiniGameView extends javafx.scene.Parent, the wrapper's .obj plays into any JavaFX scene-graph add through the existing fx scene wrappers.

Methods

  • MiniGameView ()

    Constructs an empty wrapper; populate via adopt.

  • adopt (object Ajo)

    Wraps an existing MiniGameView AussomJavaObject.

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

    Returns the backing MiniGame the view drives.

    • @r An AussomJavaObject around a MiniGame.
  • onInitInput (object InputObj)

    Wires the view's input bindings to the given Input service. Called by MiniGameSubScene at setup.

    • @p InputObj is an AussomJavaObject around an Input service.
    • @r this object
  • onUpdate (double Tpf)

    Advances the view by tpf seconds.

    • @p Tpf is the time per frame in seconds.
    • @r this object