@@ -9,14 +9,18 @@ var PluginCache = require('../plugins/PluginCache');
99
1010/**
1111 * @classdesc
12- * [description]
12+ * The Update List plugin.
13+ *
14+ * Update Lists belong to a Scene and maintain the list Game Objects to be updated every frame.
15+ *
16+ * Some or all of these Game Objects may also be part of the Scene's [Display List]{@link Phaser.GameObjects.DisplayList}, for Rendering.
1317 *
1418 * @class UpdateList
1519 * @memberOf Phaser.GameObjects
1620 * @constructor
1721 * @since 3.0.0
1822 *
19- * @param {Phaser.Scene } scene - [description]
23+ * @param {Phaser.Scene } scene - The Scene that the Update List belongs to.
2024 */
2125var UpdateList = new Class ( {
2226
@@ -25,7 +29,7 @@ var UpdateList = new Class({
2529 function UpdateList ( scene )
2630 {
2731 /**
28- * [description]
32+ * The Scene that the Update List belongs to.
2933 *
3034 * @name Phaser.GameObjects.UpdateList#scene
3135 * @type {Phaser.Scene }
@@ -34,7 +38,7 @@ var UpdateList = new Class({
3438 this . scene = scene ;
3539
3640 /**
37- * [description]
41+ * The Scene's Systems.
3842 *
3943 * @name Phaser.GameObjects.UpdateList#systems
4044 * @type {Phaser.Scenes.Systems }
@@ -43,7 +47,7 @@ var UpdateList = new Class({
4347 this . systems = scene . sys ;
4448
4549 /**
46- * [description]
50+ * The list of Game Objects.
4751 *
4852 * @name Phaser.GameObjects.UpdateList#_list
4953 * @type {array }
@@ -54,7 +58,7 @@ var UpdateList = new Class({
5458 this . _list = [ ] ;
5559
5660 /**
57- * [description]
61+ * Game Objects that are pending insertion into the list.
5862 *
5963 * @name Phaser.GameObjects.UpdateList#_pendingInsertion
6064 * @type {array }
@@ -65,7 +69,7 @@ var UpdateList = new Class({
6569 this . _pendingInsertion = [ ] ;
6670
6771 /**
68- * [description]
72+ * Game Objects that are pending removal from the list.
6973 *
7074 * @name Phaser.GameObjects.UpdateList#_pendingRemoval
7175 * @type {array }
@@ -111,14 +115,14 @@ var UpdateList = new Class({
111115 } ,
112116
113117 /**
114- * [description]
118+ * Add a Game Object to the Update List.
115119 *
116120 * @method Phaser.GameObjects.UpdateList#add
117121 * @since 3.0.0
118122 *
119- * @param {Phaser.GameObjects.GameObject } child - [description]
123+ * @param {Phaser.GameObjects.GameObject } child - The Game Object to add.
120124 *
121- * @return {Phaser.GameObjects.GameObject } [description]
125+ * @return {Phaser.GameObjects.GameObject } The added Game Object.
122126 */
123127 add : function ( child )
124128 {
@@ -133,13 +137,12 @@ var UpdateList = new Class({
133137 } ,
134138
135139 /**
136- * [description]
140+ * The pre-update step.
141+ *
142+ * Handles Game Objects that are pending insertion to and removal from the list.
137143 *
138144 * @method Phaser.GameObjects.UpdateList#preUpdate
139145 * @since 3.0.0
140- *
141- * @param {number } time - [description]
142- * @param {number } delta - [description]
143146 */
144147 preUpdate : function ( )
145148 {
@@ -177,13 +180,15 @@ var UpdateList = new Class({
177180 } ,
178181
179182 /**
180- * [description]
183+ * The update step.
184+ *
185+ * Pre-updates every active Game Object in the list.
181186 *
182187 * @method Phaser.GameObjects.UpdateList#update
183188 * @since 3.0.0
184189 *
185- * @param {number } time - [description]
186- * @param {number } delta - [description]
190+ * @param {number } time - The current timestamp.
191+ * @param {number } delta - The delta time elapsed since the last frame.
187192 */
188193 update : function ( time , delta )
189194 {
@@ -199,14 +204,14 @@ var UpdateList = new Class({
199204 } ,
200205
201206 /**
202- * [description]
207+ * Remove a Game Object from the list.
203208 *
204209 * @method Phaser.GameObjects.UpdateList#remove
205210 * @since 3.0.0
206211 *
207- * @param {Phaser.GameObjects.GameObject } child - [description]
212+ * @param {Phaser.GameObjects.GameObject } child - The Game Object to remove from the list.
208213 *
209- * @return {Phaser.GameObjects.GameObject } [description]
214+ * @return {Phaser.GameObjects.GameObject } The removed Game Object.
210215 */
211216 remove : function ( child )
212217 {
@@ -216,12 +221,12 @@ var UpdateList = new Class({
216221 {
217222 this . _list . splice ( index , 1 ) ;
218223 }
219-
224+
220225 return child ;
221226 } ,
222227
223228 /**
224- * [description]
229+ * Remove all Game Objects from the list.
225230 *
226231 * @method Phaser.GameObjects.UpdateList#removeAll
227232 * @since 3.0.0
0 commit comments