You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Returns the Game Object at the given position in this Container.
374
416
*
375
417
* @method Phaser.GameObjects.Container#getAt
376
418
* @since 3.4.0
377
419
*
378
-
* @genericUse {T} - [$return]
379
-
*
380
-
* @param {integer} index - [description]
420
+
* @param {integer} index - The position to get the Game Object from.
381
421
*
382
-
* @return {Phaser.GameObjects.GameObject|null} The Game Object at the specified index, or `null` if none found.
422
+
* @return {?Phaser.GameObjects.GameObject} The Game Object at the specified index, or `null` if none found.
383
423
*/
384
424
getAt: function(index)
385
425
{
386
426
returnthis.list[index];
387
427
},
388
428
389
429
/**
390
-
* [description]
430
+
* Returns the index of the given Game Object in this Container.
391
431
*
392
432
* @method Phaser.GameObjects.Container#getIndex
393
433
* @since 3.4.0
394
434
*
395
-
* @genericUse {T} - [child]
396
-
*
397
435
* @param {Phaser.GameObjects.GameObject} child - The Game Object to search for in this Container.
398
436
*
399
437
* @return {integer} The index of the Game Object in this Container, or -1 if not found.
400
438
*/
401
439
getIndex: function(child)
402
440
{
403
-
// Return -1 if given child isn't a child of this display list
404
441
returnthis.list.indexOf(child);
405
442
},
406
443
@@ -411,8 +448,6 @@ var Container = new Class({
411
448
* @method Phaser.GameObjects.Container#sort
412
449
* @since 3.4.0
413
450
*
414
-
* @genericUse {T[]} - [children,$return]
415
-
*
416
451
* @param {string} property - The property to lexically sort by.
417
452
*
418
453
* @return {Phaser.GameObjects.Container} This Container instance.
@@ -436,8 +471,6 @@ var Container = new Class({
436
471
* @private
437
472
* @since 3.4.0
438
473
*
439
-
* @genericUse {T} - [childA,childB]
440
-
*
441
474
* @param {Phaser.GameObjects.GameObject} childA - The first child to sort.
442
475
* @param {Phaser.GameObjects.GameObject} childB - The second child to sort.
443
476
*
@@ -455,8 +488,6 @@ var Container = new Class({
455
488
* @method Phaser.GameObjects.Container#getByName
456
489
* @since 3.4.0
457
490
*
458
-
* @genericUse {T | null} - [$return]
459
-
*
460
491
* @param {string} name - The name to search for.
461
492
*
462
493
* @return {?Phaser.GameObjects.GameObject} The first child with a matching name, or `null` if none were found.
@@ -472,8 +503,6 @@ var Container = new Class({
472
503
* @method Phaser.GameObjects.Container#getRandom
473
504
* @since 3.4.0
474
505
*
475
-
* @genericUse {T | null} - [$return]
476
-
*
477
506
* @param {integer} [startIndex=0] - An optional start index.
478
507
* @param {integer} [length] - An optional length, the total number of elements (from the startIndex) to choose from.
479
508
*
@@ -528,7 +557,7 @@ var Container = new Class({
528
557
* @since 3.4.0
529
558
*
530
559
* @param {string} [property] - The property to test on each Game Object in the Container.
531
-
* @param {*} [value] - If property is set then the `property` must strictly equal this value to be included in the results.
560
+
* @param {any} [value] - If property is set then the `property` must strictly equal this value to be included in the results.
532
561
* @param {integer} [startIndex=0] - An optional start index to search from.
533
562
* @param {integer} [endIndex=Container.length] - An optional end index to search up to (but not included)
534
563
*
@@ -551,7 +580,7 @@ var Container = new Class({
551
580
* @since 3.4.0
552
581
*
553
582
* @param {string} property - [description]
554
-
* @param {*} value - [description]
583
+
* @param {any} value - [description]
555
584
* @param {integer} [startIndex=0] - An optional start index to search from.
556
585
* @param {integer} [endIndex=Container.length] - An optional end index to search up to (but not included)
557
586
*
@@ -569,8 +598,6 @@ var Container = new Class({
569
598
* @method Phaser.GameObjects.Container#swap
570
599
* @since 3.4.0
571
600
*
572
-
* @genericUse {T} - [child1,child2]
573
-
*
574
601
* @param {Phaser.GameObjects.GameObject} child1 - The first Game Object to swap.
575
602
* @param {Phaser.GameObjects.GameObject} child2 - The second Game Object to swap.
576
603
*
@@ -594,8 +621,6 @@ var Container = new Class({
594
621
* @method Phaser.GameObjects.Container#moveTo
595
622
* @since 3.4.0
596
623
*
597
-
* @genericUse {T} - [child,$return]
598
-
*
599
624
* @param {Phaser.GameObjects.GameObject} child - The Game Object to move.
600
625
* @param {integer} index - The new position of the Game Object in this Container.
601
626
*
@@ -618,8 +643,6 @@ var Container = new Class({
618
643
* @method Phaser.GameObjects.Container#remove
619
644
* @since 3.4.0
620
645
*
621
-
* @genericUse {T} - [child,$return]
622
-
*
623
646
* @param {Phaser.GameObjects.GameObject|Phaser.GameObjects.GameObject[]} child - The Game Object, or array of Game Objects, to be removed from the Container.
624
647
* @param {boolean} [destroyChild=false] - Optionally call `destroy` on each child successfully removed from this Container.
625
648
*
@@ -653,8 +676,6 @@ var Container = new Class({
653
676
* @method Phaser.GameObjects.Container#removeAt
654
677
* @since 3.4.0
655
678
*
656
-
* @genericUse {T} - [$return]
657
-
*
658
679
* @param {integer} index - The index of the Game Object to be removed.
659
680
* @param {boolean} [destroyChild=false] - Optionally call `destroy` on the Game Object if successfully removed from this Container.
0 commit comments