FlexLayer#customSort()

customSort(sortHandler, context) Sort the children in the group according to custom sort function. The sortHandler is provided the two parameters: the two children involved in the comparison (a and b).It should return -1 if a > b, 1 if a < b or 0 if a === b. Parameters Name Type Argument Description sortHandler function The custom sort function. context object <optional> The context in which the sortHandler is called. Inherited From Phaser.Group#customSort Source code:

FlexLayer#cursorIndex

[readonly] cursorIndex : integer The current index of the Group cursor. Advance it with Group.next. Inherited From Phaser.Group#cursorIndex Source code: core/Group.js (Line 255)

FlexLayer#cursor

cursor : DisplayObject The current display object that the group cursor is pointing to, if any. (Can be set manually.) The cursor is a way to iterate through the children in a Group using next and previous. Inherited From Phaser.Group#cursor Source code: core/Group.js (Line 138)

FlexLayer#createMultiple()

createMultiple(quantity, key, frame, exists) → {array} Creates multiple Phaser.Sprite objects and adds them to the top of this Group. This method is useful if you need to quickly generate a pool of sprites, such as bullets. Use classType to change the type of object created. You can provide an array as the key and / or frame arguments. When you do thisit will create quantity Sprites for every key (and frame) in the arrays. For example: createMultiple(25, ['ball', 'carrot']) In the above code

FlexLayer#create()

create(x, y, key, frame, exists, index) → {DisplayObject} Creates a new Phaser.Sprite object and adds it to the top of this group. Use classType to change the type of object created. The child is automatically added to the top of the group, and is displayed above every previous child. Or if the optional index is specified, the child is added at the location specified by the index value,this allows you to control child ordering. If Group.enableBody is set, then a physics body will be created o

FlexLayer#countLiving()

countLiving() → {integer} Get the number of living children in this group. Returns integer - The number of children flagged as alive. Inherited From Phaser.Group#countLiving Source code: core/Group.js (Line 2326)

FlexLayer#countDead()

countDead() → {integer} Get the number of dead children in this group. Returns integer - The number of children flagged as dead. Inherited From Phaser.Group#countDead Source code: core/Group.js (Line 2338)

FlexLayer#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)

FlexLayer#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)

FlexLayer#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)