Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: QuestState

[17:14] static extends: object

Helper for FXGL's QuestState enum (com.almasb.fxgl.quest.QuestState). Identifies the four states a Quest (or QuestObjective) can be in:

  • NOT_STARTED — quest exists but has not been started.
  • ACTIVE — quest is in progress.
  • COMPLETED — quest succeeded.
  • FAILED — quest failed (objective time ran out).

Methods

  • NOT_STARTED ()

  • ACTIVE ()

  • COMPLETED ()

  • FAILED ()

  • get (string Name)

    Resolves a QuestState by name.

    • @p Name is one of "NOT_STARTED", "ACTIVE", "COMPLETED", "FAILED".
  • values ()

    Returns QuestState[] containing every constant.

  • valueOf (string Name)

    Standard Enum.valueOf strict lookup.