Class used to represent the Examine action

Hierarchy (View Summary)

Constructors

Properties

Accessors

Methods

Constructors

Properties

Alias: string = "examine"

Alias used to identity the Examine 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 Examine action

    Parameters

    • _alias: string

      Ignored

    • gameObjects: GameObject[]

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

    Returns undefined | ActionResult

    Result of the Examine action or undefined if unhandled

  • Get the name of this action

    Returns string