Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: DialogueEdge

[14:7] extends: FxObj

Wraps FXGL's DialogueEdge (com.almasb.fxgl.cutscene.dialogue.DialogueEdge), a directed connection from one DialogueNode to another, optionally tagged with the source node's option id (for branching from a TextNode's options).

Methods

  • DialogueEdge (SourceObj = null, TargetObj = null, int OptionID = 0)

    Creates a new DialogueEdge from Source to Target with the given OptionID. Pass null for both nodes to construct an empty wrapper for adopt.

    • @p SourceObj is a DialogueNode wrapper.
    • @p TargetObj is a DialogueNode wrapper.
    • @p OptionID is the source-node option id (default 0).
  • adopt (object Ajo)

    Wraps an existing DialogueEdge AussomJavaObject.

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

    Returns the source DialogueNode as an AussomJavaObject.

    • @r An AussomJavaObject around a DialogueNode.
  • getTarget ()

    Returns the target DialogueNode as an AussomJavaObject.

    • @r An AussomJavaObject around a DialogueNode.
  • getOptionID ()

    Returns the source-node option id this edge follows.

    • @r An int.