Class

io.scalajs.dom.html.phaser

TimerEvent

Related Doc: package phaser

Permalink

class TimerEvent extends Object

A TimerEvent is a single event that is processed by a Phaser.Timer.

It consists of a delay, which is a value in milliseconds after which the event will fire. When the event fires it calls a specific callback with the specified arguments.

TimerEvents are removed by their parent timer once finished firing or repeating.

Use Phaser.Timer#add, Phaser.Timer#repeat, or Phaser.Timer#loop methods to create a new event.

Annotations
@RawJSType() @native() @JSName( "Phaser.TimerEvent" )
Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TimerEvent
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new TimerEvent(timer: Phaser.Timer, delay: Double, tick: Double, repeatCount: Int, loop: Boolean, callback: Function, callbackContext: Any, arguments: Array[_])

    Permalink

    timer

    The Timer object that this TimerEvent belongs to.

    delay

    The delay in ms at which this TimerEvent fires.

    tick

    The tick is the next game clock time that this event will fire at.

    repeatCount

    If this TimerEvent repeats it will do so this many times.

    loop

    True if this TimerEvent loops, otherwise false.

    callback

    The callback that will be called when the TimerEvent occurs.

    callbackContext

    The context in which the callback will be called.

    arguments

    Additional arguments to be passed to the callback.

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val arguments: Array[_]

    Permalink

    Additional arguments to be passed to the callback.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. val callback: Function

    Permalink

    The callback that will be called when the TimerEvent occurs.

  7. val callbackContext: Any

    Permalink

    The context in which the callback will be called.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val delay: Double

    Permalink

    The delay in ms at which this TimerEvent fires.

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  15. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  18. val loop: Boolean

    Permalink

    True if this TimerEvent loops, otherwise false.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  23. val repeatCount: Int

    Permalink

    If this TimerEvent repeats it will do so this many times.

  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  25. val tick: Double

    Permalink

    The tick is the next game clock time that this event will fire at.

  26. val timer: Phaser.Timer

    Permalink

    The Timer object that this TimerEvent belongs to.

  27. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  28. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  29. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  30. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped