Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TimerManager

Hierarchy

  • TimerManager

Implements

Index

Constructors

constructor

  • Parameters

    • trigger: Trigger<void>
    • fps: number

    Returns TimerManager

Properties

_fps

_fps: number

_identifiers

_identifiers: TimerIdentifier[]

_registered

_registered: boolean

_timers

_timers: Timer[]

_trigger

_trigger: Trigger<void>

Methods

Private _clear

  • Parameters

    Returns void

Private _onTimeoutFired

  • Parameters

    Returns void

Private _tick

  • _tick(): void
  • Returns void

clearInterval

  • Parameters

    Returns void

clearTimeout

  • Parameters

    Returns void

createTimer

  • createTimer(interval: number): Timer
  • Parameters

    • interval: number

    Returns Timer

    作成したTimer

deleteTimer

  • deleteTimer(timer: Timer): void
  • Parameters

    Returns void

destroy

  • destroy(): void

destroyed

  • destroyed(): boolean

setInterval

  • setInterval(interval: number, owner: any, handler?: function): TimerIdentifier
  • Parameters

    • interval: number
    • owner: any
    • Optional handler: function
        • (): void
        • Returns void

    Returns TimerIdentifier

setTimeout

  • setTimeout(milliseconds: number, owner: any, handler?: function): TimerIdentifier
  • Parameters

    • milliseconds: number
    • owner: any
    • Optional handler: function
        • (): void
        • Returns void

    Returns TimerIdentifier

Generated using TypeDoc