Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Blink

Hierarchy

  • Blink

Implements

Index

Constructors

constructor

  • new Blink(actor: Actor, timeVisible: number, timeNotVisible: number, numBlinks?: number): Blink
  • Parameters

    • actor: Actor
    • timeVisible: number
    • timeNotVisible: number
    • Default value numBlinks: number = 1

    Returns Blink

Properties

Private _actor

_actor: Actor

Private _duration

_duration: number

Private _elapsedTime

_elapsedTime: number = 0

Private _started

_started: boolean = false

Private _stopped

_stopped: boolean = false

Private _timeNotVisible

_timeNotVisible: number = 0

Private _timeVisible

_timeVisible: number = 0

Private _totalTime

_totalTime: number = 0

Methods

isComplete

  • isComplete(actor: Actor): boolean
  • Parameters

    Returns boolean

reset

  • reset(): void
  • Returns void

stop

  • stop(): void
  • Returns void

update

  • update(delta: any): void
  • Parameters

    • delta: any

    Returns void