Base class used to represent a room

Implements the Examine action by default

Hierarchy (View Summary)

Implements

Constructors

Accessors

Methods

Constructors

  • Create a new instance of this room

    Parameters

    • alias: string

      Alias of this room

    Returns Room

Accessors

  • get alias(): string
  • Get the alias of this game object

    Returns string

Methods

  • Get the actions that can be used in this room

    Returns SyncOrAsync<Action[]>

    List of actions

  • Execute the Examine action

    Returns undefined | ActionResult

    Result of the Examine action or undefined if unhandled

  • Get the images used to graphically represent this room

    Returns SyncOrAsync<string[]>

    List of images

  • Get the name of this game object

    Returns SyncOrAsync<string>

  • Get the game objects that are located inside this room

    Returns SyncOrAsync<GameObject[]>

    List of game objects