Skip to content

Commit 0fa334f

Browse files
committed
Change Group.* return types from GameObject to any
1 parent ff38588 commit 0fa334f

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

src/gameobjects/group/Group.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ var Group = new Class({
260260
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of the new Game Object.
261261
* @param {boolean} [active=true] - The {@link Phaser.GameObjects.GameObject#active} state of the new Game Object.
262262
*
263-
* @return {Phaser.GameObjects.GameObject} The new Game Object.
263+
* @return {any} The new Game Object (usually a Sprite, etc.).
264264
*/
265265
create: function (x, y, key, frame, visible, active)
266266
{
@@ -306,7 +306,7 @@ var Group = new Class({
306306
*
307307
* @param {GroupCreateConfig|GroupCreateConfig[]} config - Creation settings. This can be a single configuration object or an array of such objects, which will be applied in turn.
308308
*
309-
* @return {Phaser.GameObjects.GameObject[]} The newly created Game Objects.
309+
* @return {any[]} The newly created Game Objects.
310310
*/
311311
createMultiple: function (config)
312312
{
@@ -345,7 +345,7 @@ var Group = new Class({
345345
*
346346
* @param {GroupCreateConfig} options - Creation settings.
347347
*
348-
* @return {Phaser.GameObjects.GameObject[]} The newly created Game Objects.
348+
* @return {any[]} The newly created Game Objects.
349349
*/
350350
createFromConfig: function (options)
351351
{
@@ -719,7 +719,7 @@ var Group = new Class({
719719
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
720720
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
721721
*
722-
* @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
722+
* @return {?any} The first matching group member, or a newly created member, or null.
723723
*/
724724
getFirst: function (state, createIfNull, x, y, key, frame, visible)
725725
{
@@ -745,7 +745,7 @@ var Group = new Class({
745745
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
746746
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
747747
*
748-
* @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
748+
* @return {?any} The first matching group member, or a newly created member, or null.
749749
*/
750750
getFirstNth: function (nth, state, createIfNull, x, y, key, frame, visible)
751751
{
@@ -770,7 +770,7 @@ var Group = new Class({
770770
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
771771
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
772772
*
773-
* @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
773+
* @return {?any} The first matching group member, or a newly created member, or null.
774774
*/
775775
getLast: function (state, createIfNull, x, y, key, frame, visible)
776776
{
@@ -796,7 +796,7 @@ var Group = new Class({
796796
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
797797
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
798798
*
799-
* @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
799+
* @return {?any} The first matching group member, or a newly created member, or null.
800800
*/
801801
getLastNth: function (nth, state, createIfNull, x, y, key, frame, visible)
802802
{
@@ -824,7 +824,7 @@ var Group = new Class({
824824
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
825825
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
826826
*
827-
* @return {?Phaser.GameObjects.GameObject} The first matching group member, or a newly created member, or null.
827+
* @return {?any} The first matching group member, or a newly created member, or null.
828828
*/
829829
getHandler: function (forwards, nth, state, createIfNull, x, y, key, frame, visible)
830830
{
@@ -923,7 +923,7 @@ var Group = new Class({
923923
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
924924
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
925925
*
926-
* @return {?Phaser.GameObjects.GameObject} The first inactive group member, or a newly created member, or null.
926+
* @return {?any} The first inactive group member, or a newly created member, or null.
927927
*/
928928
get: function (x, y, key, frame, visible)
929929
{
@@ -947,7 +947,7 @@ var Group = new Class({
947947
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
948948
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
949949
*
950-
* @return {Phaser.GameObjects.GameObject} The first active group member, or a newly created member, or null.
950+
* @return {any} The first active group member, or a newly created member, or null.
951951
*/
952952
getFirstAlive: function (createIfNull, x, y, key, frame, visible)
953953
{
@@ -972,7 +972,7 @@ var Group = new Class({
972972
* @param {(string|integer)} [frame=defaultFrame] - A texture frame assigned to a new Game Object (if one is created).
973973
* @param {boolean} [visible=true] - The {@link Phaser.GameObjects.Components.Visible#visible} state of a new Game Object (if one is created).
974974
*
975-
* @return {Phaser.GameObjects.GameObject} The first inactive group member, or a newly created member, or null.
975+
* @return {any} The first inactive group member, or a newly created member, or null.
976976
*/
977977
getFirstDead: function (createIfNull, x, y, key, frame, visible)
978978
{

0 commit comments

Comments
 (0)