Skip to main content

Blink

Used for implementing actions for the Action API.

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Blink(entity: Entity<any>, timeVisible: number, timeNotVisible: number, numBlinks?: number): Blink
  • Parameters

    • entity: Entity<any>
    • timeVisible: number
    • timeNotVisible: number
    • numBlinks: number = 1

    Returns Blink

Properties

id

id: number = ...

Methods

publicisComplete

  • isComplete(): boolean
  • Returns boolean

publicreset

  • reset(): void
  • Returns void

publicstop

  • stop(): void
  • Returns void

publicupdate

  • update(elapsedMs: number): void
  • Parameters

    • elapsedMs: number

    Returns void