SpriteBatch#contains()

contains(child) → {Boolean} Determines whether the specified display object is a child of the DisplayObjectContainer instance or the instance itself. Parameters Name Type Description child DisplayObject - Returns Boolean - Inherited From PIXI.DisplayObjectContainer#contains Source code: pixi/display/DisplayObjectContainer.js (Line 449)

SpriteBatch#classType

classType : Object The type of objects that will be created when using create or createMultiple. Any object may be used but it should extend either Sprite or Image and accept the same constructor arguments:when a new object is created it is passed the following parameters to its constructor: (game, x, y, key, frame). Inherited From Phaser.Group#classType Default Value Phaser.Sprite Source code: core/Group.js (Line 130)

SpriteBatch#children

[readonly] children : Array.<DisplayObject> [read-only] The array of children of this container. Type Array.<DisplayObject> Inherited From PIXI.DisplayObjectContainer#children Source code: pixi/display/DisplayObjectContainer.js (Line 17)

SpriteBatch#checkProperty()

checkProperty(child, key, value, force) → {boolean} Checks a property for the given value on the child. Parameters Name Type Argument Default Description child any The child to check the property value on. key array An array of strings that make up the property that will be set. value any The value that will be checked. force boolean <optional> false If force is true then the property will be checked on the child regardless if it already exists or not. If true an

SpriteBatch#checkAll()

checkAll(key, value, checkAlive, checkVisible, force) Quickly check that the same property across all children of this group is equal to the given value. This call doesn't descend down children, so if you have a Group inside of this group, the property will be checked on the group but not its children. Parameters Name Type Argument Default Description key string The property, as a string, to be set. For example: 'body.velocity.x' value any The value that will be checked. checkAli

SpriteBatch#centerY

centerY : number The center y coordinate of this Group. It is derived by calling getBounds, calculating the Groups dimensions based on itsvisible children. Inherited From Phaser.Group#centerY Source code: core/Group.js (Line 2733)

SpriteBatch#centerX

centerX : number The center x coordinate of this Group. It is derived by calling getBounds, calculating the Groups dimensions based on itsvisible children. Inherited From Phaser.Group#centerX Source code: core/Group.js (Line 2705)

SpriteBatch#cameraOffset

cameraOffset : Phaser.Point If this object is fixedToCamera then this stores the x/y position offset relative to the top-left of the camera view.If the parent of this Group is also fixedToCamera then the offset here is in addition to that and should typically be disabled. Inherited From Phaser.Group#cameraOffset Source code: core/Group.js (Line 272)

SpriteBatch#callAllExists()

callAllExists(callback, existsValue, parameter) Calls a function, specified by name, on all children in the group who exist (or do not exist). After the existsValue parameter you can add as many parameters as you like, which will all be passed to the child callback. Parameters Name Type Argument Description callback string Name of the function on the children to call. existsValue boolean Only children with exists=existsValue will be called. parameter any <repeatable> Additio

SpriteBatch#callAll()

callAll(method, context, args) Calls a function, specified by name, on all on children. The function is called for all children regardless if they are dead or alive (see callAllExists for different options).After the method parameter and context you can add as many extra parameters as you like, which will all be passed to the child. Parameters Name Type Argument Default Description method string Name of the function on the child to call. Deep property lookup is supported. context stri