Class used to present a dialogue choice

Constructors

Properties

Accessors

Methods

Constructors

  • Create a new instance of a dialogue choice

    Parameters

    • id: number

      ID of the choice

    • text: string

      Text of the choice

    Returns TalkChoice

Properties

_id: number

ID of the choice

_text: string

Text of the choice

Accessors

  • get id(): number
  • Get the ID of the choice

    Returns number

  • get text(): string
  • Get the text of the choice

    Returns string

Methods

  • Get the action alias for this choice

    Parameters

    • character: Character

      Character who is offering the choice

    Returns string

    Action alias for this choice