Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WaitMan

Hierarchy

  • EventDispatcher
    • WaitMan

Index

Constructors

  • Returns WaitMan

Methods

  • addEventListener<T>(type: T, listener: EventListener<Event, T, WaitMan>): void
  • Adds a listener to an event type.

    Type parameters

    • T: string

    Parameters

    • type: T

      The type of event to listen to.

    • listener: EventListener<Event, T, WaitMan>

      The function that gets called when the event is fired.

    Returns void

  • dispatchEvent(event: Event): void
  • Fire an event type.

    Parameters

    • event: Event

    Returns void

  • goHome(): void
  • Returns void

  • hasEventListener<T>(type: T, listener: EventListener<Event, T, WaitMan>): boolean
  • Checks if listener is added to an event type.

    Type parameters

    • T: string

    Parameters

    • type: T

      The type of event to listen to.

    • listener: EventListener<Event, T, WaitMan>

      The function that gets called when the event is fired.

    Returns boolean

  • removeEventListener<T>(type: T, listener: EventListener<Event, T, WaitMan>): void
  • Removes a listener from an event type.

    Type parameters

    • T: string

    Parameters

    • type: T

      The type of the listener that gets removed.

    • listener: EventListener<Event, T, WaitMan>

      The listener function that gets removed.

    Returns void

  • wait(time: number): Promise<void>
  • Parameters

    • time: number

    Returns Promise<void>

Generated using TypeDoc