Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: BranchNode

[14:7] extends: DialogueNode

Wraps FXGL's BranchNode (com.almasb.fxgl.cutscene.dialogue.BranchNode), a DialogueNode subclass that evaluates the text as a boolean condition and follows one of two outgoing edges based on the result.

Methods

  • BranchNode (Text = null)

    Creates a new BranchNode with the given condition text. Pass null for the adopt path.

    • @p Text is the FXGL condition string (e.g. "x >= 5").
  • adopt (object Ajo)

    Wraps an existing BranchNode AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a BranchNode.
    • @r A new wrapper.
  • copy ()

    Returns a shallow copy of this BranchNode.

    • @r A new BranchNode wrapper.