Basics

Guides

API Reference

Menu

Basics

Guides

API Reference

class: FunctionCallDelegate

[20:7] extends: FxObj

Wraps FXGL's FunctionCallDelegate (com.almasb.fxgl.cutscene.dialogue.FunctionCallDelegate), a marker interface that opts a Java class into having its methods scanned by a FunctionCallHandler. Aussom code rarely implements this directly; instead, pass an arbitrary Java object whose method names match the function-call lines the dialogue graph uses, and add it to a FunctionCallHandler via addFunctionCallDelegate. This wrapper exists for callers that need to adopt an existing delegate instance reached through AJI.

Methods

  • FunctionCallDelegate ()

    Constructs an empty wrapper; populate via adopt.

  • adopt (object Ajo)

    Wraps an existing FunctionCallDelegate AussomJavaObject.

    • @p Ajo is an AussomJavaObject around a FunctionCallDelegate.
    • @r A new wrapper.