Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnimTimer

The class AnimTimer allows to create a timer for an animation.

Hierarchy

Index

Constructors

constructor

Properties

Protected _bus

_bus: EventBus = new EventBus(this)

Protected _cfg

Protected _count

_count: number = 0

Protected _et

_et: number = 0

Protected _pt

_pt: number = 0

Protected _sta

_sta: TimerState = TimerState.STOPPED

Protected _task

_task: TimerTask

Protected _timer

_timer: any

Protected _ts

_ts: number = 0

Protected _ts0

_ts0: any

Methods

Protected _cancelTimer

  • _cancelTimer(): void

Protected _finish

  • _finish(): void

Protected _reset

  • _reset(): void

Protected _start

  • _start(begin: boolean): void

Protected _state

count

  • count(): number

fps

  • fps(): number
  • Returns current frame rate.

    Returns number

getState

isRunning

  • isRunning(): boolean

looped

  • looped(): number

maxFPS

  • maxFPS(): number

off

on

pause

  • pause(): this

start

  • start(): void

stop

  • stop(): this

tick

  • tick(ts: number): void
  • Parameters

    • ts: number

    Returns void