An icon representing a Door Control

Hierarchy

  • any
    • DoorControl

Accessors

  • get center(): Point
  • The center of the wall which contains the door.

    Returns Point

  • get isVisible(): boolean
  • Determine whether the DoorControl is visible to the calling user's perspective. The control is always visible if the user is a GM and no Tokens are controlled.

    Returns boolean

    See

Methods

  • Draw the DoorControl icon, displaying its icon texture and border

    Returns Promise<DoorControl>

  • Get the icon texture to use for the Door Control icon based on the door state

    Returns Texture

  • Protected

    Handle mouse over events on a door control icon.

    Parameters

    • event: FederatedEvent

      The originating interaction event

    Returns boolean

  • Protected

    Handle mouse out events on a door control icon.

    Parameters

    • event: FederatedEvent

      The originating interaction event

    Returns boolean

  • Protected

    Handle left mouse down events on a door control icon. This should only toggle between the OPEN and CLOSED states.

    Parameters

    • event: FederatedEvent

      The originating interaction event

    Returns any

  • Protected

    Handle right mouse down events on a door control icon. This should toggle whether the door is LOCKED or CLOSED.

    Parameters

    • event: FederatedEvent

      The originating interaction event

    Returns any