FORGE. TimerEvent

new TimerEvent(timer, delay, tick, repeatCount, loop, callback, callbackContext, args)

Describe a timer event.
Parameters:
Name Type Description
timer FORGE.Timer The FORGE.Timer that handle this event.
delay number Delay in millisenconds.
tick number The current clock tick.
repeatCount number The number of time the timer should repeat itself.
loop boolean Does the timer have to loop?
callback function The callback function for this timer timer event complete.
callbackContext Object The context in which the callback have to be executed.
args Array.<*> The arguments to pass to the callback.
Source:

Members

delay :number

Delay in millisenconds.
Type:
  • number
Source:

loop :boolean

Does the timer have to loop?
Type:
  • boolean
Source:

pendingDelete :boolean

Must be deleted?
Type:
  • boolean
Source:

repeatCount :number

The number of time the timer should repeat itself.
Type:
  • number
Source:

tick :number

The current clock tick.
Type:
  • number
Source:

timer :FORGE.Timer

The timer object.
Type:
Source:

Methods

execute()

Execute the callback with arguments.
Source:

FORGE. TimerEvent

Members
Methods