Class used to represent the Talk action

Hierarchy (View Summary)

Constructors

Properties

Alias: string = "talk"

Alias used to identity the Talk action

Accessors

  • get alias(): string
  • Get the alias used to identify this action

    Returns string

  • get needsObject(): boolean
  • Returns true if this action requires another GameObject to work, otherwise false.

    Returns boolean

Methods

  • Execute the Talk action

    Parameters

    • alias: string

      Alias used to identify the kind of Talk action

    • gameObjects: GameObject[]

      Array of game objects, where the first index is a reference to the game object on which the Talk action should be executed.

    Returns undefined | ActionResult

    Result of the Talk action or undefined if unhandled

  • Execute the Talk action

    Parameters

    • gameObject: GameObject

      Reference to the game object on which the Talk action should be executed

    • OptionalchoiceId: number

      Optional ID of the specific choice to handle

    Returns undefined | ActionResult

    Result of the Talk action or undefined if unhandled

  • Execute the Talk action with a choice

    Parameters

    • alias: string

      Alias containing the character alias and choice id

    Returns undefined | ActionResult

    Result of the Talk action or undefined if unhandled

  • Get the name of this action

    Returns string