Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: RandomOccurrenceView

[14:7] extends: MiniGameView

Wraps FXGL's RandomOccurrenceView (com.almasb.fxgl.minigames.randomoccurrence.RandomOccurrenceView), a 400x120 panel rendering two race bars driven by the underlying RandomOccurrenceMiniGame.

Methods

  • RandomOccurrenceView (MiniGameObj = null)

    Creates a new RandomOccurrenceView. Pass null for the adopt path.

    • @p MiniGameObj is a RandomOccurrenceMiniGame wrapper.
  • adopt (object Ajo)

    Wraps an existing RandomOccurrenceView AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a RandomOccurrenceView.
    • @r A new wrapper.