Class

io.scalajs.dom.html.phaser

PluginManager

Related Doc: package phaser

Permalink

class PluginManager extends Object

The Plugin Manager is responsible for the loading, running and unloading of Phaser Plugins.

Annotations
@RawJSType() @native() @JSName( "Phaser.PluginManager" )
See also

http://phaser.io/docs/2.6.2/Phaser.PluginManager.html

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PluginManager
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PluginManager(game: Phaser.Game)

    Permalink

    game

    A reference to the currently running game.

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. def add(plugin: Phaser.Plugin, parameter: Any*): Phaser.Plugin

    Permalink

    Add a new Plugin into the PluginManager.

    Add a new Plugin into the PluginManager. The Plugin must have 2 properties: game and parent. Plugin.game is set to the game reference the PluginManager uses, and parent is set to the PluginManager.

    plugin

    The Plugin to add into the PluginManager. This can be a function or an existing object.

    parameter

    Additional arguments that will be passed to the Plugin.init method.

    returns

    The Plugin that was added to the manager.

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def destroy(): Unit

    Permalink

    Clear down this PluginManager, calls destroy on every plugin and nulls out references.

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. var game: Phaser.Game

    Permalink

    A reference to the currently running game.

  12. final def getClass(): Class[_]

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

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

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

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

    Permalink
    Definition Classes
    Object
  17. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  20. def plugins: Array[Phaser.Plugin]

    Permalink

    An array of all the plugins being managed by this PluginManager.

  21. def postRender(): Unit

    Permalink

    Post-render is called after the Game Renderer and State.render have run.

    Post-render is called after the Game Renderer and State.render have run. It only calls plugins who have visible=true.

  22. def postUpdate(): Unit

    Permalink

    PostUpdate is the last thing to be called before the world render.

    PostUpdate is the last thing to be called before the world render. In particular, it is called after the world postUpdate, which means the camera has been adjusted. It only calls plugins who have active=true.

  23. def preUpdate(): Unit

    Permalink

    Pre-update is called at the very start of the update cycle, before any other subsystems have been updated (including Physics).

    Pre-update is called at the very start of the update cycle, before any other subsystems have been updated (including Physics). It only calls plugins who have active=true.

  24. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  25. def remove(plugin: Phaser.Plugin, destroy: Boolean = js.native): Unit

    Permalink

    Remove a Plugin from the PluginManager.

    Remove a Plugin from the PluginManager. It calls Plugin.destroy on the plugin before removing it from the manager.

    plugin

    The plugin to be removed.

    destroy

    Call destroy on the plugin that is removed?

  26. def removeAll(): Unit

    Permalink

    Remove all Plugins from the PluginManager.

    Remove all Plugins from the PluginManager. It calls Plugin.destroy on every plugin before removing it from the manager.

  27. def render(): Unit

    Permalink

    Render is called right after the Game Renderer completes, but before the State.render.

    Render is called right after the Game Renderer completes, but before the State.render. It only calls plugins who have visible=true.

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

    Permalink
    Definition Classes
    AnyRef
  29. def toLocaleString(): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. def update(): Unit

    Permalink

    Update is called after all the core subsystems (Input, Tweens, Sound, etc) and the State have updated, but before the render.

    Update is called after all the core subsystems (Input, Tweens, Sound, etc) and the State have updated, but before the render. It only calls plugins who have active=true.

  32. def valueOf(): Any

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. 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