phaser/docs/Phaser.Physics.P2.BodyDebug.html

20686 lines
342 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Phaser Class: BodyDebug</title>
<!--[if lt IE 9]>
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
2014-11-15 20:01:46 +00:00
<link type="text/css" rel="stylesheet" href="styles/default.css">
<link type="text/css" rel="stylesheet" href="styles/sunlight.default.css">
<link type="text/css" rel="stylesheet" href="styles/site.cerulean.css">
</head>
<body>
2014-11-25 00:23:44 +00:00
<div class="container-fluid">
<div class="navbar navbar-fixed-top navbar-inverse">
2014-11-25 00:23:44 +00:00
<div style="position: absolute; width: 143px; height: 31px; right: 10px; top: 10px; z-index: 1050"><a href="http://phaser.io"><img src="img/phaser.png" border="0" /></a></div>
<div class="navbar-inner">
2014-11-25 00:23:44 +00:00
<a class="brand" href="index.html">Phaser API</a>
<ul class="nav">
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="namespaces.list.html" class="dropdown-toggle" data-toggle="dropdown">Namespaces<b
class="caret"></b></a>
<ul class="dropdown-menu ">
2014-04-10 22:13:43 +00:00
<li class="class-depth-0">
<a href="Phaser.html">Phaser</a>
</li>
2015-10-15 11:06:38 +00:00
<li class="class-depth-0">
<a href="Phaser.KeyCode.html">KeyCode</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-0">
<a href="PIXI.html">PIXI</a>
</li>
</ul>
</li>
<li class="dropdown">
<a href="classes.list.html" class="dropdown-toggle" data-toggle="dropdown">Classes<b
class="caret"></b></a>
<ul class="dropdown-menu ">
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Animation.html">Animation</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.AnimationManager.html">AnimationManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.AnimationParser.html">AnimationParser</a>
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
<a href="Phaser.ArraySet.html">ArraySet</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="Phaser.ArrayUtils.html">ArrayUtils</a>
</li>
2014-10-09 15:12:53 +00:00
<li class="class-depth-1">
<a href="Phaser.AudioSprite.html">AudioSprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.BitmapData.html">BitmapData</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.BitmapText.html">BitmapText</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-1">
<a href="Phaser.Bullet.html">Bullet</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Button.html">Button</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Cache.html">Cache</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Camera.html">Camera</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Canvas.html">Canvas</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Circle.html">Circle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Color.html">Color</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-2">
<a href="Phaser.Component.Angle.html">Angle</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Animation.html">Animation</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.AutoCull.html">AutoCull</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Bounds.html">Bounds</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.BringToTop.html">BringToTop</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Core.html">Core</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Crop.html">Crop</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Delta.html">Delta</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Destroy.html">Destroy</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.FixedToCamera.html">FixedToCamera</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Health.html">Health</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InCamera.html">InCamera</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InputEnabled.html">InputEnabled</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.InWorld.html">InWorld</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.LifeSpan.html">LifeSpan</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.LoadTexture.html">LoadTexture</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Overlap.html">Overlap</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.PhysicsBody.html">PhysicsBody</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Reset.html">Reset</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.ScaleMinMax.html">ScaleMinMax</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Component.Smoothed.html">Smoothed</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.Create.html">Create</a>
</li>
<li class="class-depth-1">
<a href="Phaser.Creature.html">Creature</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Device.html">Device</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.DeviceButton.html">DeviceButton</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="Phaser.DOM.html">DOM</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Easing.html">Easing</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-2">
<a href="Phaser.Easing.Back.html">Back</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Bounce.html">Bounce</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Circular.html">Circular</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Cubic.html">Cubic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Elastic.html">Elastic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Exponential.html">Exponential</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Linear.html">Linear</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quadratic.html">Quadratic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quartic.html">Quartic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Quintic.html">Quintic</a>
</li>
<li class="class-depth-2">
<a href="Phaser.Easing.Sinusoidal.html">Sinusoidal</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Ellipse.html">Ellipse</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Events.html">Events</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Filter.html">Filter</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-1">
<a href="Phaser.FlexGrid.html">FlexGrid</a>
</li>
<li class="class-depth-1">
<a href="Phaser.FlexLayer.html">FlexLayer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Frame.html">Frame</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.FrameData.html">FrameData</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Game.html">Game</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.GameObjectCreator.html">GameObjectCreator</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.GameObjectFactory.html">GameObjectFactory</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Gamepad.html">Gamepad</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Graphics.html">Graphics</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Group.html">Group</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Image.html">Image</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.ImageCollection.html">ImageCollection</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Input.html">Input</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.InputHandler.html">InputHandler</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Key.html">Key</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Keyboard.html">Keyboard</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Line.html">Line</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.LinkedList.html">LinkedList</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Loader.html">Loader</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.LoaderParser.html">LoaderParser</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Math.html">Math</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.Matrix.html">Matrix</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Mouse.html">Mouse</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.MSPointer.html">MSPointer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Net.html">Net</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Particle.html">Particle</a>
</li>
<li class="class-depth-1">
<a href="Phaser.Particles.html">Particles</a>
</li>
2014-10-09 15:12:53 +00:00
<li class="class-depth-2">
<a href="Phaser.Particles.Arcade.html">Arcade</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Particles.Arcade.Emitter.html">Emitter</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Physics.html">Physics</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Physics.Arcade.html">Arcade</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Arcade.Body.html">Body</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-3">
2015-08-24 14:43:45 +00:00
<a href="Phaser.Physics.Arcade.TilemapCollision.html">TilemapCollision</a>
2015-03-23 23:46:30 +00:00
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Physics.Ninja.html">Ninja</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.AABB.html">AABB</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Body.html">Body</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Circle.html">Circle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.Ninja.Tile.html">Tile</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Physics.P2.html">P2</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Body.html">Body</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.BodyDebug.html">BodyDebug</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.CollisionGroup.html">CollisionGroup</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.ContactMaterial.html">ContactMaterial</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.DistanceConstraint.html">DistanceConstraint</a>
</li>
<li class="class-depth-3">
<a href="Phaser.Physics.P2.FixtureList.html">FixtureList</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.GearConstraint.html">GearConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.InversePointProxy.html">InversePointProxy</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.LockConstraint.html">LockConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Material.html">Material</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.PointProxy.html">PointProxy</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.PrismaticConstraint.html">PrismaticConstraint</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.RevoluteConstraint.html">RevoluteConstraint</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.RotationalSpring.html">RotationalSpring</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-3">
<a href="Phaser.Physics.P2.Spring.html">Spring</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Plugin.html">Plugin</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.PluginManager.html">PluginManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Point.html">Point</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Pointer.html">Pointer</a>
</li>
2015-10-15 11:06:38 +00:00
<li class="class-depth-1">
<a href="Phaser.PointerMode.html">PointerMode</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Polygon.html">Polygon</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.QuadTree.html">QuadTree</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.RandomDataGenerator.html">RandomDataGenerator</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Rectangle.html">Rectangle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.RenderTexture.html">RenderTexture</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.RequestAnimationFrame.html">RequestAnimationFrame</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.RetroFont.html">RetroFont</a>
</li>
2014-09-09 14:36:56 +00:00
<li class="class-depth-1">
<a href="Phaser.Rope.html">Rope</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1">
<a href="Phaser.RoundedRectangle.html">RoundedRectangle</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.ScaleManager.html">ScaleManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Signal.html">Signal</a>
</li>
<li class="class-depth-1">
<a href="Phaser.SignalBinding.html">SignalBinding</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.SinglePad.html">SinglePad</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Sound.html">Sound</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.SoundManager.html">SoundManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Sprite.html">Sprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.SpriteBatch.html">SpriteBatch</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Stage.html">Stage</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.State.html">State</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.StateManager.html">StateManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Text.html">Text</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Tile.html">Tile</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Tilemap.html">Tilemap</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.TilemapLayer.html">TilemapLayer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.TilemapParser.html">TilemapParser</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Tileset.html">Tileset</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.TileSprite.html">TileSprite</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Time.html">Time</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Timer.html">Timer</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.TimerEvent.html">TimerEvent</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Touch.html">Touch</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Tween.html">Tween</a>
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
<a href="Phaser.TweenData.html">TweenData</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.TweenManager.html">TweenManager</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
<a href="Phaser.Utils.html">Utils</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-2">
<a href="Phaser.Utils.Debug.html">Debug</a>
</li>
2014-04-10 22:13:43 +00:00
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="Phaser.Video.html">Video</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-1">
<a href="Phaser.Weapon.html">Weapon</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="Phaser.World.html">World</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="PIXI.AbstractFilter.html">AbstractFilter</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-07-22 14:31:30 +00:00
<a href="PIXI.BaseTexture.html">BaseTexture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasBuffer.html">CanvasBuffer</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasGraphics.html">CanvasGraphics</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasMaskManager.html">CanvasMaskManager</a>
</li>
2015-08-24 14:43:45 +00:00
<li class="class-depth-1">
<a href="PIXI.CanvasPool.html">CanvasPool</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="PIXI.CanvasRenderer.html">CanvasRenderer</a>
</li>
<li class="class-depth-1">
<a href="PIXI.CanvasTinter.html">CanvasTinter</a>
</li>
<li class="class-depth-1">
<a href="PIXI.ComplexPrimitiveShader.html">ComplexPrimitiveShader</a>
</li>
<li class="class-depth-1">
<a href="PIXI.DisplayObject.html">DisplayObject</a>
</li>
<li class="class-depth-1">
<a href="PIXI.DisplayObjectContainer.html">DisplayObjectContainer</a>
</li>
2016-02-08 17:01:36 +00:00
<li class="class-depth-1">
<a href="PIXI.EarCut.html">EarCut</a>
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
<a href="PIXI.Event.html">Event</a>
</li>
<li class="class-depth-1">
<a href="PIXI.EventTarget.html">EventTarget</a>
</li>
<li class="class-depth-1">
<a href="PIXI.FilterTexture.html">FilterTexture</a>
</li>
<li class="class-depth-1">
<a href="PIXI.Graphics.html">Graphics</a>
</li>
<li class="class-depth-1">
<a href="PIXI.GraphicsData.html">GraphicsData</a>
</li>
<li class="class-depth-1">
<a href="PIXI.PIXI.html">PIXI</a>
</li>
<li class="class-depth-1">
<a href="PIXI.PixiFastShader.html">PixiFastShader</a>
</li>
<li class="class-depth-1">
<a href="PIXI.PixiShader.html">PixiShader</a>
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.PolyK.html">PolyK</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.PrimitiveShader.html">PrimitiveShader</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.RenderTexture.html">RenderTexture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Rope.html">Rope</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Sprite.html">Sprite</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.SpriteBatch.html">SpriteBatch</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Strip.html">Strip</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.StripShader.html">StripShader</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.Texture.html">Texture</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.TilingSprite.html">TilingSprite</a>
2014-11-15 20:01:46 +00:00
</li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLBlendModeManager.html">WebGLBlendModeManager</a>
2014-11-25 00:23:44 +00:00
</li>
2014-11-15 20:01:46 +00:00
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLFastSpriteBatch.html">WebGLFastSpriteBatch</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLFilterManager.html">WebGLFilterManager</a>
2014-11-15 20:01:46 +00:00
</li>
<li class="class-depth-1">
2015-03-23 23:46:30 +00:00
<a href="PIXI.WebGLRenderer.html">WebGLRenderer</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
</ul>
</li>
<li class="dropdown">
<a href="global.html" class="dropdown-toggle" data-toggle="dropdown">Global<b
class="caret"></b></a>
<ul class="dropdown-menu ">
2016-06-03 17:48:34 +00:00
<li class="class-depth-0">
<a href="global.html#ANGLE_DOWN">ANGLE_DOWN</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_LEFT">ANGLE_LEFT</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_NORTH_EAST">ANGLE_NORTH_EAST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_NORTH_WEST">ANGLE_NORTH_WEST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_RIGHT">ANGLE_RIGHT</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_SOUTH_EAST">ANGLE_SOUTH_EAST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_SOUTH_WEST">ANGLE_SOUTH_WEST</a>
</li>
<li class="class-depth-0">
<a href="global.html#ANGLE_UP">ANGLE_UP</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#AUTO">AUTO</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BITMAPDATA">BITMAPDATA</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BITMAPTEXT">BITMAPTEXT</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
<a href="global.html#blendModes">blendModes</a>
2014-11-15 20:01:46 +00:00
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#BOTTOM_CENTER">BOTTOM_CENTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#BOTTOM_LEFT">BOTTOM_LEFT</a>
</li>
<li class="class-depth-0">
<a href="global.html#BOTTOM_RIGHT">BOTTOM_RIGHT</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#BUTTON">BUTTON</a>
</li>
<li class="class-depth-0">
<a href="global.html#CANVAS">CANVAS</a>
</li>
<li class="class-depth-0">
<a href="global.html#CANVAS_FILTER">CANVAS_FILTER</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#CENTER">CENTER</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#CIRCLE">CIRCLE</a>
</li>
<li class="class-depth-0">
<a href="global.html#CREATURE">CREATURE</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#displayList">displayList</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#DOWN">DOWN</a>
</li>
<li class="class-depth-0">
<a href="global.html#ELLIPSE">ELLIPSE</a>
</li>
<li class="class-depth-0">
<a href="global.html#EMITTER">EMITTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#GAMES">GAMES</a>
</li>
<li class="class-depth-0">
<a href="global.html#GRAPHICS">GRAPHICS</a>
</li>
<li class="class-depth-0">
<a href="global.html#GROUP">GROUP</a>
</li>
<li class="class-depth-0">
<a href="global.html#HEADLESS">HEADLESS</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#HORIZONTAL">HORIZONTAL</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#IMAGE">IMAGE</a>
</li>
2016-06-03 17:48:34 +00:00
<li class="class-depth-0">
<a href="global.html#intersectsRectangle">intersectsRectangle</a>
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#LANDSCAPE">LANDSCAPE</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#LEFT">LEFT</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#LEFT_BOTTOM">LEFT_BOTTOM</a>
</li>
<li class="class-depth-0">
<a href="global.html#LEFT_CENTER">LEFT_CENTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#LEFT_TOP">LEFT_TOP</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#LINE">LINE</a>
</li>
<li class="class-depth-0">
<a href="global.html#MATRIX">MATRIX</a>
</li>
<li class="class-depth-0">
<a href="global.html#NONE">NONE</a>
</li>
2016-02-08 17:01:36 +00:00
<li class="class-depth-0">
<a href="global.html#PENDING_ATLAS">PENDING_ATLAS</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#POINT">POINT</a>
</li>
<li class="class-depth-0">
<a href="global.html#POINTER">POINTER</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#POLYGON">POLYGON</a>
2014-11-15 20:01:46 +00:00
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#PORTRAIT">PORTRAIT</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RECTANGLE">RECTANGLE</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RENDERTEXTURE">RENDERTEXTURE</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RETROFONT">RETROFONT</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#RIGHT">RIGHT</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#RIGHT_BOTTOM">RIGHT_BOTTOM</a>
</li>
<li class="class-depth-0">
<a href="global.html#RIGHT_CENTER">RIGHT_CENTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#RIGHT_TOP">RIGHT_TOP</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#ROPE">ROPE</a>
</li>
<li class="class-depth-0">
<a href="global.html#ROUNDEDRECTANGLE">ROUNDEDRECTANGLE</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
<a href="global.html#scaleModes">scaleModes</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#SPRITE">SPRITE</a>
</li>
<li class="class-depth-0">
<a href="global.html#SPRITEBATCH">SPRITEBATCH</a>
</li>
<li class="class-depth-0">
<a href="global.html#TEXT">TEXT</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILEMAP">TILEMAP</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILEMAPLAYER">TILEMAPLAYER</a>
</li>
<li class="class-depth-0">
<a href="global.html#TILESPRITE">TILESPRITE</a>
</li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-0">
<a href="global.html#TOP_CENTER">TOP_CENTER</a>
</li>
<li class="class-depth-0">
<a href="global.html#TOP_LEFT">TOP_LEFT</a>
</li>
<li class="class-depth-0">
<a href="global.html#TOP_RIGHT">TOP_RIGHT</a>
</li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-0">
<a href="global.html#UP">UP</a>
2014-11-15 20:01:46 +00:00
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#VERSION">VERSION</a>
2014-11-15 20:01:46 +00:00
</li>
2016-06-09 16:13:31 +00:00
<li class="class-depth-0">
<a href="global.html#VERTICAL">VERTICAL</a>
</li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-0">
2015-07-22 14:31:30 +00:00
<a href="global.html#VIDEO">VIDEO</a>
</li>
<li class="class-depth-0">
<a href="global.html#WEBGL">WEBGL</a>
</li>
<li class="class-depth-0">
<a href="global.html#WEBGL_FILTER">WEBGL_FILTER</a>
2014-11-15 20:01:46 +00:00
</li>
</ul>
</li>
2014-11-25 00:23:44 +00:00
2014-11-15 20:01:46 +00:00
<li class="dropdown">
2014-11-25 00:23:44 +00:00
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Core<b class="caret"></b></a>
<ul class="dropdown-menu ">
2014-12-03 10:39:11 +00:00
<li class="class-depth-1"><a href="Phaser.Game.html">Game</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Group.html">Group</a></li>
<li class="class-depth-1"><a href="Phaser.World.html">World</a></li>
<li class="class-depth-1"><a href="Phaser.Loader.html">Loader</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Cache.html">Cache</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Time.html">Time</a></li>
<li class="class-depth-1"><a href="Phaser.Camera.html">Camera</a></li>
<li class="class-depth-1"><a href="Phaser.StateManager.html">State Manager</a></li>
<li class="class-depth-1"><a href="Phaser.TweenManager.html">Tween Manager</a></li>
<li class="class-depth-1"><a href="Phaser.SoundManager.html">Sound Manager</a></li>
2015-01-06 06:57:25 +00:00
<li class="class-depth-1"><a href="Phaser.Input.html">Input Manager</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.ScaleManager.html">Scale Manager</a></li>
</ul>
</li>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Game Objects<b class="caret"></b></a>
2014-11-15 20:01:46 +00:00
<ul class="dropdown-menu ">
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.GameObjectFactory.html">Factory (game.add)</a></li>
<li class="class-depth-1"><a href="Phaser.GameObjectCreator.html">Creator (game.make)</a></li>
<li class="class-depth-1"><a href="Phaser.Sprite.html">Sprite</a></li>
<li class="class-depth-1"><a href="Phaser.Image.html">Image</a></li>
<li class="class-depth-1"><a href="Phaser.Sound.html">Sound</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Video.html">Video</a></li>
2015-01-06 06:57:25 +00:00
<li class="class-depth-1"><a href="Phaser.Particles.Arcade.Emitter.html">Particle Emitter</a></li>
2014-12-03 10:39:11 +00:00
<li class="class-depth-1"><a href="Phaser.Particle.html">Particle</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Text.html">Text</a></li>
<li class="class-depth-1"><a href="Phaser.Tween.html">Tween</a></li>
<li class="class-depth-1"><a href="Phaser.BitmapText.html">BitmapText</a></li>
<li class="class-depth-1"><a href="Phaser.Tilemap.html">Tilemap</a></li>
<li class="class-depth-1"><a href="Phaser.BitmapData.html">BitmapData</a></li>
<li class="class-depth-1"><a href="Phaser.RetroFont.html">RetroFont</a></li>
<li class="class-depth-1"><a href="Phaser.Button.html">Button</a></li>
<li class="class-depth-1"><a href="Phaser.Animation.html">Animation</a></li>
<li class="class-depth-1"><a href="Phaser.Graphics.html">Graphics</a></li>
<li class="class-depth-1"><a href="Phaser.RenderTexture.html">RenderTexture</a></li>
<li class="class-depth-1"><a href="Phaser.TileSprite.html">TileSprite</a></li>
</ul>
</li>
2014-11-15 20:01:46 +00:00
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Geometry<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.Circle.html">Circle</a></li>
<li class="class-depth-1"><a href="Phaser.Ellipse.html">Ellipse</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Line.html">Line</a></li>
<li class="class-depth-1"><a href="Phaser.Matrix.html">Matrix</a></li>
<li class="class-depth-1"><a href="Phaser.Point.html">Point</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Polygon.html">Polygon</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.Rectangle.html">Rectangle</a></li>
<li class="class-depth-1"><a href="Phaser.RoundedRectangle.html">Rounded Rectangle</a></li>
2014-11-15 20:01:46 +00:00
</ul>
</li>
2014-11-25 00:23:44 +00:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Physics<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.Physics.Arcade.html">Arcade Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.Arcade.Body.html">Body</a></li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-2"><a href="Phaser.Weapon.html">Weapon</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Physics.P2.html">P2 Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.Body.html">Body</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.Spring.html">Spring</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.CollisionGroup.html">CollisionGroup</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.P2.ContactMaterial.html">ContactMaterial</a></li>
<li class="class-depth-1"><a href="Phaser.Physics.Ninja.html">Ninja Physics</a></li>
<li class="class-depth-2"><a href="Phaser.Physics.Body.html">Body</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Input<b class="caret"></b></a>
<ul class="dropdown-menu ">
<li class="class-depth-1"><a href="Phaser.InputHandler.html">Input Handler</a></li>
<li class="class-depth-1"><a href="Phaser.Pointer.html">Pointer</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="Phaser.DeviceButton.html">Device Button</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="Phaser.Mouse.html">Mouse</a></li>
<li class="class-depth-1"><a href="Phaser.Keyboard.html">Keyboard</a></li>
<li class="class-depth-1"><a href="Phaser.Key.html">Key</a></li>
<li class="class-depth-1"><a href="Phaser.Gamepad.html">Gamepad</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Community<b class="caret"></b></a>
<ul class="dropdown-menu ">
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io">Phaser Web Site</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="https://github.com/photonstorm/phaser">Phaser Github</a></li>
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io/examples">Phaser Examples</a></li>
2014-11-25 00:23:44 +00:00
<li class="class-depth-1"><a href="https://github.com/photonstorm/phaser-plugins">Phaser Plugins</a></li>
<li class="class-depth-1"><a href="http://www.html5gamedevs.com/forum/14-phaser/">Forum</a></li>
<li class="class-depth-1"><a href="http://stackoverflow.com/questions/tagged/phaser-framework">Stack Overflow</a></li>
2015-07-22 14:31:30 +00:00
<li class="class-depth-1"><a href="http://phaser.io/learn">Tutorials</a></li>
2016-05-19 11:36:51 +00:00
<li class="class-depth-1"><a href="http://phaser.io/community/newsletter">Newsletter</a></li>
2015-03-26 02:55:18 +00:00
<li class="class-depth-1"><a href="http://phaser.io/community/twitter">Twitter</a></li>
2016-06-17 00:11:24 +00:00
<li class="class-depth-1"><a href="http://phaser.io/community/slack">Slack</a></li>
<li class="class-depth-1"><a href="http://phaser.io/community/donate">Donate</a></li>
2015-03-23 23:46:30 +00:00
<li class="class-depth-1"><a href="https://www.codeandweb.com/texturepacker/phaser">Texture Packer</a></li>
2014-11-25 00:23:44 +00:00
</ul>
</li>
2014-11-15 20:01:46 +00:00
</ul>
</div>
</div>
<div class="row-fluid">
<div class="span8">
<div id="main">
2014-11-25 00:23:44 +00:00
<!--<h1 class="page-title">Class: BodyDebug</h1>-->
<section>
<header>
<h2>
<span class="ancestors"><a href="Phaser.html">Phaser</a><a href="Phaser.Physics.html">.Physics</a><a href="Phaser.Physics.P2.html">.P2</a>.</span>
BodyDebug
</h2>
</header>
<article>
<div class="container-overview">
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="BodyDebug"><span class="type-signature"></span>new BodyDebug<span class="signature">(game, body, settings)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>Draws a P2 Body to a Graphics instance for visual debugging.
Needless to say, for every body you enable debug drawing on, you are adding processor and graphical overhead.
So use sparingly and rarely (if ever) in production code.</p>
2015-07-22 14:31:30 +00:00
<p>Also be aware that the Debug body is only updated when the Sprite it is connected to changes position. If you
manipulate the sprite in any other way (such as moving it to another Group or bringToTop, etc) then you will
need to manually adjust its BodyDebug as well.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>game</code></td>
<td class="type">
<span class="param-type"><a href="Phaser.Game.html">Phaser.Game</a></span>
</td>
<td class="description last"><p>Game reference to the currently running game.</p></td>
</tr>
<tr>
<td class="name"><code>body</code></td>
<td class="type">
<span class="param-type"><a href="Phaser.Physics.P2.Body.html">Phaser.Physics.P2.Body</a></span>
</td>
<td class="description last"><p>The P2 Body to display debug data for.</p></td>
</tr>
<tr>
<td class="name"><code>settings</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last"><p>Settings object.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_physics_p2_BodyDebug.js.html">physics/p2/BodyDebug.js</a>, <a href="src_physics_p2_BodyDebug.js.html#sunlight-1-line-24">line 24</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
</div>
<h3 class="subsection-title">Extends</h3>
<ul>
<li><a href="Phaser.Group.html">Phaser.Group</a></li>
</ul>
<h3 class="subsection-title">Members</h3>
<dl>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="alive"><span class="type-signature"></span>alive<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>The alive property is useful for Groups that are children of other Groups and need to be included/excluded in checks like forEachAlive.</p>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#alive">Phaser.Group#alive</a>
</li></dd>
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li>true</li></ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-93">line 93</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="alpha"><span class="type-signature"></span>alpha<span class="type-signature"> :number</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>The alpha value of the group container.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#alpha">Phaser.Group#alpha</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2646">line 2646</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="angle"><span class="type-signature"></span>angle<span class="type-signature"> :number</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>The angle of rotation of the group container, in degrees.</p>
<p>This adjusts the group itself by modifying its local rotation transform.</p>
<p>This has no impact on the rotation/angle properties of the children, but it will update their worldTransform
and on-screen orientation and position.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-11-15 20:01:46 +00:00
<a href="Phaser.Group.html#angle">Phaser.Group#angle</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2578">line 2578</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="body"><span class="type-signature"></span>body<span class="type-signature"> :<a href="Phaser.Physics.P2.Body.html">Phaser.Physics.P2.Body</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-15 20:01:46 +00:00
<p>The P2 Body to display debug data for.</p>
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_physics_p2_BodyDebug.js.html">physics/p2/BodyDebug.js</a>, <a href="src_physics_p2_BodyDebug.js.html#sunlight-1-line-50">line 50</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="cacheAsBitmap"><span class="type-signature"></span>cacheAsBitmap<span class="type-signature"> :Boolean</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-03-23 23:46:30 +00:00
<p>Set if this display object is cached as a bitmap.
This basically takes a snap shot of the display object as it is at that moment. It can provide a performance benefit for complex static displayObjects.
To remove simply set this property to 'null'</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-03-23 23:46:30 +00:00
<a href="PIXI.DisplayObject.html#cacheAsBitmap">PIXI.DisplayObject#cacheAsBitmap</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-355">line 355</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="cameraOffset"><span class="type-signature"></span>cameraOffset<span class="type-signature"> :<a href="Phaser.Point.html">Phaser.Point</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-03-23 23:46:30 +00:00
<p>If this object is <a href="Phaser.Group.html#fixedToCamera">fixedToCamera</a> 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 <code>fixedToCamera</code> then the offset here is in addition to that and should typically be disabled.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-03-23 23:46:30 +00:00
<a href="Phaser.Group.html#cameraOffset">Phaser.Group#cameraOffset</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-272">line 272</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="canvas"><span class="type-signature"></span>canvas<span class="type-signature"> :<a href="Phaser.Graphics.html">Phaser.Graphics</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2015-03-23 23:46:30 +00:00
<p>The canvas to render the debug info to.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_physics_p2_BodyDebug.js.html">physics/p2/BodyDebug.js</a>, <a href="src_physics_p2_BodyDebug.js.html#sunlight-1-line-55">line 55</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="children"><span class="type-signature">&lt;readonly> </span>children<span class="type-signature"> :Array.&lt;<a href="global.html#DisplayObject">DisplayObject</a>></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-03-23 23:46:30 +00:00
<p>[read-only] The array of children of this container.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-03-23 23:46:30 +00:00
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Array.&lt;<a href="global.html#DisplayObject">DisplayObject</a>></span>
</li>
</ul>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2015-03-23 23:46:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObjectContainer.html#children">PIXI.DisplayObjectContainer#children</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-17">line 17</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="classType"><span class="type-signature"></span>classType<span class="type-signature"> :object</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-03-23 23:46:30 +00:00
<p>The type of objects that will be created when using <a href="Phaser.Group.html#create">create</a> or <a href="Phaser.Group.html#createMultiple">createMultiple</a>.</p>
<p>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: <code>(game, x, y, key, frame)</code>.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-03-23 23:46:30 +00:00
<a href="Phaser.Group.html#classType">Phaser.Group#classType</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2015-03-23 23:46:30 +00:00
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li><a href="Phaser.Sprite.html">Phaser.Sprite</a></li></ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-130">line 130</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-04-29 14:39:02 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="cursor"><span class="type-signature"></span>cursor<span class="type-signature"> :<a href="global.html#DisplayObject">DisplayObject</a></span></h4>
2014-04-29 14:39:02 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
<div class="description">
2015-03-23 23:46:30 +00:00
<p>The current display object that the group cursor is pointing to, if any. (Can be set manually.)</p>
<p>The cursor is a way to iterate through the children in a Group using <a href="Phaser.Group.html#next">next</a> and <a href="Phaser.Group.html#previous">previous</a>.</p>
2014-04-29 14:39:02 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-03-23 23:46:30 +00:00
<a href="Phaser.Group.html#cursor">Phaser.Group#cursor</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-138">line 138</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-04-29 14:39:02 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="cursorIndex"><span class="type-signature">&lt;readonly> </span>cursorIndex<span class="type-signature"> :integer</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-03-23 23:46:30 +00:00
<p>The current index of the Group cursor. Advance it with Group.next.</p>
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-03-23 23:46:30 +00:00
<a href="Phaser.Group.html#cursorIndex">Phaser.Group#cursorIndex</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-255">line 255</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="enableBody"><span class="type-signature"></span>enableBody<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>If true all Sprites created by, or added to this group, will have a physics body enabled on them.</p>
2016-06-09 16:13:31 +00:00
<p>If there are children already in the Group at the time you set this property, they are not changed.</p>
2014-12-03 10:39:11 +00:00
<p>The default body type is controlled with <a href="Phaser.Group.html#physicsBodyType">physicsBodyType</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#enableBody">Phaser.Group#enableBody</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-208">line 208</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="enableBodyDebug"><span class="type-signature"></span>enableBodyDebug<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>If true when a physics body is created (via <a href="Phaser.Group.html#enableBody">enableBody</a>) it will create a physics debug object as well.</p>
<p>This only works for P2 bodies.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#enableBodyDebug">Phaser.Group#enableBodyDebug</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-217">line 217</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="exists"><span class="type-signature"></span>exists<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>If exists is true the group is updated, otherwise it is skipped.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#exists">Phaser.Group#exists</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-default">Default Value:</dt>
<dd class="tag-default"><ul class="dummy"><li>true</li></ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-100">line 100</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="filterArea"><span class="type-signature"></span>filterArea<span class="type-signature"> :Rectangle</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>The area the filter is applied to like the hitArea this is used as more of an optimisation
rather than figuring out the dimensions of the displayObject each frame you can set this rectangle</p>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-11-15 20:01:46 +00:00
<a href="PIXI.DisplayObject.html#filterArea">PIXI.DisplayObject#filterArea</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-164">line 164</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="filters"><span class="type-signature"></span>filters<span class="type-signature"> :Array.&lt;Filter></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-11-15 20:01:46 +00:00
<p>Sets the filters for the displayObject.
2015-08-24 14:43:45 +00:00
IMPORTANT: This is a webGL only feature and will be ignored by the Canvas renderer.</p>
<p>To remove filters simply set this property to 'null'.</p>
<p>You cannot have a filter and a multiply blend mode active at the same time. Setting a filter will reset
this objects blend mode to NORMAL.</p>
</div>
2014-11-15 20:01:46 +00:00
<h5>Type:</h5>
<ul>
<li>
<span class="param-type">Array.&lt;Filter></span>
</li>
</ul>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObject.html#filters">PIXI.DisplayObject#filters</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-307">line 307</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="fixedToCamera"><span class="type-signature"></span>fixedToCamera<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
<div class="description">
2015-03-23 23:46:30 +00:00
<p>A Group that is fixed to the camera uses its x/y coordinates as offsets from the top left of the camera. These are stored in Group.cameraOffset.</p>
<p>Note that the cameraOffset values are in addition to any parent in the display list.
So if this Group was in a Group that has x: 200, then this will be added to the cameraOffset.x</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#fixedToCamera">Phaser.Group#fixedToCamera</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-265">line 265</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="game"><span class="type-signature">&lt;internal> </span>game<span class="type-signature"> :<a href="Phaser.Game.html">Phaser.Game</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>A reference to the currently running Game.</p>
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#game">Phaser.Group#game</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-03-23 23:46:30 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-38">line 38</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</dl>
</dd>
<dt>
<h4 class="name "
id="hash"><span class="type-signature"></span>hash<span class="type-signature"> :array</span></h4>
</dt>
<dd>
<div class="description">
<p>The hash array is an array belonging to this Group into which you can add any of its children via Group.addToHash and Group.removeFromHash.</p>
<p>Only children of this Group can be added to and removed from the hash.</p>
<p>This hash is used automatically by Phaser Arcade Physics in order to perform non z-index based destructive sorting.
However if you don't use Arcade Physics, or this isn't a physics enabled Group, then you can use the hash to perform your own
sorting and filtering of Group children without touching their z-index (and therefore display draw order)</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#hash">Phaser.Group#hash</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-285">line 285</a>
2015-07-22 14:31:30 +00:00
</dt>
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
id="height"><span class="type-signature"></span>height<span class="type-signature"> :Number</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>The height of the displayObjectContainer, setting this will actually modify the scale to achieve the value set</p>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-11-15 20:01:46 +00:00
<a href="PIXI.DisplayObjectContainer.html#height">PIXI.DisplayObjectContainer#height</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-72">line 72</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-10-09 15:12:53 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="hitArea"><span class="type-signature"></span>hitArea<span class="type-signature"> :Rectangle|Circle|Ellipse|Polygon</span></h4>
2014-10-09 15:12:53 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
<p>This is the defined area that will pick up mouse / touch events. It is null by default.
Setting it is a neat way of optimising the hitTest function that the interactionManager will use (as it will not need to hit test all the children)</p>
</div>
2014-10-09 15:12:53 +00:00
2014-11-15 20:01:46 +00:00
<h5>Type:</h5>
<ul>
<li>
2014-10-09 15:12:53 +00:00
2015-03-23 23:46:30 +00:00
<span class="param-type">Rectangle</span>
2014-11-15 20:01:46 +00:00
|
2014-10-09 15:12:53 +00:00
2015-03-23 23:46:30 +00:00
<span class="param-type">Circle</span>
2014-11-15 20:01:46 +00:00
|
2014-10-09 15:12:53 +00:00
2015-03-23 23:46:30 +00:00
<span class="param-type">Ellipse</span>
2014-11-15 20:01:46 +00:00
|
2014-10-09 15:12:53 +00:00
2015-03-23 23:46:30 +00:00
<span class="param-type">Polygon</span>
2014-10-09 15:12:53 +00:00
2014-11-15 20:01:46 +00:00
</li>
</ul>
2014-10-09 15:12:53 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-10-09 15:12:53 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-11-15 20:01:46 +00:00
<a href="PIXI.DisplayObject.html#hitArea">PIXI.DisplayObject#hitArea</a>
2014-10-09 15:12:53 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-62">line 62</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="ignoreChildInput"><span class="type-signature"></span>ignoreChildInput<span class="type-signature"> :Boolean</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>If <code>ignoreChildInput</code> is <code>false</code> it will allow this objects <em>children</em> to be considered as valid for Input events.</p>
<p>If this property is <code>true</code> then the children will <em>not</em> be considered as valid for Input events.</p>
<p>Note that this property isn't recursive: only immediate children are influenced, it doesn't scan further down.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObjectContainer.html#ignoreChildInput">PIXI.DisplayObjectContainer#ignoreChildInput</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-26">line 26</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="ignoreDestroy"><span class="type-signature"></span>ignoreDestroy<span class="type-signature"> :boolean</span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>A group with <code>ignoreDestroy</code> set to <code>true</code> ignores all calls to its <code>destroy</code> method.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-09-09 14:36:56 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#ignoreDestroy">Phaser.Group#ignoreDestroy</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-107">line 107</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="inputEnableChildren"><span class="type-signature"></span>inputEnableChildren<span class="type-signature"> :boolean</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>A Group with <code>inputEnableChildren</code> set to <code>true</code> will automatically call <code>inputEnabled = true</code>
on any children <em>added</em> to, or <em>created by</em>, this Group.</p>
<p>If there are children already in the Group at the time you set this property, they are not changed.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-09-09 14:36:56 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#inputEnableChildren">Phaser.Group#inputEnableChildren</a>
2014-09-09 14:36:56 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-149">line 149</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="length"><span class="type-signature">&lt;readonly> </span>length<span class="type-signature"> :integer</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Total number of children in this group, regardless of exists/alive status.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#length">Phaser.Group#length</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2561">line 2561</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="mask"><span class="type-signature"></span>mask<span class="type-signature"> :<a href="PIXI.Graphics.html">PIXI.Graphics</a></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Sets a mask for the displayObject. A mask is an object that limits the visibility of an object to the shape of the mask applied to it.
In PIXI a regular mask must be a PIXI.Graphics object. This allows for much faster masking in canvas as it utilises shape clipping.
To remove a mask, set this property to null.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObject.html#mask">PIXI.DisplayObject#mask</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-282">line 282</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="name"><span class="type-signature"></span>name<span class="type-signature"> :string</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>A name for this group. Not used internally but useful for debugging.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#name">Phaser.Group#name</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-49">line 49</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="onChildInputDown"><span class="type-signature"></span>onChildInputDown<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>This Signal is dispatched whenever a child of this Group emits an onInputDown signal as a result
of having been interacted with by a Pointer. You can bind functions to this Signal instead of to
every child Sprite.</p>
<p>This Signal is sent 2 arguments: A reference to the Sprite that triggered the signal, and
a reference to the Pointer that caused it.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#onChildInputDown">Phaser.Group#onChildInputDown</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-161">line 161</a>
2015-03-23 23:46:30 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="onChildInputOut"><span class="type-signature"></span>onChildInputOut<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
2015-03-23 23:46:30 +00:00
</dt>
<dd>
<div class="description">
2016-06-09 16:13:31 +00:00
<p>This Signal is dispatched whenever a child of this Group emits an onInputOut signal as a result
of having been interacted with by a Pointer. You can bind functions to this Signal instead of to
every child Sprite.</p>
<p>This Signal is sent 2 arguments: A reference to the Sprite that triggered the signal, and
a reference to the Pointer that caused it.</p>
2015-03-23 23:46:30 +00:00
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#onChildInputOut">Phaser.Group#onChildInputOut</a>
2015-03-23 23:46:30 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-198">line 198</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="onChildInputOver"><span class="type-signature"></span>onChildInputOver<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>This Signal is dispatched whenever a child of this Group emits an onInputOver signal as a result
of having been interacted with by a Pointer. You can bind functions to this Signal instead of to
every child Sprite.</p>
<p>This Signal is sent 2 arguments: A reference to the Sprite that triggered the signal, and
a reference to the Pointer that caused it.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#onChildInputOver">Phaser.Group#onChildInputOver</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-186">line 186</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="onChildInputUp"><span class="type-signature"></span>onChildInputUp<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>This Signal is dispatched whenever a child of this Group emits an onInputUp signal as a result
of having been interacted with by a Pointer. You can bind functions to this Signal instead of to
every child Sprite.</p>
<p>This Signal is sent 3 arguments: A reference to the Sprite that triggered the signal,
a reference to the Pointer that caused it, and a boolean value <code>isOver</code> that tells you if the Pointer
is still over the Sprite or not.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#onChildInputUp">Phaser.Group#onChildInputUp</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-174">line 174</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="onDestroy"><span class="type-signature"></span>onDestroy<span class="type-signature"> :<a href="Phaser.Signal.html">Phaser.Signal</a></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>This signal is dispatched when the group is destroyed.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#onDestroy">Phaser.Group#onDestroy</a>
2015-07-22 14:31:30 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-249">line 249</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="parent"><span class="type-signature">&lt;readonly> </span>parent<span class="type-signature"> :<a href="PIXI.DisplayObjectContainer.html">PIXI.DisplayObjectContainer</a></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>[read-only] The display object container that contains this display object.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObject.html#parent">PIXI.DisplayObject#parent</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-79">line 79</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="pendingDestroy"><span class="type-signature"></span>pendingDestroy<span class="type-signature"> :boolean</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>A Group is that has <code>pendingDestroy</code> set to <code>true</code> is flagged to have its destroy method
called on the next logic update.
You can set it directly to flag the Group to be destroyed on its next update.</p>
<p>This is extremely useful if you wish to destroy a Group from within one of its own callbacks
or a callback of one of its children.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2016-06-09 16:13:31 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#pendingDestroy">Phaser.Group#pendingDestroy</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-119">line 119</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="physicsBodyType"><span class="type-signature"></span>physicsBodyType<span class="type-signature"> :integer</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>If <a href="Phaser.Group.html#enableBody">enableBody</a> is true this is the type of physics body that is created on new Sprites.</p>
<p>The valid values are <a href="Phaser.Physics.html#.ARCADE">Phaser.Physics.ARCADE</a>, <a href="Phaser.Physics.html#.P2JS">Phaser.Physics.P2JS</a>, <a href="Phaser.Physics.html#.NINJA">Phaser.Physics.NINJA</a>, etc.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#physicsBodyType">Phaser.Group#physicsBodyType</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-225">line 225</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="physicsSortDirection"><span class="type-signature"></span>physicsSortDirection<span class="type-signature"> :integer</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>If this Group contains Arcade Physics Sprites you can set a custom sort direction via this property.</p>
<p>It should be set to one of the Phaser.Physics.Arcade sort direction constants: </p>
<p>Phaser.Physics.Arcade.SORT_NONE
Phaser.Physics.Arcade.LEFT_RIGHT
Phaser.Physics.Arcade.RIGHT_LEFT
Phaser.Physics.Arcade.TOP_BOTTOM
Phaser.Physics.Arcade.BOTTOM_TOP</p>
<p>If set to <code>null</code> the Group will use whatever Phaser.Physics.Arcade.sortDirection is set to. This is the default behavior.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#physicsSortDirection">Phaser.Group#physicsSortDirection</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-243">line 243</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="physicsType"><span class="type-signature">&lt;readonly> </span>physicsType<span class="type-signature"> :number</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>The const physics body type of this object.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#physicsType">Phaser.Group#physicsType</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-86">line 86</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="pivot"><span class="type-signature"></span>pivot<span class="type-signature"> :Point</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>The pivot point of the displayObject that it rotates around</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObject.html#pivot">PIXI.DisplayObject#pivot</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-30">line 30</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="position"><span class="type-signature"></span>position<span class="type-signature"> :Point</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>The coordinate of the object relative to the local coordinates of the parent.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObject.html#position">PIXI.DisplayObject#position</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-14">line 14</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="ppu"><span class="type-signature"></span>ppu<span class="type-signature"> :number</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Pixels per Length Unit.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_physics_p2_BodyDebug.js.html">physics/p2/BodyDebug.js</a>, <a href="src_physics_p2_BodyDebug.js.html#sunlight-1-line-44">line 44</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-07-10 19:31:11 +00:00
2014-11-15 20:01:46 +00:00
</dd>
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="renderable"><span class="type-signature"></span>renderable<span class="type-signature"> :Boolean</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Can this object be rendered</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObject.html#renderable">PIXI.DisplayObject#renderable</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-71">line 71</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
</dl>
</dd>
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="rotation"><span class="type-signature"></span>rotation<span class="type-signature"> :number</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>The angle of rotation of the group container, in radians.</p>
<p>This will adjust the group container itself by modifying its rotation.
This will have no impact on the rotation value of its children, but it will update their worldTransform and on-screen position.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#rotation">Phaser.Group#rotation</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2630">line 2630</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="scale"><span class="type-signature"></span>scale<span class="type-signature"> :Point</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>The scale factor of the object.</p>
</div>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObject.html#scale">PIXI.DisplayObject#scale</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-22">line 22</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="stage"><span class="type-signature">&lt;readonly> </span>stage<span class="type-signature"> :Stage</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>[read-only] The stage the display object is connected to, or undefined if it is not connected to the stage.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObject.html#stage">PIXI.DisplayObject#stage</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-88">line 88</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="total"><span class="type-signature">&lt;readonly> </span>total<span class="type-signature"> :integer</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Total number of existing children in the group.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#total">Phaser.Group#total</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2544">line 2544</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2015-07-22 14:31:30 +00:00
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="type"><span class="type-signature">&lt;internal> </span>type<span class="type-signature"> :integer</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Internal Phaser Type value.</p>
</div>
2015-07-22 14:31:30 +00:00
2015-07-22 14:31:30 +00:00
<dl class="details">
2015-07-22 14:31:30 +00:00
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#type">Phaser.Group#type</a>
2015-07-22 14:31:30 +00:00
</li></dd>
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
2016-06-09 16:13:31 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-80">line 80</a>
2015-07-22 14:31:30 +00:00
</dt>
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
2014-07-10 19:31:11 +00:00
2015-07-22 14:31:30 +00:00
2015-07-22 14:31:30 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="visible"><span class="type-signature"></span>visible<span class="type-signature"> :boolean</span></h4>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>The visible state of the group. Non-visible Groups and all of their children are not rendered.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#visible">Phaser.Group#visible</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2639">line 2639</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2015-07-22 14:31:30 +00:00
</dd>
2014-09-09 14:36:56 +00:00
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="width"><span class="type-signature"></span>width<span class="type-signature"> :Number</span></h4>
2014-09-09 14:36:56 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-09-09 14:36:56 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>The width of the displayObjectContainer, setting this will actually modify the scale to achieve the value set</p>
2014-09-09 14:36:56 +00:00
</div>
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dl class="details">
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObjectContainer.html#width">PIXI.DisplayObjectContainer#width</a>
2015-07-22 14:31:30 +00:00
</li></dd>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-43">line 43</a>
2015-07-22 14:31:30 +00:00
</dt>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
</dl>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
</dd>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="worldAlpha"><span class="type-signature">&lt;readonly> </span>worldAlpha<span class="type-signature"> :Number</span></h4>
2015-07-22 14:31:30 +00:00
</dt>
<dd>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>[read-only] The multiplied alpha of the displayObject</p>
2015-07-22 14:31:30 +00:00
</div>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObject.html#worldAlpha">PIXI.DisplayObject#worldAlpha</a>
2015-07-22 14:31:30 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-97">line 97</a>
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="worldPosition"><span class="type-signature">&lt;readonly> </span>worldPosition<span class="type-signature"> :Point</span></h4>
</dt>
<dd>
<div class="description">
<p>The position of the Display Object based on the world transform.
This value is updated at the end of updateTransform and takes all parent transforms into account.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObject.html#worldPosition">PIXI.DisplayObject#worldPosition</a>
</li></dd>
<dt class="tag-source">Source -
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-116">line 116</a>
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="worldRotation"><span class="type-signature">&lt;readonly> </span>worldRotation<span class="type-signature"> :Number</span></h4>
</dt>
<dd>
<div class="description">
<p>The rotation of the Display Object, in radians, based on the world transform.
This value is updated at the end of updateTransform and takes all parent transforms into account.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObject.html#worldRotation">PIXI.DisplayObject#worldRotation</a>
</li></dd>
<dt class="tag-source">Source -
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-136">line 136</a>
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="worldScale"><span class="type-signature">&lt;readonly> </span>worldScale<span class="type-signature"> :Point</span></h4>
</dt>
<dd>
<div class="description">
<p>The scale of the Display Object based on the world transform.
This value is updated at the end of updateTransform and takes all parent transforms into account.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObject.html#worldScale">PIXI.DisplayObject#worldScale</a>
</li></dd>
<dt class="tag-source">Source -
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-126">line 126</a>
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="worldVisible"><span class="type-signature"></span>worldVisible<span class="type-signature"> :Boolean</span></h4>
</dt>
<dd>
<div class="description">
<p>[read-only] Indicates if the sprite is globally visible.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObject.html#worldVisible">PIXI.DisplayObject#worldVisible</a>
</li></dd>
<dt class="tag-source">Source -
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-258">line 258</a>
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="x"><span class="type-signature"></span>x<span class="type-signature"> :number</span></h4>
</dt>
<dd>
<div class="description">
<p>The x coordinate of the group container.</p>
<p>You can adjust the group container itself by modifying its coordinates.
This will have no impact on the x/y coordinates of its children, but it will update their worldTransform and on-screen position.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#x">Phaser.Group#x</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2612">line 2612</a>
2016-06-09 16:13:31 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="y"><span class="type-signature"></span>y<span class="type-signature"> :number</span></h4>
</dt>
<dd>
<div class="description">
<p>The y coordinate of the group container.</p>
<p>You can adjust the group container itself by modifying its coordinates.
This will have no impact on the x/y coordinates of its children, but it will update their worldTransform and on-screen position.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#y">Phaser.Group#y</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2621">line 2621</a>
2015-07-22 14:31:30 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</dd>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt>
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="z"><span class="type-signature">&lt;readonly> </span>z<span class="type-signature"> :integer</span></h4>
2015-07-22 14:31:30 +00:00
</dt>
<dd>
2014-09-09 14:36:56 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<div class="description">
<p>The z-depth value of this object within its parent container/Group - the World is a Group as well.
This value must be unique for each child in a Group.</p>
</div>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
2014-09-09 14:36:56 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#z">Phaser.Group#z</a>
2014-09-09 14:36:56 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-10-15 11:06:38 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-57">line 57</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-09-09 14:36:56 +00:00
</dl>
2015-07-22 14:31:30 +00:00
</dd>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
</dl>
2014-09-09 14:36:56 +00:00
2015-07-22 14:31:30 +00:00
<h3 class="subsection-title">Methods</h3>
2015-07-22 14:31:30 +00:00
<dl>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="add"><span class="type-signature"></span>add<span class="signature">(child, <span class="optional">silent</span>, <span class="optional">index</span>)</span><span class="type-signature"> &rarr; {<a href="global.html#DisplayObject">DisplayObject</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Adds an existing object as the top child in this group.</p>
2016-06-09 16:13:31 +00:00
<p>The child is automatically added to the top of the group, and is displayed above every previous child.</p>
<p>Or if the <em>optional</em> index is specified, the child is added at the location specified by the index value,
this allows you to control child ordering.</p>
<p>If the child was already in this Group, it is simply returned, and nothing else happens to it.</p>
<p>If <code>Group.enableBody</code> is set, then a physics body will be created on the object, so long as one does not already exist.</p>
<p>If <code>Group.inputEnableChildren</code> is set, then an Input Handler will be created on the object, so long as one does not already exist.</p>
2015-07-22 14:31:30 +00:00
<p>Use <a href="Phaser.Group.html#addAt">addAt</a> to control where a child is added. Use <a href="Phaser.Group.html#create">create</a> to create and add a new child.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
2016-06-09 16:13:31 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>child</code></td>
<td class="type">
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2016-06-09 16:13:31 +00:00
<td class="description last"><p>The display object to add as a child.</p></td>
</tr>
<tr>
2016-06-09 16:13:31 +00:00
<td class="name"><code>silent</code></td>
<td class="type">
2016-06-09 16:13:31 +00:00
<span class="param-type">boolean</span>
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
2016-06-09 16:13:31 +00:00
&lt;optional><br>
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="default">
2016-06-09 16:13:31 +00:00
false
2014-11-15 20:01:46 +00:00
</td>
2016-06-09 16:13:31 +00:00
<td class="description last"><p>If true the child will not dispatch the <code>onAddedToGroup</code> event.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
<tr>
2016-06-09 16:13:31 +00:00
<td class="name"><code>index</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2016-06-09 16:13:31 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
2016-06-09 16:13:31 +00:00
<td class="description last"><p>The index within the group to insert the child to. Where 0 is the bottom of the Group.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2014-12-03 10:39:11 +00:00
<p>The child that was added to the group.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#add">Phaser.Group#add</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-334">line 334</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="addAll"><span class="type-signature"></span>addAll<span class="signature">(property, amount, checkAlive, checkVisible)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Adds the amount to the given property on all children in this group.</p>
<p><code>Group.addAll('x', 10)</code> will add 10 to the child.x value for each child.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>property</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">string</span>
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The property to increment, for example 'body.velocity.x' or 'angle'.</p></td>
</tr>
2015-07-22 14:31:30 +00:00
<tr>
<td class="name"><code>amount</code></td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<span class="param-type">number</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
<td class="description last"><p>The amount to increment the property by. If child.x = 10 then addAll('x', 40) would make child.x = 50.</p></td>
</tr>
<tr>
<td class="name"><code>checkAlive</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last"><p>If true the property will only be changed if the child is alive.</p></td>
</tr>
<tr>
<td class="name"><code>checkVisible</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last"><p>If true the property will only be changed if the child is visible.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#addAll">Phaser.Group#addAll</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1374">line 1374</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="addAt"><span class="type-signature"></span>addAt<span class="signature">(child, <span class="optional">index</span>, <span class="optional">silent</span>)</span><span class="type-signature"> &rarr; {<a href="global.html#DisplayObject">DisplayObject</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Adds an existing object to this group.</p>
<p>The child is added to the group at the location specified by the index value, this allows you to control child ordering.</p>
2016-06-09 16:13:31 +00:00
<p>If <code>Group.enableBody</code> is set, then a physics body will be created on the object, so long as one does not already exist.</p>
<p>If <code>Group.inputEnableChildren</code> is set, then an Input Handler will be created on the object, so long as one does not already exist.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-07-22 14:31:30 +00:00
<th>Argument</th>
2015-07-22 14:31:30 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>child</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
</td>
2015-07-22 14:31:30 +00:00
<td class="attributes">
2015-07-22 14:31:30 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="default">
</td>
<td class="description last"><p>The display object to add as a child.</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>index</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">integer</span>
</td>
2015-07-22 14:31:30 +00:00
<td class="attributes">
&lt;optional><br>
2015-07-22 14:31:30 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="default">
0
</td>
<td class="description last"><p>The index within the group to insert the child to.</p></td>
</tr>
<tr>
<td class="name"><code>silent</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>If true the child will not dispatch the <code>onAddedToGroup</code> event.</p></td>
2014-07-18 11:45:51 +00:00
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-type">
2015-07-22 14:31:30 +00:00
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2015-07-22 14:31:30 +00:00
<p>The child that was added to the group.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
</div>
2014-07-18 11:45:51 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#addAt">Phaser.Group#addAt</a>
2014-07-18 11:45:51 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-411">line 411</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-07-18 11:45:51 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="addChild"><span class="type-signature"></span>addChild<span class="signature">(child)</span><span class="type-signature"> &rarr; {<a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a>}</span></h4>
2014-07-18 11:45:51 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Adds a child to the container.</p>
2014-07-18 11:45:51 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>child</code></td>
2014-07-18 11:45:51 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
2014-07-18 11:45:51 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The DisplayObject to add to the container</p></td>
2014-07-18 11:45:51 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2015-07-22 14:31:30 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2015-07-22 14:31:30 +00:00
<p>The child that was added.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
2014-07-18 11:45:51 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="PIXI.DisplayObjectContainer.html#addChild">PIXI.DisplayObjectContainer#addChild</a>
2014-07-18 11:45:51 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-102">line 102</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-07-18 11:45:51 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="addChildAt"><span class="type-signature"></span>addChildAt<span class="signature">(child, index)</span><span class="type-signature"> &rarr; {<a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a>}</span></h4>
2014-07-18 11:45:51 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Adds a child to the container at a specified index. If the index is out of bounds an error will be thrown</p>
2014-07-18 11:45:51 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>child</code></td>
2014-07-18 11:45:51 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
2014-07-18 11:45:51 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The child to add</p></td>
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>index</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">Number</span>
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The index to place the child in</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
-
</div>
<div class="returns-desc param-desc">
<p>The child that was added.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="PIXI.DisplayObjectContainer.html#addChildAt">PIXI.DisplayObjectContainer#addChildAt</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-114">line 114</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="addMultiple"><span class="type-signature"></span>addMultiple<span class="signature">(children, <span class="optional">silent</span>)</span><span class="type-signature"> &rarr; {Array.&lt;<a href="global.html#DisplayObject">DisplayObject</a>>|<a href="Phaser.Group.html">Phaser.Group</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Adds an array of existing Display Objects to this Group.</p>
<p>The Display Objects are automatically added to the top of this Group, and will render on-top of everything already in this Group.</p>
<p>As well as an array you can also pass another Group as the first argument. In this case all of the children from that
Group will be removed from it and added into this Group.</p>
2016-06-09 16:13:31 +00:00
<p>If <code>Group.enableBody</code> is set, then a physics body will be created on the objects, so long as one does not already exist.</p>
<p>If <code>Group.inputEnableChildren</code> is set, then an Input Handler will be created on the objects, so long as one does not already exist.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-07-22 14:31:30 +00:00
<th>Argument</th>
2015-07-22 14:31:30 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>children</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">Array.&lt;<a href="global.html#DisplayObject">DisplayObject</a>></span>
|
<span class="param-type"><a href="Phaser.Group.html">Phaser.Group</a></span>
</td>
2015-07-22 14:31:30 +00:00
<td class="attributes">
2015-07-22 14:31:30 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="default">
</td>
<td class="description last"><p>An array of display objects or a Phaser.Group. If a Group is given then <em>all</em> children will be moved from it.</p></td>
</tr>
<tr>
<td class="name"><code>silent</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>If true the children will not dispatch the <code>onAddedToGroup</code> event.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-type">
2015-07-22 14:31:30 +00:00
<span class="param-type">Array.&lt;<a href="global.html#DisplayObject">DisplayObject</a>></span>
|
<span class="param-type"><a href="Phaser.Group.html">Phaser.Group</a></span>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2015-07-22 14:31:30 +00:00
<p>The array of children or Group of children that were added to this Group.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#addMultiple">Phaser.Group#addMultiple</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-482">line 482</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="addToHash"><span class="type-signature"></span>addToHash<span class="signature">(child)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Adds a child of this Group into the hash array.
This call will return false if the child is not a child of this Group, or is already in the hash.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>child</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
</td>
2014-07-18 11:45:51 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The display object to add to this Groups hash. Must be a member of this Group already and not present in the hash.</p></td>
2014-07-18 11:45:51 +00:00
</tr>
2015-07-22 14:31:30 +00:00
</tbody>
</table>
2014-07-18 11:45:51 +00:00
2015-07-22 14:31:30 +00:00
2014-07-18 11:45:51 +00:00
2015-07-22 14:31:30 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-07-18 11:45:51 +00:00
2015-07-22 14:31:30 +00:00
<div class="returns-type">
<span class="param-type">boolean</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
-
</div>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<div class="returns-desc param-desc">
<p>True if the child was successfully added to the hash, otherwise false.</p>
</div>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#addToHash">Phaser.Group#addToHash</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-432">line 432</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2016-06-17 00:11:24 +00:00
</dd>
<dt>
<h4 class="name "
id="align"><span class="type-signature"></span>align<span class="signature">(rows, columns, cellWidth, cellHeight, <span class="optional">position</span>, <span class="optional">offset</span>)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>This method iterates through all children in the Group (regardless if they are visible or exist)
and then changes their position so they are arranged in a Grid formation. Children must have
the <code>alignTo</code> method in order to be positioned by this call. All default Phaser Game Objects have
this.</p>
<p>The grid dimensions are determined by the first four arguments. The <code>rows</code> and <code>columns</code> arguments
relate to the width and height of the grid respectively.</p>
<p>For example if the Group had 100 children in it:</p>
<p><code>Group.align(10, 10, 32, 32)</code></p>
<p>This will align all of the children into a grid formation of 10x10, using 32 pixels per
grid cell. If you want a wider grid, you could do:</p>
<p><code>Group.align(25, 4, 32, 32)</code></p>
<p>This will align the children into a grid of 25x4, again using 32 pixels per grid cell.</p>
<p>You can choose to set <em>either</em> the <code>rows</code> or <code>columns</code> value to -1. Doing so tells the method
to keep on aligning children until there are no children left. For example if this Group had
48 children in it, the following:</p>
<p><code>Group.align(-1, 8, 32, 32)</code></p>
<p>... will align the children so that there are 8 columns vertically (the second argument),
and each row will contain 6 sprites, except the last one, which will contain 5 (totaling 48)</p>
<p>You can also do:</p>
<p><code>Group.align(10, -1, 32, 32)</code></p>
<p>In this case it will create a grid 10 wide, and as tall as it needs to be in order to fit
all of the children in.</p>
<p>The <code>position</code> property allows you to control where in each grid cell the child is positioned.
This is a constant and can be one of <code>Phaser.TOP_LEFT</code> (default), <code>Phaser.TOP_CENTER</code>,
<code>Phaser.TOP_RIGHT</code>, <code>Phaser.LEFT_CENTER</code>, <code>Phaser.CENTER</code>, <code>Phaser.RIGHT_CENTER</code>,
<code>Phaser.BOTTOM_LEFT</code>, <code>Phaser.BOTTOM_CENTER</code> or <code>Phaser.BOTTOM_RIGHT</code>.</p>
<p>The final argument; <code>offset</code> lets you start the alignment from a specific child index.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>rows</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>The number of rows, or width, of the grid. Set to -1 for a dynamic width.</p></td>
</tr>
<tr>
<td class="name"><code>columns</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>The number of columns, or height, of the grid. Set to -1 for a dynamic height.</p></td>
</tr>
<tr>
<td class="name"><code>cellWidth</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>The width of each grid cell, in pixels.</p></td>
</tr>
<tr>
<td class="name"><code>cellHeight</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>The height of each grid cell, in pixels.</p></td>
</tr>
<tr>
<td class="name"><code>position</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>The position constant. One of <code>Phaser.TOP_LEFT</code> (default), <code>Phaser.TOP_CENTER</code>, <code>Phaser.TOP_RIGHT</code>, <code>Phaser.LEFT_CENTER</code>, <code>Phaser.CENTER</code>, <code>Phaser.RIGHT_CENTER</code>, <code>Phaser.BOTTOM_LEFT</code>, <code>Phaser.BOTTOM_CENTER</code> or <code>Phaser.BOTTOM_RIGHT</code>.</p></td>
</tr>
<tr>
<td class="name"><code>offset</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
0
</td>
<td class="description last"><p>Optional index to start the alignment from. Defaults to zero, the first child in the Group, but can be set to any valid child index value.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#align">Phaser.Group#align</a>
</li></dd>
<dt class="tag-source">Source -
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-675">line 675</a>
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="ascendingSortHandler"><span class="type-signature">&lt;internal> </span>ascendingSortHandler<span class="signature">(a, b)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>An internal helper function for the sort process.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>a</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
</td>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The first object being sorted.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>b</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The second object being sorted.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#ascendingSortHandler">Phaser.Group#ascendingSortHandler</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1910">line 1910</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="bringToTop"><span class="type-signature"></span>bringToTop<span class="signature">(child)</span><span class="type-signature"> &rarr; {any}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Brings the given child to the top of this group so it renders above all other children.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>child</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The child to bring to the top of this group.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
2015-07-22 14:31:30 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<div class="returns-type">
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
-
</div>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<div class="returns-desc param-desc">
<p>The child that was moved.</p>
</div>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#bringToTop">Phaser.Group#bringToTop</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-895">line 895</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="callAll"><span class="type-signature"></span>callAll<span class="signature">(method, <span class="optional">context</span>, args)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Calls a function, specified by name, on all on children.</p>
<p>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.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>method</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>Name of the function on the child to call. Deep property lookup is supported.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>context</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">string</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
2015-07-22 14:31:30 +00:00
null
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>A string containing the context under which the method will be executed. Set to null to default to the child.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>args</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
2015-07-22 14:31:30 +00:00
&lt;repeatable><br>
2014-11-15 20:01:46 +00:00
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>Additional parameters that will be passed to the method.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#callAll">Phaser.Group#callAll</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1529">line 1529</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="callAllExists"><span class="type-signature"></span>callAllExists<span class="signature">(callback, existsValue, parameter)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Calls a function, specified by name, on all children in the group who exist (or do not exist).</p>
<p>After the existsValue parameter you can add as many parameters as you like, which will all be passed to the child callback.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>callback</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">string</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>Name of the function on the children to call.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>existsValue</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">boolean</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>Only children with exists=existsValue will be called.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>parameter</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
2015-07-22 14:31:30 +00:00
&lt;repeatable><br>
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>Additional parameters that will be passed to the callback.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#callAllExists">Phaser.Group#callAllExists</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1442">line 1442</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="callbackFromArray"><span class="type-signature">&lt;internal> </span>callbackFromArray<span class="signature">(child, callback, length)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Returns a reference to a function that exists on a child of the group based on the given callback array.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tbody>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tr>
<td class="name"><code>child</code></td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="type">
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The object to inspect.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">array</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The array of function names.</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="name"><code>length</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
<td class="description last"><p>The size of the array (pre-calculated in callAll).</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#callbackFromArray">Phaser.Group#callbackFromArray</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1476">line 1476</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="checkAll"><span class="type-signature"></span>checkAll<span class="signature">(key, value, <span class="optional">checkAlive</span>, <span class="optional">checkVisible</span>, <span class="optional">force</span>)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Quickly check that the same property across all children of this group is equal to the given value.</p>
<p>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.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>key</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">string</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The property, as a string, to be set. For example: 'body.velocity.x'</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>value</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The value that will be checked.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>checkAlive</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">boolean</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
2015-07-22 14:31:30 +00:00
&lt;optional><br>
2014-11-15 20:01:46 +00:00
</td>
<td class="default">
2015-07-22 14:31:30 +00:00
false
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>If set then only children with alive=true will be checked. This includes any Groups that are children.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>checkVisible</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">boolean</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
2015-07-22 14:31:30 +00:00
false
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>If set then only children with visible=true will be checked. This includes any Groups that are children.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>force</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
2015-07-22 14:31:30 +00:00
false
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>If <code>force</code> is true then the property will be checked on the child regardless if it already exists or not. If true and the property doesn't exist, false will be returned.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#checkAll">Phaser.Group#checkAll</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1341">line 1341</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="checkProperty"><span class="type-signature"></span>checkProperty<span class="signature">(child, key, value, <span class="optional">force</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Checks a property for the given value on the child.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>child</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The child to check the property value on.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
<td class="name"><code>key</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">array</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>An array of strings that make up the property that will be set.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>value</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The value that will be checked.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>force</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>If <code>force</code> is true then the property will be checked on the child regardless if it already exists or not. If true and the property doesn't exist, false will be returned.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
2015-07-22 14:31:30 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the property was was equal to value, false if not.</p>
</div>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#checkProperty">Phaser.Group#checkProperty</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1205">line 1205</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="countDead"><span class="type-signature"></span>countDead<span class="signature">()</span><span class="type-signature"> &rarr; {integer}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Get the number of dead children in this group.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>The number of children flagged as dead.</p>
</div>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#countDead">Phaser.Group#countDead</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2293">line 2293</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="countLiving"><span class="type-signature"></span>countLiving<span class="signature">()</span><span class="type-signature"> &rarr; {integer}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Get the number of living children in this group.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<div class="returns-type">
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
-
</div>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<div class="returns-desc param-desc">
<p>The number of children flagged as alive.</p>
</div>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#countLiving">Phaser.Group#countLiving</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2281">line 2281</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="create"><span class="type-signature"></span>create<span class="signature">(x, y, <span class="optional">key</span>, <span class="optional">frame</span>, <span class="optional">exists</span>, <span class="optional">index</span>)</span><span class="type-signature"> &rarr; {<a href="global.html#DisplayObject">DisplayObject</a>}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Creates a new Phaser.Sprite object and adds it to the top of this group.</p>
2015-10-15 11:06:38 +00:00
<p>Use <a href="Phaser.Group.html#classType">classType</a> to change the type of object created.</p>
2016-06-09 16:13:31 +00:00
<p>The child is automatically added to the top of the group, and is displayed above every previous child.</p>
<p>Or if the <em>optional</em> index is specified, the child is added at the location specified by the index value,
this allows you to control child ordering.</p>
<p>If <code>Group.enableBody</code> is set, then a physics body will be created on the object, so long as one does not already exist.</p>
<p>If <code>Group.inputEnableChildren</code> is set, then an Input Handler will be created on the object, so long as one does not already exist.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>x</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">number</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The x coordinate to display the newly created Sprite at. The value is in relation to the group.x point.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>y</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">number</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The y coordinate to display the newly created Sprite at. The value is in relation to the group.y point.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
2015-07-22 14:31:30 +00:00
<tr>
<td class="name"><code>key</code></td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="type">
<span class="param-type">string</span>
2015-10-15 11:06:38 +00:00
|
<span class="param-type"><a href="Phaser.RenderTexture.html">Phaser.RenderTexture</a></span>
|
<span class="param-type"><a href="Phaser.BitmapData.html">Phaser.BitmapData</a></span>
|
<span class="param-type"><a href="Phaser.Video.html">Phaser.Video</a></span>
|
<span class="param-type"><a href="PIXI.Texture.html">PIXI.Texture</a></span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="attributes">
2015-10-15 11:06:38 +00:00
&lt;optional><br>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
2015-10-15 11:06:38 +00:00
<td class="description last"><p>This is the image or texture used by the Sprite during rendering. It can be a string which is a reference to the Cache Image entry, or an instance of a RenderTexture, BitmapData, Video or PIXI.Texture.</p></td>
2015-07-22 14:31:30 +00:00
</tr>
<tr>
<td class="name"><code>frame</code></td>
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">string</span>
2015-07-22 14:31:30 +00:00
|
2015-10-15 11:06:38 +00:00
<span class="param-type">number</span>
2015-07-22 14:31:30 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
2015-10-15 11:06:38 +00:00
<td class="description last"><p>If this Sprite is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.</p></td>
2015-07-22 14:31:30 +00:00
</tr>
<tr>
<td class="name"><code>exists</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
true
</td>
<td class="description last"><p>The default exists state of the Sprite.</p></td>
</tr>
2016-06-09 16:13:31 +00:00
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">integer</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>The index within the group to insert the child to. Where 0 is the bottom of the Group.</p></td>
</tr>
2015-07-22 14:31:30 +00:00
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
-
</div>
<div class="returns-desc param-desc">
<p>The child that was created: will be a <a href="Phaser.Sprite.html">Phaser.Sprite</a> unless #classType has been changed.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#create">Phaser.Group#create</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-537">line 537</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="createMultiple"><span class="type-signature"></span>createMultiple<span class="signature">(quantity, key, <span class="optional">frame</span>, <span class="optional">exists</span>)</span><span class="type-signature"> &rarr; {array}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Creates multiple Phaser.Sprite objects and adds them to the top of this Group.</p>
2016-06-17 00:11:24 +00:00
<p>This method is useful if you need to quickly generate a pool of sprites, such as bullets.</p>
2016-06-09 16:13:31 +00:00
<p>Use <a href="Phaser.Group.html#classType">classType</a> to change the type of object created.</p>
2016-06-17 00:11:24 +00:00
<p>You can provide an array as the <code>key</code> and / or <code>frame</code> arguments. When you do this
it will create <code>quantity</code> Sprites for every key (and frame) in the arrays.</p>
<p>For example:</p>
<p><code>createMultiple(25, ['ball', 'carrot'])</code></p>
<p>In the above code there are 2 keys (ball and carrot) which means that 50 sprites will be
created in total, 25 of each. You can also have the <code>frame</code> as an array:</p>
<p><code>createMultiple(5, 'bricks', [0, 1, 2, 3])</code></p>
<p>In the above there is one key (bricks), which is a sprite sheet. The frames array tells
this method to use frames 0, 1, 2 and 3. So in total it will create 20 sprites, because
the quantity was set to 5, so that is 5 brick sprites of frame 0, 5 brick sprites with
frame 1, and so on.</p>
<p>If you set both the key and frame arguments to be arrays then understand it will create
a total quantity of sprites equal to the size of both arrays times each other. I.e.:</p>
<p><code>createMultiple(20, ['diamonds', 'balls'], [0, 1, 2])</code></p>
<p>The above will create 20 'diamonds' of frame 0, 20 with frame 1 and 20 with frame 2.
It will then create 20 'balls' of frame 0, 20 with frame 1 and 20 with frame 2.
In total it will have created 120 sprites.</p>
2016-06-09 16:13:31 +00:00
<p>By default the Sprites will have their <code>exists</code> property set to <code>false</code>, and they will be
positioned at 0x0, relative to the <code>Group.x / y</code> values.</p>
<p>If <code>Group.enableBody</code> is set, then a physics body will be created on the objects, so long as one does not already exist.</p>
<p>If <code>Group.inputEnableChildren</code> is set, then an Input Handler will be created on the objects, so long as one does not already exist.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2015-07-22 14:31:30 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Default</th>
2014-11-15 20:01:46 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>quantity</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The number of Sprites to create.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>key</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">string</span>
2016-06-17 00:11:24 +00:00
|
<span class="param-type">array</span>
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="attributes">
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="default">
</td>
2016-06-17 00:11:24 +00:00
<td class="description last"><p>The Cache key of the image that the Sprites will use. Or an Array of keys. See the description for details on how the quantity applies when arrays are used.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>frame</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">integer</span>
|
<span class="param-type">string</span>
2016-06-17 00:11:24 +00:00
|
<span class="param-type">array</span>
2014-11-15 20:01:46 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="default">
2016-06-17 00:11:24 +00:00
0
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2016-06-17 00:11:24 +00:00
<td class="description last"><p>If the Sprite image contains multiple frames you can specify which one to use here. Or an Array of frames. See the description for details on how the quantity applies when arrays are used.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>exists</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">boolean</span>
</td>
2015-07-22 14:31:30 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="default">
false
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The default exists state of the Sprite.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
2016-06-09 16:13:31 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">array</span>
-
</div>
<div class="returns-desc param-desc">
<p>An array containing all of the Sprites that were created.</p>
</div>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#createMultiple">Phaser.Group#createMultiple</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-574">line 574</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="customSort"><span class="type-signature"></span>customSort<span class="signature">(sortHandler, <span class="optional">context</span>)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Sort the children in the group according to custom sort function.</p>
<p>The <code>sortHandler</code> is provided the two parameters: the two children involved in the comparison (a and b).
It should return -1 if <code>a &gt; b</code>, 1 if <code>a &lt; b</code> or 0 if <code>a === b</code>.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>sortHandler</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="attributes">
</td>
<td class="description last"><p>The custom sort function.</p></td>
</tr>
<tr>
<td class="name"><code>context</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last"><p>The context in which the sortHandler is called.</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#customSort">Phaser.Group#customSort</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1886">line 1886</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="descendingSortHandler"><span class="type-signature">&lt;internal> </span>descendingSortHandler<span class="signature">(a, b)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>An internal helper function for the sort process.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>a</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last"><p>The first object being sorted.</p></td>
</tr>
<tr>
<td class="name"><code>b</code></td>
<td class="type">
<span class="param-type">object</span>
</td>
<td class="description last"><p>The second object being sorted.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#descendingSortHandler">Phaser.Group#descendingSortHandler</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1942">line 1942</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="destroy"><span class="type-signature"></span>destroy<span class="signature">(<span class="optional">destroyChildren</span>, <span class="optional">soft</span>)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Destroys this group.</p>
<p>Removes all children, then removes this group from its parent and nulls references.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Default</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tbody>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tr>
<td class="name"><code>destroyChildren</code></td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="type">
<span class="param-type">boolean</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="attributes">
&lt;optional><br>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="default">
true
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>If true <code>destroy</code> will be invoked on each removed child.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tr>
<td class="name"><code>soft</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>A 'soft destroy' (set to true) doesn't remove this group from its parent or null the game reference. Set to false and it does.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#destroy">Phaser.Group#destroy</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2507">line 2507</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="divideAll"><span class="type-signature"></span>divideAll<span class="signature">(property, amount, checkAlive, checkVisible)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Divides the given property by the amount on all children in this group.</p>
<p><code>Group.divideAll('x', 2)</code> will half the child.x value for each child.</p>
2014-11-15 20:01:46 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tbody>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tr>
<td class="name"><code>property</code></td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="type">
<span class="param-type">string</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The property to divide, for example 'body.velocity.x' or 'angle'.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<tr>
<td class="name"><code>amount</code></td>
<td class="type">
<span class="param-type">number</span>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
</td>
2014-11-15 20:01:46 +00:00
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The amount to divide the property by. If child.x = 100 then divideAll('x', 2) would make child.x = 50.</p></td>
</tr>
<tr>
<td class="name"><code>checkAlive</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last"><p>If true the property will only be changed if the child is alive.</p></td>
</tr>
<tr>
<td class="name"><code>checkVisible</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last"><p>If true the property will only be changed if the child is visible.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#divideAll">Phaser.Group#divideAll</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1425">line 1425</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="draw"><span class="type-signature"></span>draw<span class="signature">()</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2015-03-23 23:46:30 +00:00
<p>Draws the P2 shapes to the Graphics object.</p>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_physics_p2_BodyDebug.js.html">physics/p2/BodyDebug.js</a>, <a href="src_physics_p2_BodyDebug.js.html#sunlight-1-line-85">line 85</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2014-11-25 00:23:44 +00:00
id="filter"><span class="type-signature"></span>filter<span class="signature">(predicate, <span class="optional">checkExists</span>)</span><span class="type-signature"> &rarr; {<a href="Phaser.ArraySet.html">Phaser.ArraySet</a>}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Find children matching a certain predicate.</p>
<p>For example:</p>
2015-03-23 23:46:30 +00:00
<pre class="prettyprint source"><code>var healthyList = Group.filter(function(child, index, children) {
return child.health > 10 ? true : false;
2014-11-25 00:23:44 +00:00
}, true);
2015-03-23 23:46:30 +00:00
healthyList.callAll('attack');</code></pre><p>Note: Currently this will skip any children which are Groups themselves.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>predicate</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The function that each child will be evaluated against. Each child of the group will be passed to it as its first parameter, the index as the second, and the entire child array as the third</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
<td class="name"><code>checkExists</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If true, only existing can be selected; otherwise all children can be selected and will be passed to the predicate.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-11-25 00:23:44 +00:00
<span class="param-type"><a href="Phaser.ArraySet.html">Phaser.ArraySet</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>Returns an array list containing all the children that the predicate returned true for</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#filter">Phaser.Group#filter</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1668">line 1668</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="forEach"><span class="type-signature"></span>forEach<span class="signature">(callback, callbackContext, <span class="optional">checkExists</span>, <span class="optional">args</span>)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Call a function on each child in this group.</p>
<p>Additional arguments for the callback can be specified after the <code>checkExists</code> parameter. For example,</p>
2015-03-23 23:46:30 +00:00
<pre class="prettyprint source"><code>Group.forEach(awardBonusGold, this, true, 100, 500)</code></pre><p>would invoke <code>awardBonusGold</code> function with the parameters <code>(child, 100, 500)</code>.</p>
<p>Note: This check will skip any children which are Groups themselves.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The function that will be called for each applicable child. The child will be passed as the first argument.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
<td class="name"><code>callbackContext</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>The context in which the function should be called (usually 'this').</p></td>
</tr>
<tr>
<td class="name"><code>checkExists</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If set only children matching for which <code>exists</code> is true will be passed to the callback, otherwise all children will be passed.</p></td>
</tr>
<tr>
<td class="name"><code>args</code></td>
<td class="type">
<span class="param-type">any</span>
</td>
<td class="attributes">
&lt;optional><br>
&lt;repeatable><br>
</td>
<td class="default">
(none)
</td>
<td class="description last"><p>Additional arguments to pass to the callback function, after the child item.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#forEach">Phaser.Group#forEach</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1708">line 1708</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="forEachAlive"><span class="type-signature"></span>forEachAlive<span class="signature">(callback, callbackContext, <span class="optional">args</span>)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Call a function on each alive child in this group.</p>
<p>See <a href="Phaser.Group.html#forEach">forEach</a> for details.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<th>Default</th>
2014-11-15 20:01:46 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The function that will be called for each applicable child. The child will be passed as the first argument.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
<td class="name"><code>callbackContext</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The context in which the function should be called (usually 'this').</p></td>
</tr>
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>args</code></td>
<td class="type">
<span class="param-type">any</span>
</td>
<td class="attributes">
&lt;optional><br>
&lt;repeatable><br>
</td>
<td class="default">
(none)
</td>
<td class="description last"><p>Additional arguments to pass to the callback function, after the child item.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#forEachAlive">Phaser.Group#forEachAlive</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1790">line 1790</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="forEachDead"><span class="type-signature"></span>forEachDead<span class="signature">(callback, callbackContext, <span class="optional">args</span>)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Call a function on each dead child in this group.</p>
<p>See <a href="Phaser.Group.html#forEach">forEach</a> for details.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<th>Default</th>
2014-11-15 20:01:46 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The function that will be called for each applicable child. The child will be passed as the first argument.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
<td class="name"><code>callbackContext</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The context in which the function should be called (usually 'this').</p></td>
</tr>
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>args</code></td>
<td class="type">
<span class="param-type">any</span>
</td>
<td class="attributes">
&lt;optional><br>
&lt;repeatable><br>
</td>
<td class="default">
(none)
</td>
<td class="description last"><p>Additional arguments to pass to the callback function, after the child item.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#forEachDead">Phaser.Group#forEachDead</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1818">line 1818</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="forEachExists"><span class="type-signature"></span>forEachExists<span class="signature">(callback, callbackContext, <span class="optional">args</span>)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Call a function on each existing child in this group.</p>
<p>See <a href="Phaser.Group.html#forEach">forEach</a> for details.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<th>Default</th>
2014-11-15 20:01:46 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The function that will be called for each applicable child. The child will be passed as the first argument.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
<td class="name"><code>callbackContext</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The context in which the function should be called (usually 'this').</p></td>
</tr>
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>args</code></td>
<td class="type">
<span class="param-type">any</span>
</td>
<td class="attributes">
&lt;optional><br>
&lt;repeatable><br>
</td>
<td class="default">
(none)
</td>
<td class="description last"><p>Additional arguments to pass to the callback function, after the child item.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#forEachExists">Phaser.Group#forEachExists</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1762">line 1762</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2016-05-19 11:36:51 +00:00
id="generateTexture"><span class="type-signature"></span>generateTexture<span class="signature">(resolution, scaleMode, renderer)</span><span class="type-signature"> &rarr; {<a href="PIXI.RenderTexture.html">PIXI.RenderTexture</a>}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
<p>Useful function that returns a texture of the displayObject object that can then be used to create sprites
This can be quite useful if your displayObject is static / complicated and needs to be reused multiple times.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>resolution</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>The resolution of the texture being generated</p></td>
</tr>
<tr>
<td class="name"><code>scaleMode</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>See {{#crossLink &quot;PIXI/scaleModes:property&quot;}}PIXI.scaleModes{{/crossLink}} for possible values</p></td>
</tr>
<tr>
<td class="name"><code>renderer</code></td>
<td class="type">
<span class="param-type"><a href="PIXI.CanvasRenderer.html">PIXI.CanvasRenderer</a></span>
|
<span class="param-type"><a href="PIXI.WebGLRenderer.html">PIXI.WebGLRenderer</a></span>
</td>
<td class="description last"><p>The renderer used to generate the texture.</p></td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2016-05-19 11:36:51 +00:00
<span class="param-type"><a href="PIXI.RenderTexture.html">PIXI.RenderTexture</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>a texture of the graphics object</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObject.html#generateTexture">PIXI.DisplayObject#generateTexture</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-541">line 541</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="getAt"><span class="type-signature"></span>getAt<span class="signature">(index)</span><span class="type-signature"> &rarr; {<a href="global.html#DisplayObject">DisplayObject</a>|integer}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Returns the child found at the given index within this group.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="description last"><p>The index to return the child from.</p></td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
2015-07-22 14:31:30 +00:00
|
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2014-12-03 10:39:11 +00:00
<p>The child that was found at the given index, or -1 for an invalid index.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#getAt">Phaser.Group#getAt</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-517">line 517</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="getBottom"><span class="type-signature"></span>getBottom<span class="signature">()</span><span class="type-signature"> &rarr; {any}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Returns the child at the bottom of this group.</p>
<p>The bottom child the child being displayed (rendered) below every other child.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>The child at the bottom of the Group.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#getBottom">Phaser.Group#getBottom</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2190">line 2190</a>
2014-11-15 20:01:46 +00:00
</dt>
2016-06-09 16:13:31 +00:00
2016-04-22 14:15:28 +00:00
2016-06-09 16:13:31 +00:00
2016-04-22 14:15:28 +00:00
2016-06-09 16:13:31 +00:00
</dl>
2016-04-22 14:15:28 +00:00
2016-06-09 16:13:31 +00:00
2016-04-22 14:15:28 +00:00
2016-06-09 16:13:31 +00:00
2016-04-22 14:15:28 +00:00
2016-06-09 16:13:31 +00:00
</dd>
2016-04-22 14:15:28 +00:00
2016-06-09 16:13:31 +00:00
<dt>
<h4 class="name "
id="getBounds"><span class="type-signature"></span>getBounds<span class="signature">()</span><span class="type-signature"> &rarr; {Rectangle}</span></h4>
</dt>
<dd>
<div class="description">
<p>Retrieves the bounds of the displayObjectContainer as a rectangle. The bounds calculation takes all visible children into consideration.</p>
</div>
2016-04-22 14:15:28 +00:00
2016-06-09 16:13:31 +00:00
2016-04-22 14:15:28 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2016-06-09 16:13:31 +00:00
<span class="param-type">Rectangle</span>
2016-04-22 14:15:28 +00:00
-
</div>
<div class="returns-desc param-desc">
2016-06-09 16:13:31 +00:00
<p>The rectangular bounding area</p>
2016-04-22 14:15:28 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObjectContainer.html#getBounds">PIXI.DisplayObjectContainer#getBounds</a>
2016-04-22 14:15:28 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-318">line 318</a>
2016-04-22 14:15:28 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="getByName"><span class="type-signature"></span>getByName<span class="signature">(name)</span><span class="type-signature"> &rarr; {any}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Searches the Group for the first instance of a child with the <code>name</code>
property matching the given argument. Should more than one child have
the same name only the first instance is returned.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2016-06-09 16:13:31 +00:00
<td class="name"><code>name</code></td>
<td class="type">
2016-06-09 16:13:31 +00:00
<span class="param-type">string</span>
</td>
2016-06-09 16:13:31 +00:00
<td class="description last"><p>The name to search for.</p></td>
2014-07-18 11:45:51 +00:00
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
<div class="returns-type">
2016-06-09 16:13:31 +00:00
<span class="param-type">any</span>
2014-07-18 11:45:51 +00:00
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2016-06-09 16:13:31 +00:00
<p>The first child with a matching name, or null if none were found.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#getByName">Phaser.Group#getByName</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1030">line 1030</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="getChildAt"><span class="type-signature"></span>getChildAt<span class="signature">(index)</span><span class="type-signature"> &rarr; {<a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Returns the child at the specified index</p>
</div>
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2016-06-09 16:13:31 +00:00
<td class="name"><code>index</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2016-06-09 16:13:31 +00:00
<span class="param-type">Number</span>
2014-11-15 20:01:46 +00:00
</td>
2016-06-09 16:13:31 +00:00
<td class="description last"><p>The index to get the child from</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2016-06-09 16:13:31 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2016-06-09 16:13:31 +00:00
<p>The child at the given index, if any.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObjectContainer.html#getChildAt">PIXI.DisplayObjectContainer#getChildAt</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-205">line 205</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
2016-06-03 17:48:34 +00:00
</dd>
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="getChildIndex"><span class="type-signature"></span>getChildIndex<span class="signature">(child)</span><span class="type-signature"> &rarr; {Number}</span></h4>
2016-06-03 17:48:34 +00:00
</dt>
<dd>
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Returns the index position of a child DisplayObject instance</p>
2016-06-03 17:48:34 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2016-06-09 16:13:31 +00:00
<td class="name"><code>child</code></td>
2016-06-03 17:48:34 +00:00
<td class="type">
2016-06-09 16:13:31 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
2016-06-03 17:48:34 +00:00
</td>
2016-06-09 16:13:31 +00:00
<td class="description last"><p>The DisplayObject instance to identify</p></td>
2016-06-03 17:48:34 +00:00
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2016-06-09 16:13:31 +00:00
<span class="param-type">Number</span>
2016-06-03 17:48:34 +00:00
-
</div>
<div class="returns-desc param-desc">
2016-06-09 16:13:31 +00:00
<p>The index position of the child display object to identify</p>
2016-06-03 17:48:34 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="PIXI.DisplayObjectContainer.html#getChildIndex">PIXI.DisplayObjectContainer#getChildIndex</a>
2016-06-03 17:48:34 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-170">line 170</a>
2016-06-03 17:48:34 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2016-06-09 16:13:31 +00:00
id="getClosestTo"><span class="type-signature"></span>getClosestTo<span class="signature">(object)</span><span class="type-signature"> &rarr; {any}</span></h4>
2016-06-03 17:48:34 +00:00
</dt>
<dd>
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Get the closest child to given Object.</p>
2016-06-03 17:48:34 +00:00
<p>This can be a Sprite, Group, Image or any object with public x and y properties.</p>
2016-06-09 16:13:31 +00:00
<p>'close' is determined by the distance from the objects <code>x</code> and <code>y</code> properties compared to the childs <code>x</code> and <code>y</code> properties.</p>
2016-06-03 17:48:34 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>object</code></td>
<td class="type">
<span class="param-type">any</span>
</td>
<td class="description last"><p>The object used to determine the distance. This can be a Sprite, Group, Image or any object with public x and y properties.</p></td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">any</span>
-
</div>
<div class="returns-desc param-desc">
2016-06-09 16:13:31 +00:00
<p>The child closest to given object, or null if no child was found.</p>
2016-06-03 17:48:34 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2016-06-09 16:13:31 +00:00
<a href="Phaser.Group.html#getClosestTo">Phaser.Group#getClosestTo</a>
2016-06-03 17:48:34 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2207">line 2207</a>
2016-06-03 17:48:34 +00:00
</dt>
</dl>
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="getFirstAlive"><span class="type-signature"></span>getFirstAlive<span class="signature">(<span class="optional">createIfNull</span>, <span class="optional">x</span>, <span class="optional">y</span>, <span class="optional">key</span>, <span class="optional">frame</span>)</span><span class="type-signature"> &rarr; {<a href="global.html#DisplayObject">DisplayObject</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Get the first child that is alive (<code>child.alive === true</code>).</p>
2015-10-15 11:06:38 +00:00
<p>This is handy for choosing a squad leader, etc.</p>
<p>You can use the optional argument <code>createIfNull</code> to create a new Game Object if no alive ones were found in this Group.</p>
<p>It works by calling <code>Group.create</code> passing it the parameters given to this method, and returning the new child.</p>
<p>If a child <em>was</em> found , <code>createIfNull</code> is <code>false</code> and you provided the additional arguments then the child
will be reset and/or have a new texture loaded on it. This is handled by <code>Group.resetChild</code>.</p>
</div>
2015-10-15 11:06:38 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
2015-10-15 11:06:38 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
2015-10-15 11:06:38 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2015-10-15 11:06:38 +00:00
<th>Default</th>
2015-10-15 11:06:38 +00:00
<th class="last">Description</th>
</tr>
</thead>
2015-10-15 11:06:38 +00:00
<tbody>
2015-10-15 11:06:38 +00:00
<tr>
<td class="name"><code>createIfNull</code></td>
2015-10-15 11:06:38 +00:00
<td class="type">
<span class="param-type">boolean</span>
2015-10-15 11:06:38 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2015-10-15 11:06:38 +00:00
2015-10-15 11:06:38 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="default">
false
</td>
2015-10-15 11:06:38 +00:00
<td class="description last"><p>If <code>true</code> and no alive children are found a new one is created.</p></td>
</tr>
2015-10-15 11:06:38 +00:00
2015-10-15 11:06:38 +00:00
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">number</span>
2015-10-15 11:06:38 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>The x coordinate to reset the child to. The value is in relation to the group.x point.</p></td>
</tr>
<tr>
<td class="name"><code>y</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>The y coordinate to reset the child to. The value is in relation to the group.y point.</p></td>
</tr>
<tr>
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type"><a href="Phaser.RenderTexture.html">Phaser.RenderTexture</a></span>
|
<span class="param-type"><a href="Phaser.BitmapData.html">Phaser.BitmapData</a></span>
|
<span class="param-type"><a href="Phaser.Video.html">Phaser.Video</a></span>
|
<span class="param-type"><a href="PIXI.Texture.html">PIXI.Texture</a></span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>This is the image or texture used by the Sprite during rendering. It can be a string which is a reference to the Cache Image entry, or an instance of a RenderTexture, BitmapData, Video or PIXI.Texture.</p></td>
</tr>
<tr>
<td class="name"><code>frame</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>If this Sprite is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.</p></td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
-
</div>
<div class="returns-desc param-desc">
<p>The alive dead child, or <code>null</code> if none found and <code>createIfNull</code> was false.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#getFirstAlive">Phaser.Group#getFirstAlive</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2074">line 2074</a>
2015-10-15 11:06:38 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="getFirstDead"><span class="type-signature"></span>getFirstDead<span class="signature">(<span class="optional">createIfNull</span>, <span class="optional">x</span>, <span class="optional">y</span>, <span class="optional">key</span>, <span class="optional">frame</span>)</span><span class="type-signature"> &rarr; {<a href="global.html#DisplayObject">DisplayObject</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2015-10-15 11:06:38 +00:00
<div class="description">
<p>Get the first child that is dead (<code>child.alive === false</code>).</p>
<p>This is handy for checking if everything has been wiped out and adding to the pool as needed.</p>
<p>You can use the optional argument <code>createIfNull</code> to create a new Game Object if no dead ones were found in this Group.</p>
<p>It works by calling <code>Group.create</code> passing it the parameters given to this method, and returning the new child.</p>
<p>If a child <em>was</em> found , <code>createIfNull</code> is <code>false</code> and you provided the additional arguments then the child
will be reset and/or have a new texture loaded on it. This is handled by <code>Group.resetChild</code>.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>createIfNull</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>If <code>true</code> and no dead children are found a new one is created.</p></td>
</tr>
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>The x coordinate to reset the child to. The value is in relation to the group.x point.</p></td>
</tr>
<tr>
<td class="name"><code>y</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>The y coordinate to reset the child to. The value is in relation to the group.y point.</p></td>
</tr>
<tr>
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type"><a href="Phaser.RenderTexture.html">Phaser.RenderTexture</a></span>
|
<span class="param-type"><a href="Phaser.BitmapData.html">Phaser.BitmapData</a></span>
|
<span class="param-type"><a href="Phaser.Video.html">Phaser.Video</a></span>
|
<span class="param-type"><a href="PIXI.Texture.html">PIXI.Texture</a></span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>This is the image or texture used by the Sprite during rendering. It can be a string which is a reference to the Cache Image entry, or an instance of a RenderTexture, BitmapData, Video or PIXI.Texture.</p></td>
</tr>
<tr>
<td class="name"><code>frame</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>If this Sprite is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2015-10-15 11:06:38 +00:00
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2015-10-15 11:06:38 +00:00
<p>The first dead child, or <code>null</code> if none found and <code>createIfNull</code> was false.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-11-15 20:01:46 +00:00
<a href="Phaser.Group.html#getFirstDead">Phaser.Group#getFirstDead</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2104">line 2104</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="getFirstExists"><span class="type-signature"></span>getFirstExists<span class="signature">(<span class="optional">exists</span>, <span class="optional">createIfNull</span>, <span class="optional">x</span>, <span class="optional">y</span>, <span class="optional">key</span>, <span class="optional">frame</span>)</span><span class="type-signature"> &rarr; {<a href="global.html#DisplayObject">DisplayObject</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Get the first display object that exists, or doesn't exist.</p>
2015-10-15 11:06:38 +00:00
<p>You can use the optional argument <code>createIfNull</code> to create a new Game Object if none matching your exists argument were found in this Group.</p>
<p>It works by calling <code>Group.create</code> passing it the parameters given to this method, and returning the new child.</p>
<p>If a child <em>was</em> found , <code>createIfNull</code> is <code>false</code> and you provided the additional arguments then the child
will be reset and/or have a new texture loaded on it. This is handled by <code>Group.resetChild</code>.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2015-10-15 11:06:38 +00:00
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>exists</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
true
</td>
<td class="description last"><p>If true, find the first existing child; otherwise find the first non-existing child.</p></td>
</tr>
<tr>
<td class="name"><code>createIfNull</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>If <code>true</code> and no alive children are found a new one is created.</p></td>
</tr>
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>The x coordinate to reset the child to. The value is in relation to the group.x point.</p></td>
</tr>
<tr>
<td class="name"><code>y</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
</td>
<td class="description last"><p>The y coordinate to reset the child to. The value is in relation to the group.y point.</p></td>
</tr>
<tr>
<td class="name"><code>key</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type"><a href="Phaser.RenderTexture.html">Phaser.RenderTexture</a></span>
|
<span class="param-type"><a href="Phaser.BitmapData.html">Phaser.BitmapData</a></span>
|
<span class="param-type"><a href="Phaser.Video.html">Phaser.Video</a></span>
|
<span class="param-type"><a href="PIXI.Texture.html">PIXI.Texture</a></span>
</td>
<td class="attributes">
&lt;optional><br>
2015-10-15 11:06:38 +00:00
2015-10-15 11:06:38 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="default">
</td>
<td class="description last"><p>This is the image or texture used by the Sprite during rendering. It can be a string which is a reference to the Cache Image entry, or an instance of a RenderTexture, BitmapData, Video or PIXI.Texture.</p></td>
</tr>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>frame</code></td>
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">string</span>
|
<span class="param-type">number</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2015-10-15 11:06:38 +00:00
<td class="description last"><p>If this Sprite is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
<div class="returns-type">
2015-10-15 11:06:38 +00:00
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2015-10-15 11:06:38 +00:00
<p>The first child, or <code>null</code> if none found and <code>createIfNull</code> was false.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#getFirstExists">Phaser.Group#getFirstExists</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2040">line 2040</a>
2016-06-09 16:13:31 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="getFurthestFrom"><span class="type-signature"></span>getFurthestFrom<span class="signature">(object)</span><span class="type-signature"> &rarr; {any}</span></h4>
</dt>
<dd>
<div class="description">
<p>Get the child furthest away from the given Object.</p>
<p>This can be a Sprite, Group, Image or any object with public x and y properties.</p>
<p>'furthest away' is determined by the distance from the objects <code>x</code> and <code>y</code> properties compared to the childs <code>x</code> and <code>y</code> properties.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>object</code></td>
<td class="type">
<span class="param-type">any</span>
</td>
<td class="description last"><p>The object used to determine the distance. This can be a Sprite, Group, Image or any object with public x and y properties.</p></td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">any</span>
-
</div>
<div class="returns-desc param-desc">
<p>The child furthest from the given object, or null if no child was found.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#getFurthestFrom">Phaser.Group#getFurthestFrom</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2244">line 2244</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="getIndex"><span class="type-signature"></span>getIndex<span class="signature">(child)</span><span class="type-signature"> &rarr; {integer}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Get the index position of the given child in this group, which should match the child's <code>z</code> property.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-11-15 20:01:46 +00:00
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>child</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The child to get the index for.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2014-12-03 10:39:11 +00:00
<p>The index of the child or -1 if it's not a member of this group.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-11-15 20:01:46 +00:00
<a href="Phaser.Group.html#getIndex">Phaser.Group#getIndex</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1017">line 1017</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dd>
<dt>
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="getLocalBounds"><span class="type-signature"></span>getLocalBounds<span class="signature">()</span><span class="type-signature"> &rarr; {Rectangle}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
<p>Retrieves the non-global local bounds of the displayObjectContainer as a rectangle. The calculation takes all visible children into consideration.</p>
</div>
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
<div class="returns-type">
2015-03-23 23:46:30 +00:00
<span class="param-type">Rectangle</span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>The rectangular bounding area</p>
</div>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObjectContainer.html#getLocalBounds">PIXI.DisplayObjectContainer#getLocalBounds</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-381">line 381</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="getRandom"><span class="type-signature"></span>getRandom<span class="signature">(<span class="optional">startIndex</span>, <span class="optional">length</span>)</span><span class="type-signature"> &rarr; {any}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Returns a random child from the group.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-12-03 10:39:11 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>startIndex</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
0
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>Offset from the front of the front of the group (lowest child).</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>length</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
(to top)
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>Restriction on the number of values you want to randomly select from.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>A random child of this Group.</p>
</div>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#getRandom">Phaser.Group#getRandom</a>
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2305">line 2305</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="getTop"><span class="type-signature"></span>getTop<span class="signature">()</span><span class="type-signature"> &rarr; {any}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Return the child at the top of this group.</p>
<p>The top child is the child displayed (rendered) above every other child.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>The child at the top of the Group.</p>
</div>
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-11-15 20:01:46 +00:00
<a href="Phaser.Group.html#getTop">Phaser.Group#getTop</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2173">line 2173</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
2014-04-10 22:13:43 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="hasProperty"><span class="type-signature"></span>hasProperty<span class="signature">(child, key)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2014-04-10 22:13:43 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-04-10 22:13:43 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Checks if the child has the given property.</p>
<p>Will scan up to 4 levels deep only.</p>
2014-04-10 22:13:43 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>child</code></td>
2014-04-10 22:13:43 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-04-10 22:13:43 +00:00
</td>
2016-06-09 16:13:31 +00:00
<td class="description last"><p>The child to check for the existence of the property on.</p></td>
2014-04-10 22:13:43 +00:00
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>key</code></td>
2014-04-10 22:13:43 +00:00
<td class="type">
2015-03-23 23:46:30 +00:00
<span class="param-type">Array.&lt;string></span>
2014-04-10 22:13:43 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>An array of strings that make up the property.</p></td>
2014-04-10 22:13:43 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the child has the property, otherwise false.</p>
</div>
</div>
2014-04-10 22:13:43 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-11-15 20:01:46 +00:00
<a href="Phaser.Group.html#hasProperty">Phaser.Group#hasProperty</a>
2014-04-10 22:13:43 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1092">line 1092</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-04-10 22:13:43 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-04-10 22:13:43 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="iterate"><span class="type-signature"></span>iterate<span class="signature">(key, value, returnType, <span class="optional">callback</span>, <span class="optional">callbackContext</span>, <span class="optional">args</span>)</span><span class="type-signature"> &rarr; {any}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Iterates over the children of the group performing one of several actions for matched children.</p>
<p>A child is considered a match when it has a property, named <code>key</code>, whose value is equal to <code>value</code>
according to a strict equality comparison.</p>
<p>The result depends on the <code>returnType</code>:</p>
<ul>
2015-08-24 14:43:45 +00:00
<li><a href="Phaser.Group.html#.RETURN_TOTAL">RETURN_TOTAL</a>:
2014-12-03 10:39:11 +00:00
The callback, if any, is applied to all matching children. The number of matched children is returned.</li>
2015-08-24 14:43:45 +00:00
<li><a href="Phaser.Group.html#.RETURN_NONE">RETURN_NONE</a>:
2014-12-03 10:39:11 +00:00
The callback, if any, is applied to all matching children. No value is returned.</li>
2015-08-24 14:43:45 +00:00
<li><a href="Phaser.Group.html#.RETURN_CHILD">RETURN_CHILD</a>:
2014-12-03 10:39:11 +00:00
The callback, if any, is applied to the <em>first</em> matching child and the <em>first</em> matched child is returned.
If there is no matching child then null is returned.</li>
</ul>
<p>If <code>args</code> is specified it must be an array. The matched child will be assigned to the first
element and the entire array will be applied to the callback function.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>key</code></td>
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">string</span>
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The child property to check, i.e. 'exists', 'alive', 'health'</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>value</code></td>
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">any</span>
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>A child matches if <code>child[key] === value</code> is true.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>returnType</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">integer</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>How to iterate the children and what to return.</p></td>
</tr>
<tr>
<td class="name"><code>callback</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
null
</td>
<td class="description last"><p>Optional function that will be called on each matching child. The matched child is supplied as the first argument.</p></td>
</tr>
<tr>
<td class="name"><code>callbackContext</code></td>
<td class="type">
<span class="param-type">object</span>
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
2015-07-22 14:31:30 +00:00
&lt;optional><br>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The context in which the function should be called (usually 'this').</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>args</code></td>
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">Array.&lt;any></span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
2015-07-22 14:31:30 +00:00
(none)
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The arguments supplied to to the callback; the first array index (argument) will be replaced with the matched child.</p></td>
</tr>
2015-07-22 14:31:30 +00:00
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">any</span>
-
</div>
<div class="returns-desc param-desc">
<p>Returns either an integer (for RETURN_TOTAL), the first matched child (for RETURN_CHILD), or null.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#iterate">Phaser.Group#iterate</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1967">line 1967</a>
2015-07-22 14:31:30 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="moveAll"><span class="type-signature"></span>moveAll<span class="signature">(group, <span class="optional">silent</span>)</span><span class="type-signature"> &rarr; {<a href="Phaser.Group.html">Phaser.Group</a>}</span></h4>
</dt>
<dd>
<div class="description">
<p>Moves all children from this Group to the Group given.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
2014-03-24 12:41:45 +00:00
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>group</code></td>
2014-03-24 12:41:45 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type"><a href="Phaser.Group.html">Phaser.Group</a></span>
2014-03-24 12:41:45 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>The new Group to which the children will be moved to.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
2014-12-03 10:39:11 +00:00
<tr>
2015-07-22 14:31:30 +00:00
<td class="name"><code>silent</code></td>
2014-12-03 10:39:11 +00:00
<td class="type">
2015-07-22 14:31:30 +00:00
<span class="param-type">boolean</span>
2014-12-03 10:39:11 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
2015-07-22 14:31:30 +00:00
false
2014-12-03 10:39:11 +00:00
</td>
2015-07-22 14:31:30 +00:00
<td class="description last"><p>If true the children will not dispatch the <code>onAddedToGroup</code> event for the new Group.</p></td>
2014-12-03 10:39:11 +00:00
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2015-07-22 14:31:30 +00:00
<span class="param-type"><a href="Phaser.Group.html">Phaser.Group</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2015-07-22 14:31:30 +00:00
<p>The Group to which all the children were moved.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#moveAll">Phaser.Group#moveAll</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2375">line 2375</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="moveDown"><span class="type-signature"></span>moveDown<span class="signature">(child)</span><span class="type-signature"> &rarr; {any}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Moves the given child down one place in this group unless it's already at the bottom.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The child to move down in the group.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">any</span>
-
</div>
<div class="returns-desc param-desc">
<p>The child that was moved.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#moveDown">Phaser.Group#moveDown</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-957">line 957</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="moveUp"><span class="type-signature"></span>moveUp<span class="signature">(child)</span><span class="type-signature"> &rarr; {any}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Moves the given child up one place in this group unless it's already at the top.</p>
</div>
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The child to move up in the group.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">any</span>
-
</div>
<div class="returns-desc param-desc">
<p>The child that was moved.</p>
</div>
</div>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#moveUp">Phaser.Group#moveUp</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-933">line 933</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="multiplyAll"><span class="type-signature"></span>multiplyAll<span class="signature">(property, amount, checkAlive, checkVisible)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Multiplies the given property by the amount on all children in this group.</p>
<p><code>Group.multiplyAll('x', 2)</code> will x2 the child.x value for each child.</p>
</div>
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>property</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">string</span>
2014-11-15 20:01:46 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The property to multiply, for example 'body.velocity.x' or 'angle'.</p></td>
</tr>
<tr>
<td class="name"><code>amount</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"><p>The amount to multiply the property by. If child.x = 10 then multiplyAll('x', 2) would make child.x = 20.</p></td>
</tr>
<tr>
<td class="name"><code>checkAlive</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last"><p>If true the property will only be changed if the child is alive.</p></td>
</tr>
<tr>
<td class="name"><code>checkVisible</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="description last"><p>If true the property will only be changed if the child is visible.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#multiplyAll">Phaser.Group#multiplyAll</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1408">line 1408</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="next"><span class="type-signature"></span>next<span class="signature">()</span><span class="type-signature"> &rarr; {any}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Advances the group cursor to the next (higher) object in the group.</p>
<p>If the cursor is at the end of the group (top child) it is moved the start of the group (bottom child).</p>
</div>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<div class="returns-type">
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
-
</div>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<div class="returns-desc param-desc">
<p>The child the cursor now points to.</p>
</div>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#next">Phaser.Group#next</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-821">line 821</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="postUpdate"><span class="type-signature">&lt;internal> </span>postUpdate<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>The core postUpdate - as called by World.</p>
</div>
2014-12-03 10:39:11 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#postUpdate">Phaser.Group#postUpdate</a>
</li></dd>
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1647">line 1647</a>
2014-12-03 10:39:11 +00:00
</dt>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</dl>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</dd>
2014-12-03 10:39:11 +00:00
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<dt>
<h4 class="name "
id="preUpdate"><span class="type-signature">&lt;internal> </span>preUpdate<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-12-03 10:39:11 +00:00
2015-07-22 14:31:30 +00:00
<div class="description">
<p>The core preUpdate - as called by World.</p>
</div>
2015-07-22 14:31:30 +00:00
2015-07-22 14:31:30 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-07-22 14:31:30 +00:00
<a href="Phaser.Group.html#preUpdate">Phaser.Group#preUpdate</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2015-07-22 14:31:30 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1602">line 1602</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-10-09 15:12:53 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-07-22 14:31:30 +00:00
id="previous"><span class="type-signature"></span>previous<span class="signature">()</span><span class="type-signature"> &rarr; {any}</span></h4>
2014-10-09 15:12:53 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-10-09 15:12:53 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Moves the group cursor to the previous (lower) child in the group.</p>
<p>If the cursor is at the start of the group (bottom child) it is moved to the end (top child).</p>
2014-10-09 15:12:53 +00:00
</div>
2015-07-22 14:31:30 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">any</span>
-
</div>
<div class="returns-desc param-desc">
<p>The child the cursor now points to.</p>
</div>
</div>
2014-10-09 15:12:53 +00:00
<dl class="details">
2015-07-22 14:31:30 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#previous">Phaser.Group#previous</a>
</li></dd>
2014-10-09 15:12:53 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-850">line 850</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="remove"><span class="type-signature"></span>remove<span class="signature">(child, <span class="optional">destroy</span>, <span class="optional">silent</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Removes the given child from this group.</p>
<p>This will dispatch an <code>onRemovedFromGroup</code> event from the child (if it has one), and optionally destroy the child.</p>
<p>If the group cursor was referring to the removed child it is updated to refer to the next child.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-12-03 10:39:11 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The child to remove.</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>destroy</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
2014-12-03 10:39:11 +00:00
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
false
</td>
<td class="description last"><p>If true <code>destroy</code> will be invoked on the removed child.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>silent</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">boolean</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
2014-12-03 10:39:11 +00:00
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
false
</td>
<td class="description last"><p>If true the the child will not dispatch the <code>onRemovedFromGroup</code> event.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>true if the child was removed from this group, otherwise false.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#remove">Phaser.Group#remove</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2327">line 2327</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2016-06-03 17:48:34 +00:00
id="removeAll"><span class="type-signature"></span>removeAll<span class="signature">(<span class="optional">destroy</span>, <span class="optional">silent</span>, <span class="optional">destroyTexture</span>)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2016-06-03 17:48:34 +00:00
<p>Removes all children from this Group, but does not remove the group from its parent.</p>
<p>The children can be optionally destroyed as they are removed.</p>
<p>You can also optionally also destroy the BaseTexture the Child is using. Be careful if you've
more than one Game Object sharing the same BaseTexture.</p>
</div>
2014-12-03 10:39:11 +00:00
<h5>Parameters:</h5>
2014-12-03 10:39:11 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-12-03 10:39:11 +00:00
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-12-03 10:39:11 +00:00
<th>Default</th>
2014-12-03 10:39:11 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-12-03 10:39:11 +00:00
<tbody>
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>destroy</code></td>
2014-12-03 10:39:11 +00:00
<td class="type">
<span class="param-type">boolean</span>
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
false
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If true <code>destroy</code> will be invoked on each removed child.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>silent</code></td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">boolean</span>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>If true the children will not dispatch their <code>onRemovedFromGroup</code> events.</p></td>
</tr>
2016-06-03 17:48:34 +00:00
<tr>
<td class="name"><code>destroyTexture</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>If true, and if the <code>destroy</code> argument is also true, the BaseTexture belonging to the Child is also destroyed. Note that if another Game Object is sharing the same BaseTexture it will invalidate it.</p></td>
</tr>
2014-12-03 10:39:11 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#removeAll">Phaser.Group#removeAll</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2404">line 2404</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="removeBetween"><span class="type-signature"></span>removeBetween<span class="signature">(startIndex, <span class="optional">endIndex</span>, <span class="optional">destroy</span>, <span class="optional">silent</span>)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Removes all children from this group whose index falls beteen the given startIndex and endIndex values.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<h5>Parameters:</h5>
2014-12-03 10:39:11 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-12-03 10:39:11 +00:00
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-12-03 10:39:11 +00:00
<th>Default</th>
2014-12-03 10:39:11 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-12-03 10:39:11 +00:00
<tbody>
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>startIndex</code></td>
2014-12-03 10:39:11 +00:00
<td class="type">
<span class="param-type">integer</span>
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The index to start removing children from.</p></td>
</tr>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>endIndex</code></td>
2014-12-03 10:39:11 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The index to stop removing children at. Must be higher than startIndex. If undefined this method will remove all children between startIndex and the end of the group.</p></td>
</tr>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>destroy</code></td>
2014-12-03 10:39:11 +00:00
<td class="type">
<span class="param-type">boolean</span>
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
false
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If true <code>destroy</code> will be invoked on each removed child.</p></td>
</tr>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>silent</code></td>
2014-12-03 10:39:11 +00:00
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
<td class="description last"><p>If true the children will not dispatch their <code>onRemovedFromGroup</code> events.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-12-03 10:39:11 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#removeBetween">Phaser.Group#removeBetween</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2452">line 2452</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="removeChild"><span class="type-signature"></span>removeChild<span class="signature">(child)</span><span class="type-signature"> &rarr; {<a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Removes a child from the container.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>child</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The DisplayObject to remove</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2014-12-03 10:39:11 +00:00
<p>The child that was removed.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="PIXI.DisplayObjectContainer.html#removeChild">PIXI.DisplayObjectContainer#removeChild</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-222">line 222</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="removeChildAt"><span class="type-signature"></span>removeChildAt<span class="signature">(index)</span><span class="type-signature"> &rarr; {<a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a>}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Removes a child from the specified index position.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>index</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">Number</span>
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The index to get the child from</p></td>
2014-11-15 20:01:46 +00:00
</tr>
2014-12-03 10:39:11 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<div class="returns-type">
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
2014-12-03 10:39:11 +00:00
-
</div>
2014-12-03 10:39:11 +00:00
<div class="returns-desc param-desc">
<p>The child that was removed.</p>
</div>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="PIXI.DisplayObjectContainer.html#removeChildAt">PIXI.DisplayObjectContainer#removeChildAt</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-237">line 237</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="removeChildren"><span class="type-signature"></span>removeChildren<span class="signature">(beginIndex, endIndex)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Removes all children from this container that are within the begin and end indexes.</p>
</div>
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-11-15 20:01:46 +00:00
<tbody>
2014-11-15 20:01:46 +00:00
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>beginIndex</code></td>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">Number</span>
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The beginning position. Default value is 0.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>endIndex</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">Number</span>
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The ending position. Default value is size of the container.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
</tbody>
</table>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<dl class="details">
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-10-15 11:06:38 +00:00
<a href="PIXI.DisplayObjectContainer.html#removeChildren">PIXI.DisplayObjectContainer#removeChildren</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-255">line 255</a>
2015-10-15 11:06:38 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="removeFromHash"><span class="type-signature"></span>removeFromHash<span class="signature">(child)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
</dt>
<dd>
<div class="description">
<p>Removes a child of this Group from the hash array.
This call will return false if the child is not in the hash.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>child</code></td>
<td class="type">
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
</td>
<td class="description last"><p>The display object to remove from this Groups hash. Must be a member of this Group and in the hash.</p></td>
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the child was successfully removed from the hash, otherwise false.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#removeFromHash">Phaser.Group#removeFromHash</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-457">line 457</a>
2015-10-15 11:06:38 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
id="removeStageReference"><span class="type-signature"></span>removeStageReference<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>Removes the current stage reference from the container and all of its children.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObjectContainer.html#removeStageReference">PIXI.DisplayObjectContainer#removeStageReference</a>
2014-12-03 10:39:11 +00:00
</li></dd>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-426">line 426</a>
2015-07-22 14:31:30 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="replace"><span class="type-signature"></span>replace<span class="signature">(oldChild, newChild)</span><span class="type-signature"> &rarr; {any}</span></h4>
2015-07-22 14:31:30 +00:00
</dt>
<dd>
<div class="description">
2016-06-09 16:13:31 +00:00
<p>Replaces a child of this Group with the given newChild. The newChild cannot be a member of this Group.</p>
<p>If <code>Group.enableBody</code> is set, then a physics body will be created on the object, so long as one does not already exist.</p>
<p>If <code>Group.inputEnableChildren</code> is set, then an Input Handler will be created on the object, so long as one does not already exist.</p>
2015-07-22 14:31:30 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>oldChild</code></td>
2015-07-22 14:31:30 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">any</span>
2015-07-22 14:31:30 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="description last"><p>The child in this group that will be replaced.</p></td>
</tr>
<tr>
<td class="name"><code>newChild</code></td>
<td class="type">
<span class="param-type">any</span>
</td>
<td class="description last"><p>The child to be inserted into this group.</p></td>
2015-07-22 14:31:30 +00:00
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2015-10-15 11:06:38 +00:00
<span class="param-type">any</span>
2015-07-22 14:31:30 +00:00
-
</div>
<div class="returns-desc param-desc">
2015-10-15 11:06:38 +00:00
<p>Returns the oldChild that was replaced within this group.</p>
2015-07-22 14:31:30 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-10-15 11:06:38 +00:00
<a href="Phaser.Group.html#replace">Phaser.Group#replace</a>
2015-07-22 14:31:30 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1053">line 1053</a>
2014-12-03 10:39:11 +00:00
</dt>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</dl>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</dd>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<dt>
<h4 class="name "
2015-10-15 11:06:38 +00:00
id="resetChild"><span class="type-signature"></span>resetChild<span class="signature">(child, <span class="optional">x</span>, <span class="optional">y</span>, <span class="optional">key</span>, <span class="optional">frame</span>)</span><span class="type-signature"> &rarr; {<a href="global.html#DisplayObject">DisplayObject</a>}</span></h4>
2014-12-03 10:39:11 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<div class="description">
2015-10-15 11:06:38 +00:00
<p>Takes a child and if the <code>x</code> and <code>y</code> arguments are given it calls <code>child.reset(x, y)</code> on it.</p>
<p>If the <code>key</code> and optionally the <code>frame</code> arguments are given, it calls <code>child.loadTexture(key, frame)</code> on it.</p>
<p>The two operations are separate. For example if you just wish to load a new texture then pass <code>null</code> as the x and y values.</p>
2014-12-03 10:39:11 +00:00
</div>
2014-12-03 10:39:11 +00:00
2015-10-15 11:06:38 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
2015-10-15 11:06:38 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2015-10-15 11:06:38 +00:00
<th>Type</th>
2015-10-15 11:06:38 +00:00
<th>Argument</th>
2015-10-15 11:06:38 +00:00
2015-10-15 11:06:38 +00:00
<th class="last">Description</th>
</tr>
</thead>
2015-10-15 11:06:38 +00:00
<tbody>
2015-10-15 11:06:38 +00:00
<tr>
<td class="name"><code>child</code></td>
2015-10-15 11:06:38 +00:00
<td class="type">
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
2015-10-15 11:06:38 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
2015-10-15 11:06:38 +00:00
2015-10-15 11:06:38 +00:00
</td>
2015-10-15 11:06:38 +00:00
2015-10-15 11:06:38 +00:00
<td class="description last"><p>The child to reset and/or load the texture on.</p></td>
</tr>
2015-10-15 11:06:38 +00:00
2015-10-15 11:06:38 +00:00
<tr>
<td class="name"><code>x</code></td>
2014-11-15 20:01:46 +00:00
2015-10-15 11:06:38 +00:00
<td class="type">
<span class="param-type">number</span>
2015-10-15 11:06:38 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2015-10-15 11:06:38 +00:00
2015-10-15 11:06:38 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="description last"><p>The x coordinate to reset the child to. The value is in relation to the group.x point.</p></td>
</tr>
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>y</code></td>
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">number</span>
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
2015-10-15 11:06:38 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="description last"><p>The y coordinate to reset the child to. The value is in relation to the group.y point.</p></td>
</tr>
2014-12-03 10:39:11 +00:00
<tr>
2015-10-15 11:06:38 +00:00
<td class="name"><code>key</code></td>
2014-12-03 10:39:11 +00:00
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">string</span>
|
<span class="param-type"><a href="Phaser.RenderTexture.html">Phaser.RenderTexture</a></span>
|
<span class="param-type"><a href="Phaser.BitmapData.html">Phaser.BitmapData</a></span>
|
<span class="param-type"><a href="Phaser.Video.html">Phaser.Video</a></span>
|
<span class="param-type"><a href="PIXI.Texture.html">PIXI.Texture</a></span>
2014-12-03 10:39:11 +00:00
</td>
2015-10-15 11:06:38 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-12-03 10:39:11 +00:00
2015-10-15 11:06:38 +00:00
<td class="description last"><p>This is the image or texture used by the Sprite during rendering. It can be a string which is a reference to the Cache Image entry, or an instance of a RenderTexture, BitmapData, Video or PIXI.Texture.</p></td>
</tr>
<tr>
<td class="name"><code>frame</code></td>
<td class="type">
<span class="param-type">string</span>
|
<span class="param-type">number</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last"><p>If this Sprite is using part of a sprite sheet or texture atlas you can specify the exact frame to use by giving a string or numeric index.</p></td>
2014-12-03 10:39:11 +00:00
</tr>
</tbody>
</table>
<h5>Returns:</h5>
<div class="returns">
2014-11-15 20:01:46 +00:00
<div class="returns-type">
2015-10-15 11:06:38 +00:00
<span class="param-type"><a href="global.html#DisplayObject">DisplayObject</a></span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2015-10-15 11:06:38 +00:00
<p>The child that was reset: usually a <a href="Phaser.Sprite.html">Phaser.Sprite</a>.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2015-10-15 11:06:38 +00:00
<a href="Phaser.Group.html#resetChild">Phaser.Group#resetChild</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-2134">line 2134</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="resetCursor"><span class="type-signature"></span>resetCursor<span class="signature">(<span class="optional">index</span>)</span><span class="type-signature"> &rarr; {any}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Sets the group cursor to the first child in the group.</p>
<p>If the optional index parameter is given it sets the cursor to the object at that index instead.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-12-03 10:39:11 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>index</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
0
</td>
<td class="description last"><p>Set the cursor to point to a specific index.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2014-12-03 10:39:11 +00:00
<p>The child the cursor now points to.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#resetCursor">Phaser.Group#resetCursor</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-794">line 794</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="reverse"><span class="type-signature"></span>reverse<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Reverses all children in this group.</p>
2016-02-08 17:01:36 +00:00
<p>This operation applies only to immediate children and does not propagate to subgroups.</p>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#reverse">Phaser.Group#reverse</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1003">line 1003</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="sendToBack"><span class="type-signature"></span>sendToBack<span class="signature">(child)</span><span class="type-signature"> &rarr; {any}</span></h4>
2014-05-20 09:12:48 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Sends the given child to the bottom of this group so it renders below all other children.</p>
2014-05-20 09:12:48 +00:00
</div>
<h5>Parameters:</h5>
2014-12-03 10:39:11 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-12-03 10:39:11 +00:00
<th>Type</th>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-12-03 10:39:11 +00:00
<tbody>
2014-07-10 19:31:11 +00:00
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child</code></td>
2014-07-10 19:31:11 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-07-10 19:31:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The child to send to the bottom of this group.</p></td>
2014-07-10 19:31:11 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
-
</div>
<div class="returns-desc param-desc">
2014-12-03 10:39:11 +00:00
<p>The child that was moved.</p>
2014-11-15 20:01:46 +00:00
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#sendToBack">Phaser.Group#sendToBack</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-914">line 914</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="set"><span class="type-signature"></span>set<span class="signature">(child, key, value, <span class="optional">checkAlive</span>, <span class="optional">checkVisible</span>, <span class="optional">operation</span>, <span class="optional">force</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Quickly set a property on a single child of this group to a new value.</p>
2014-11-15 20:01:46 +00:00
<p>The operation parameter controls how the new value is assigned to the property, from simple replacement to addition and multiplication.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Argument</th>
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>child</code></td>
<td class="type">
<span class="param-type"><a href="Phaser.Sprite.html">Phaser.Sprite</a></span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
<td class="description last"><p>The child to set the property on.</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>key</code></td>
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">string</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The property, as a string, to be set. For example: 'body.velocity.x'</p></td>
2014-07-10 19:31:11 +00:00
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>value</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
<td class="description last"><p>The value that will be set.</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>checkAlive</code></td>
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">boolean</span>
</td>
2014-04-10 22:13:43 +00:00
<td class="attributes">
2014-11-15 20:01:46 +00:00
&lt;optional><br>
2014-04-10 22:13:43 +00:00
</td>
<td class="default">
2014-11-15 20:01:46 +00:00
false
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If set then the child will only be updated if alive=true.</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>checkVisible</code></td>
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">boolean</span>
</td>
2014-04-10 22:13:43 +00:00
<td class="attributes">
&lt;optional><br>
2014-04-10 22:13:43 +00:00
</td>
2014-04-10 22:13:43 +00:00
<td class="default">
2014-11-15 20:01:46 +00:00
false
</td>
2014-04-10 22:13:43 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If set then the child will only be updated if visible=true.</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>operation</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
2014-11-15 20:01:46 +00:00
0
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>Controls how the value is assigned. A value of 0 replaces the value with the new one. A value of 1 adds it, 2 subtracts it, 3 multiplies it and 4 divides it.</p></td>
</tr>
2014-07-10 19:31:11 +00:00
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>force</code></td>
2014-07-10 19:31:11 +00:00
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>If <code>force</code> is true then the property will be set on the child regardless if it already exists or not. If false and the property doesn't exist, nothing will be set.</p></td>
2014-07-10 19:31:11 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the property was set, false if not.</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#set">Phaser.Group#set</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1234">line 1234</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="setAll"><span class="type-signature"></span>setAll<span class="signature">(key, value, <span class="optional">checkAlive</span>, <span class="optional">checkVisible</span>, <span class="optional">operation</span>, <span class="optional">force</span>)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Quickly set the same property across all children of this group to a new value.</p>
<p>This call doesn't descend down children, so if you have a Group inside of this group, the property will be set on the group but not its children.
If you need that ability please see <code>Group.setAllChildren</code>.</p>
2014-11-15 20:01:46 +00:00
<p>The operation parameter controls how the new value is assigned to the property, from simple replacement to addition and multiplication.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>key</code></td>
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">string</span>
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The property, as a string, to be set. For example: 'body.velocity.x'</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>value</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
</td>
2014-11-15 20:01:46 +00:00
<td class="attributes">
</td>
2014-11-15 20:01:46 +00:00
<td class="default">
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>The value that will be set.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>checkAlive</code></td>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">boolean</span>
2014-03-24 12:41:45 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
false
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>If set then only children with alive=true will be updated. This includes any Groups that are children.</p></td>
</tr>
2014-04-29 14:39:02 +00:00
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>checkVisible</code></td>
2014-04-29 14:39:02 +00:00
<td class="type">
2014-11-15 20:01:46 +00:00
<span class="param-type">boolean</span>
2014-04-29 14:39:02 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
2014-11-15 20:01:46 +00:00
false
2014-04-29 14:39:02 +00:00
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>If set then only children with visible=true will be updated. This includes any Groups that are children.</p></td>
2014-04-29 14:39:02 +00:00
</tr>
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>operation</code></td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
0
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>Controls how the value is assigned. A value of 0 replaces the value with the new one. A value of 1 adds it, 2 subtracts it, 3 multiplies it and 4 divides it.</p></td>
</tr>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<tr>
<td class="name"><code>force</code></td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="type">
<span class="param-type">boolean</span>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="attributes">
&lt;optional><br>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="default">
false
</td>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
<td class="description last"><p>If <code>force</code> is true then the property will be set on the child regardless if it already exists or not. If false and the property doesn't exist, nothing will be set.</p></td>
</tr>
2014-04-29 14:39:02 +00:00
2014-11-15 20:01:46 +00:00
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#setAll">Phaser.Group#setAll</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1265">line 1265</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="setAllChildren"><span class="type-signature"></span>setAllChildren<span class="signature">(key, value, <span class="optional">checkAlive</span>, <span class="optional">checkVisible</span>, <span class="optional">operation</span>, <span class="optional">force</span>)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Quickly set the same property across all children of this group, and any child Groups, to a new value.</p>
<p>If this group contains other Groups then the same property is set across their children as well, iterating down until it reaches the bottom.
Unlike with <code>setAll</code> the property is NOT set on child Groups itself.</p>
<p>The operation parameter controls how the new value is assigned to the property, from simple replacement to addition and multiplication.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-12-03 10:39:11 +00:00
<th>Default</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>key</code></td>
2014-11-15 20:01:46 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">string</span>
2014-11-15 20:01:46 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The property, as a string, to be set. For example: 'body.velocity.x'</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>value</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The value that will be set.</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>checkAlive</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">boolean</span>
</td>
<td class="attributes">
2014-12-03 10:39:11 +00:00
&lt;optional><br>
</td>
<td class="default">
2014-12-03 10:39:11 +00:00
false
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If set then only children with alive=true will be updated. This includes any Groups that are children.</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>checkVisible</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">boolean</span>
</td>
<td class="attributes">
2014-12-03 10:39:11 +00:00
&lt;optional><br>
</td>
<td class="default">
2014-12-03 10:39:11 +00:00
false
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If set then only children with visible=true will be updated. This includes any Groups that are children.</p></td>
</tr>
<tr>
2014-11-15 20:01:46 +00:00
<td class="name"><code>operation</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
2014-11-15 20:01:46 +00:00
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
0
</td>
<td class="description last"><p>Controls how the value is assigned. A value of 0 replaces the value with the new one. A value of 1 adds it, 2 subtracts it, 3 multiplies it and 4 divides it.</p></td>
</tr>
<tr>
<td class="name"><code>force</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="default">
false
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>If <code>force</code> is true then the property will be set on the child regardless if it already exists or not. If false and the property doesn't exist, nothing will be set.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#setAllChildren">Phaser.Group#setAllChildren</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1300">line 1300</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="setChildIndex"><span class="type-signature"></span>setChildIndex<span class="signature">(child, index)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Changes the position of an existing child in the display object container</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
2014-11-15 20:01:46 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The child DisplayObject instance for which you want to change the index number</p></td>
</tr>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
<span class="param-type">Number</span>
</td>
<td class="description last"><p>The resulting index number for the child display object</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="PIXI.DisplayObjectContainer.html#setChildIndex">PIXI.DisplayObjectContainer#setChildIndex</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-187">line 187</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
</dl>
</dd>
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="setProperty"><span class="type-signature"></span>setProperty<span class="signature">(child, key, value, <span class="optional">operation</span>, <span class="optional">force</span>)</span><span class="type-signature"> &rarr; {boolean}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Sets a property to the given value on the child. The operation parameter controls how the value is set.</p>
2015-03-23 23:46:30 +00:00
<p>The operations are:</p>
<ul>
<li>0: set the existing value to the given value; if force is <code>true</code> a new property will be created if needed</li>
<li>1: will add the given value to the value already present.</li>
<li>2: will subtract the given value from the value already present.</li>
<li>3: will multiply the value already present by the given value.</li>
<li>4: will divide the value already present by the given value.</li>
</ul>
2014-11-15 20:01:46 +00:00
</div>
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
2014-11-15 20:01:46 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-11-15 20:01:46 +00:00
<th>Type</th>
2014-11-15 20:01:46 +00:00
<th>Argument</th>
2014-11-15 20:01:46 +00:00
<th>Default</th>
2014-11-15 20:01:46 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-11-15 20:01:46 +00:00
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The child to set the property value on.</p></td>
</tr>
2014-05-20 09:12:48 +00:00
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>key</code></td>
2014-05-20 09:12:48 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">array</span>
2014-05-20 09:12:48 +00:00
</td>
<td class="attributes">
</td>
<td class="default">
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>An array of strings that make up the property that will be set.</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>value</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
</td>
<td class="description last"><p>The value that will be set.</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>operation</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
0
</td>
<td class="description last"><p>Controls how the value is assigned. A value of 0 replaces the value with the new one. A value of 1 adds it, 2 subtracts it, 3 multiplies it and 4 divides it.</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>force</code></td>
<td class="type">
<span class="param-type">boolean</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-12-03 10:39:11 +00:00
<td class="default">
false
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If <code>force</code> is true then the property will be set on the child regardless if it already exists or not. If false and the property doesn't exist, nothing will be set.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
<span class="param-type">boolean</span>
-
</div>
<div class="returns-desc param-desc">
<p>True if the property was set, false if not.</p>
</div>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#setProperty">Phaser.Group#setProperty</a>
2014-11-15 20:01:46 +00:00
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1127">line 1127</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
</dd>
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="setStageReference"><span class="type-signature"></span>setStageReference<span class="signature">(stage)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Sets the containers Stage reference. This is the Stage that this object, and all of its children, is connected to.</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
2014-11-15 20:01:46 +00:00
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>stage</code></td>
2014-05-20 09:12:48 +00:00
<td class="type">
2015-10-15 11:06:38 +00:00
<span class="param-type">Stage</span>
2014-05-20 09:12:48 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>the stage that the container will have as its current stage reference</p></td>
2014-05-20 09:12:48 +00:00
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="PIXI.DisplayObjectContainer.html#setStageReference">PIXI.DisplayObjectContainer#setStageReference</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-410">line 410</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-03-24 12:41:45 +00:00
</dl>
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="sort"><span class="type-signature"></span>sort<span class="signature">(<span class="optional">key</span>, <span class="optional">order</span>)</span><span class="type-signature"></span></h4>
2014-03-24 12:41:45 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Sort the children in the group according to a particular key and ordering.</p>
2016-02-08 17:01:36 +00:00
<p>Call this function to sort the group according to a particular key value and order.</p>
<p>For example to depth sort Sprites for Zelda-style game you might call <code>group.sort('y', Phaser.Group.SORT_ASCENDING)</code> at the bottom of your <code>State.update()</code>.</p>
<p>Internally this uses a standard JavaScript Array sort, so everything that applies there also applies here, including
alphabetical sorting, mixing strings and numbers, and Unicode sorting. See MDN for more details.</p>
2014-03-24 12:41:45 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
2014-03-24 12:41:45 +00:00
2014-12-03 10:39:11 +00:00
<th>Default</th>
2014-03-24 12:41:45 +00:00
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>key</code></td>
2014-03-24 12:41:45 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">string</span>
2014-03-24 12:41:45 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
</td>
2014-03-24 12:41:45 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
'z'
</td>
2014-03-24 12:41:45 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The name of the property to sort on. Defaults to the objects z-depth value.</p></td>
2014-03-24 12:41:45 +00:00
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>order</code></td>
2014-03-24 12:41:45 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
2014-03-24 12:41:45 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
&lt;optional><br>
2014-03-24 12:41:45 +00:00
2014-12-03 10:39:11 +00:00
</td>
2014-03-24 12:41:45 +00:00
2014-12-03 10:39:11 +00:00
<td class="default">
Phaser.Group.SORT_ASCENDING
</td>
2015-08-24 14:43:45 +00:00
<td class="description last"><p>Order ascending (<a href="Phaser.Group.html#.SORT_ASCENDING">SORT_ASCENDING</a>) or descending (<a href="Phaser.Group.html#.SORT_DESCENDING">SORT_DESCENDING</a>).</p></td>
2014-03-24 12:41:45 +00:00
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#sort">Phaser.Group#sort</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1846">line 1846</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
</dl>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
</dd>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="subAll"><span class="type-signature"></span>subAll<span class="signature">(property, amount, checkAlive, checkVisible)</span><span class="type-signature"></span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Subtracts the amount from the given property on all children in this group.</p>
<p><code>Group.subAll('x', 10)</code> will minus 10 from the child.x value for each child.</p>
2014-11-15 20:01:46 +00:00
</div>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<h5>Parameters:</h5>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<th>Type</th>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<th class="last">Description</th>
</tr>
</thead>
2014-03-24 12:41:45 +00:00
2014-11-15 20:01:46 +00:00
<tbody>
2014-03-24 12:41:45 +00:00
2014-05-20 09:12:48 +00:00
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>property</code></td>
2014-05-20 09:12:48 +00:00
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">string</span>
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
</td>
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The property to decrement, for example 'body.velocity.x' or 'angle'.</p></td>
2014-05-20 09:12:48 +00:00
</tr>
2014-03-24 12:41:45 +00:00
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>amount</code></td>
2014-03-24 12:41:45 +00:00
2014-12-03 10:39:11 +00:00
<td class="type">
<span class="param-type">number</span>
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The amount to subtract from the property. If child.x = 50 then subAll('x', 40) would make child.x = 10.</p></td>
</tr>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<tr>
<td class="name"><code>checkAlive</code></td>
2014-12-03 10:39:11 +00:00
<td class="type">
<span class="param-type">boolean</span>
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If true the property will only be changed if the child is alive.</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>checkVisible</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">boolean</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>If true the property will only be changed if the child is visible.</p></td>
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
2014-05-20 09:12:48 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#subAll">Phaser.Group#subAll</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1391">line 1391</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="swap"><span class="type-signature"></span>swap<span class="signature">(child1, child2)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Swaps the position of two children in this group.</p>
<p>Both children must be in this group, a child cannot be swapped with itself, and unparented children cannot be swapped.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child1</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The first child to swap.</p></td>
</tr>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child2</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">any</span>
</td>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The second child to swap.</p></td>
2014-11-15 20:01:46 +00:00
</tr>
</tbody>
</table>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="Phaser.Group.html#swap">Phaser.Group#swap</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-879">line 879</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="swapChildren"><span class="type-signature"></span>swapChildren<span class="signature">(child, child2)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Swaps the position of 2 Display Objects within this container.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>child</code></td>
<td class="type">
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
</td>
<td class="description last"><p>-</p></td>
</tr>
<tr>
<td class="name"><code>child2</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
</td>
2014-11-15 20:01:46 +00:00
<td class="description last"><p>-</p></td>
</tr>
2014-11-15 20:01:46 +00:00
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="PIXI.DisplayObjectContainer.html#swapChildren">PIXI.DisplayObjectContainer#swapChildren</a>
2014-11-15 20:01:46 +00:00
</li></dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-09 16:13:31 +00:00
<a href="src_pixi_display_DisplayObjectContainer.js.html">pixi/display/DisplayObjectContainer.js</a>, <a href="src_pixi_display_DisplayObjectContainer.js.html#sunlight-1-line-145">line 145</a>
2014-11-15 20:01:46 +00:00
</dt>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dl>
</dd>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
<dt>
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="toGlobal"><span class="type-signature"></span>toGlobal<span class="signature">(position)</span><span class="type-signature"> &rarr; {Point}</span></h4>
2014-11-15 20:01:46 +00:00
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Calculates the global position of the display object</p>
2014-11-15 20:01:46 +00:00
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
2014-11-15 20:01:46 +00:00
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>position</code></td>
<td class="type">
2015-03-23 23:46:30 +00:00
<span class="param-type">Point</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The world origin to calculate from</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2015-03-23 23:46:30 +00:00
<span class="param-type">Point</span>
2014-12-03 10:39:11 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>A point object representing the position of this object</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="PIXI.DisplayObject.html#toGlobal">PIXI.DisplayObject#toGlobal</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-575">line 575</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2015-03-23 23:46:30 +00:00
id="toLocal"><span class="type-signature"></span>toLocal<span class="signature">(position, <span class="optional">from</span>)</span><span class="type-signature"> &rarr; {Point}</span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Calculates the local position of the display object relative to another point</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
2014-12-03 10:39:11 +00:00
<th>Argument</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
2014-12-03 10:39:11 +00:00
<td class="name"><code>position</code></td>
<td class="type">
2015-03-23 23:46:30 +00:00
<span class="param-type">Point</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="attributes">
2014-12-03 10:39:11 +00:00
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The world origin to calculate from</p></td>
</tr>
<tr>
<td class="name"><code>from</code></td>
<td class="type">
<span class="param-type"><a href="PIXI.DisplayObject.html">PIXI.DisplayObject</a></span>
</td>
<td class="attributes">
&lt;optional><br>
</td>
<td class="description last"><p>The DisplayObject to calculate the global position from</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
2014-12-03 10:39:11 +00:00
<h5>Returns:</h5>
<div class="returns">
<div class="returns-type">
2015-03-23 23:46:30 +00:00
<span class="param-type">Point</span>
2014-12-03 10:39:11 +00:00
-
</div>
<div class="returns-desc param-desc">
<p>A point object representing the position of this object</p>
</div>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
2014-12-03 10:39:11 +00:00
<a href="PIXI.DisplayObject.html#toLocal">PIXI.DisplayObject#toLocal</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-589">line 589</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
2014-12-03 10:39:11 +00:00
id="update"><span class="type-signature">&lt;internal> </span>update<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>The core update - as called by World.</p>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-12-03 10:39:11 +00:00
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#update">Phaser.Group#update</a>
</li></dd>
2014-12-03 10:39:11 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-1630">line 1630</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
<h4 class="name "
id="updateCache"><span class="type-signature"></span>updateCache<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>Generates and updates the cached sprite for this object.</p>
</div>
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="PIXI.DisplayObject.html#updateCache">PIXI.DisplayObject#updateCache</a>
</li></dd>
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_pixi_display_DisplayObject.js.html">pixi/display/DisplayObject.js</a>, <a href="src_pixi_display_DisplayObject.js.html#sunlight-1-line-565">line 565</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="updateSpriteTransform"><span class="type-signature"></span>updateSpriteTransform<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
<p>Core update.</p>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2015-07-22 14:31:30 +00:00
<a href="src_physics_p2_BodyDebug.js.html">physics/p2/BodyDebug.js</a>, <a href="src_physics_p2_BodyDebug.js.html#sunlight-1-line-72">line 72</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="updateZ"><span class="type-signature">&lt;internal> </span>updateZ<span class="signature">()</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2015-07-22 14:31:30 +00:00
<p>Internal method that re-applies all of the children's Z values.</p>
2014-12-03 10:39:11 +00:00
<p>This must be called whenever children ordering is altered so that their <code>z</code> indices are correctly updated.</p>
</div>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#updateZ">Phaser.Group#updateZ</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="important tag-deprecated">Internal:</dt>
<dd class="tag-deprecated"><ul>
<li>This member is <em>internal (protected)</em> and may be modified or removed in the future.</li>
</ul></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-656">line 656</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
<dt>
2014-11-15 20:01:46 +00:00
<h4 class="name "
id="xy"><span class="type-signature"></span>xy<span class="signature">(index, x, y)</span><span class="type-signature"></span></h4>
</dt>
<dd>
2014-11-15 20:01:46 +00:00
<div class="description">
2014-12-03 10:39:11 +00:00
<p>Positions the child found at the given index within this group to the given x and y coordinates.</p>
</div>
<h5>Parameters:</h5>
<table class="params table table-striped">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>index</code></td>
<td class="type">
2014-12-03 10:39:11 +00:00
<span class="param-type">integer</span>
</td>
2014-12-03 10:39:11 +00:00
<td class="description last"><p>The index of the child in the group to set the position of.</p></td>
</tr>
<tr>
<td class="name"><code>x</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"><p>The new x position of the child.</p></td>
</tr>
<tr>
<td class="name"><code>y</code></td>
<td class="type">
<span class="param-type">number</span>
</td>
<td class="description last"><p>The new y position of the child.</p></td>
</tr>
</tbody>
</table>
2014-11-15 20:01:46 +00:00
<dl class="details">
<dt class="inherited-from">Inherited From:</dt>
<dd class="inherited-from"><ul class="dummy"><li>
<a href="Phaser.Group.html#xy">Phaser.Group#xy</a>
</li></dd>
2014-11-15 20:01:46 +00:00
<dt class="tag-source">Source -
2016-06-17 00:11:24 +00:00
<a href="src_core_Group.js.html">core/Group.js</a>, <a href="src_core_Group.js.html#sunlight-1-line-981">line 981</a>
2014-11-15 20:01:46 +00:00
</dt>
</dl>
2014-11-15 20:01:46 +00:00
</dd>
</dl>
</article>
</section>
</div>
<div class="clearfix"></div>
<footer>
<span class="copyright">
2016-04-22 14:15:28 +00:00
Phaser Copyright © 2012-2016 Photon Storm Ltd.
</span>
<br />
<span class="jsdoc-message">
2016-06-17 11:46:47 +00:00
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.3</a>
on Fri Jun 17 2016 12:45:36 GMT+0100 (BST) using the <a href="https://github.com/terryweiss/docstrap">DocStrap template</a>.
</span>
</footer>
</div>
<div class="span3">
<div id="toc"></div>
</div>
<br clear="both">
</div>
</div>
<script src="scripts/sunlight.js"></script>
<script src="scripts/sunlight.javascript.js"></script>
<script src="scripts/sunlight-plugin.doclinks.js"></script>
<script src="scripts/sunlight-plugin.linenumbers.js"></script>
<script src="scripts/sunlight-plugin.menu.js"></script>
<script src="scripts/jquery.min.js"></script>
<script src="scripts/jquery.scrollTo.js"></script>
<script src="scripts/jquery.localScroll.js"></script>
<script src="scripts/bootstrap-dropdown.js"></script>
<script src="scripts/toc.js"></script>
<script> Sunlight.highlightAll({lineNumbers:true, showMenu: true, enableDoclinks :true}); </script>
<script>
$( function () {
$( "#toc" ).toc( {
2014-04-10 22:13:43 +00:00
anchorName : function(i, heading, prefix) {
return $(heading).attr("id") || ( prefix + i );
},
selectors : "h1,h2,h3,h4",
showAndHide : false,
scrollTo : 60
} );
$( "#toc>ul" ).addClass( "nav nav-pills nav-stacked" );
$( "#main span[id^='toc']" ).addClass( "toc-shim" );
} );
</script>
</body>
</html>