Basics
Guides
API Reference
Basics
Guides
API Reference
[15:7] extends: EngineService
Wraps FXGL's QuestService, the engine service that holds the active quest list and drives objective updates each frame. Reached at runtime via fxgl.getQuestService; obtain a wrapper via adopt.
QuestService (Ajo = null)
Creates a QuestService wrapper. Empty by default; the (Ajo) form wraps an existing instance from fxgl.getQuestService.
Ajo is an optional AussomJavaObject around a QuestService.adopt (object Ajo)
Wraps an existing QuestService AussomJavaObject.
Ajo is an AussomJavaObject around a QuestService.A new wrapper.newQuest (string Name, VarsMap = null)
Creates a new quest bound to the world properties of the running game (or to the supplied PropertyMap). Note that newQuest only constructs the Quest -- it does NOT register it for tracking. Call startQuest to begin objective updates.
Name is the quest name.VarsMap is an optional PropertyMap wrapper. When null, FXGL uses the world's property map.A Quest wrapper.startQuest (object QuestObj)
Starts the given quest and adds it to the tracked list. Without this call, objectives never bind to world-property changes and the quest never progresses.
QuestObj is a Quest wrapper.this objectstopQuest (object QuestObj)
Stops the given quest and removes it from the tracked list.
QuestObj is a Quest wrapper.this objectstopAllQuests ()
Stops every tracked quest.
this objectgetQuests ()
Returns the unmodifiable observable list of currently tracked quests as a list of Quest wrappers.
A list of Quest wrappers.questsProperty ()
Returns the raw observable list of tracked quests as an AussomJavaObject. Useful when you need to bind the list to a JavaFX ListView; for simple iteration prefer getQuests.
An AussomJavaObject around an ObservableList
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.