Basics
Guides
API Reference
Basics
Guides
API Reference
[17:7] extends: FxObj
Wraps FXGL's QuestObjective, a single goal inside a Quest. Each objective watches a named world property and transitions through ACTIVE, COMPLETED, or FAILED states. Time-limited objectives also expose a remaining-time observable that ticks down each frame. Aussom users typically obtain a QuestObjective from Quest.addIntObjective / Quest.addBooleanObjective rather than constructing one directly.
QuestObjective ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing QuestObjective AussomJavaObject.
Ajo is an AussomJavaObject around a QuestObjective.A new wrapper.getDescription ()
Returns the objective's description.
A string.getExpireDuration ()
Returns the objective's expire duration in seconds. 0.0 means no time limit.
A double in seconds.getState ()
Returns the current state name ("ACTIVE", "COMPLETED", "FAILED").
A string.stateProperty ()
Returns the underlying state ObjectProperty for binding.
An AussomJavaObject around an ObjectProperty.getTimeRemaining ()
Returns the remaining time in seconds (for time-limited objectives). 0.0 for unlimited objectives.
A double in seconds.timeRemainingProperty ()
Returns the underlying time-remaining ReadOnlyDoubleProperty for binding to a timer label.
An AussomJavaObject around a ReadOnlyDoubleProperty.complete ()
Marks the objective complete immediately.
this objectfail ()
Marks the objective failed immediately.
this objectreactivate ()
Returns a completed or failed objective to the active state.
this object
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.