Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: AchievementProgressEvent

[17:7] extends: AchievementEvent

Wraps FXGL's AchievementProgressEvent (com.almasb.fxgl.achievement.AchievementProgressEvent), the event fired on the EventBus when a numeric-value achievement makes progress. Carries the current value and the target value. Subscribe via the static PROGRESS() EventType helper, e.g. bus.addEventHandler(AchievementProgressEvent.PROGRESS(), cb);

Methods

  • AchievementProgressEvent (AchievementObj = null, double Value = 0.0, double Max = 0.0)

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

    • @p AchievementObj is an Achievement wrapper.
    • @p Value is the current numeric value.
    • @p Max is the target numeric value.
  • adopt (object Ajo)

    Wraps an existing AchievementProgressEvent AussomJavaObject.

    • @p Ajo is an AussomJavaObject around an AchievementProgressEvent.
    • @r A new wrapper.
  • getValue ()

    Returns the current numeric value. @r A double.

  • getMax ()

    Returns the target numeric value. @r A double.

  • PROGRESS ()

    Returns the JavaFX EventType for progress events.

    • @r An AussomJavaObject around an EventType.