Skip to content

Commit 8e8b182

Browse files
committed
Group Types
1 parent 32b4e6b commit 8e8b182

13 files changed

Lines changed: 32 additions & 32 deletions

src/gameobjects/group/Group.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ var Sprite = require('../sprite/Sprite');
2727
* @constructor
2828
* @since 3.0.0
2929
* @param {Phaser.Scene} scene - The scene this group belongs to.
30-
* @param {(Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group.Types.GroupConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.
31-
* @param {Phaser.GameObjects.Group.Types.GroupConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig} [config] - Settings for this group. If `key` is set, Phaser.GameObjects.Group#createMultiple is also called with these settings.
30+
* @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.
31+
* @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - Settings for this group. If `key` is set, Phaser.GameObjects.Group#createMultiple is also called with these settings.
3232
*
3333
* @see Phaser.Physics.Arcade.Group
3434
* @see Phaser.Physics.Arcade.StaticGroup
@@ -107,7 +107,7 @@ var Group = new Class({
107107
* The class to create new group members from.
108108
*
109109
* @name Phaser.GameObjects.Group#classType
110-
* @type {Phaser.GameObjects.Group.Types.GroupClassTypeConstructor}
110+
* @type {Phaser.Types.GameObjects.Group.GroupClassTypeConstructor}
111111
* @since 3.0.0
112112
* @default Phaser.GameObjects.Sprite
113113
*/
@@ -169,7 +169,7 @@ var Group = new Class({
169169
* A function to be called when adding or creating group members.
170170
*
171171
* @name Phaser.GameObjects.Group#createCallback
172-
* @type {?Phaser.GameObjects.Group.Types.GroupCallback}
172+
* @type {?Phaser.Types.GameObjects.Group.GroupCallback}
173173
* @since 3.0.0
174174
*/
175175
this.createCallback = GetFastValue(config, 'createCallback', null);
@@ -178,7 +178,7 @@ var Group = new Class({
178178
* A function to be called when removing group members.
179179
*
180180
* @name Phaser.GameObjects.Group#removeCallback
181-
* @type {?Phaser.GameObjects.Group.Types.GroupCallback}
181+
* @type {?Phaser.Types.GameObjects.Group.GroupCallback}
182182
* @since 3.0.0
183183
*/
184184
this.removeCallback = GetFastValue(config, 'removeCallback', null);
@@ -187,7 +187,7 @@ var Group = new Class({
187187
* A function to be called when creating several group members at once.
188188
*
189189
* @name Phaser.GameObjects.Group#createMultipleCallback
190-
* @type {?Phaser.GameObjects.Group.Types.GroupMultipleCreateCallback}
190+
* @type {?Phaser.Types.GameObjects.Group.GroupMultipleCreateCallback}
191191
* @since 3.0.0
192192
*/
193193
this.createMultipleCallback = GetFastValue(config, 'createMultipleCallback', null);
@@ -257,7 +257,7 @@ var Group = new Class({
257257
* @method Phaser.GameObjects.Group#createMultiple
258258
* @since 3.0.0
259259
*
260-
* @param {Phaser.GameObjects.Group.Types.GroupCreateConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig[]} config - Creation settings. This can be a single configuration object or an array of such objects, which will be applied in turn.
260+
* @param {Phaser.Types.GameObjects.Group.GroupCreateConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig[]} config - Creation settings. This can be a single configuration object or an array of such objects, which will be applied in turn.
261261
*
262262
* @return {any[]} The newly created Game Objects.
263263
*/
@@ -294,7 +294,7 @@ var Group = new Class({
294294
* @method Phaser.GameObjects.Group#createFromConfig
295295
* @since 3.0.0
296296
*
297-
* @param {Phaser.GameObjects.Group.Types.GroupCreateConfig} options - Creation settings.
297+
* @param {Phaser.Types.GameObjects.Group.GroupCreateConfig} options - Creation settings.
298298
*
299299
* @return {any[]} The newly created Game Objects.
300300
*/

src/gameobjects/group/GroupCreator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Group = require('./Group');
1515
* @method Phaser.GameObjects.GameObjectCreator#group
1616
* @since 3.0.0
1717
*
18-
* @param {Phaser.GameObjects.Group.Types.GroupConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig} config - The configuration object this Game Object will use to create itself.
18+
* @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} config - The configuration object this Game Object will use to create itself.
1919
*
2020
* @return {Phaser.GameObjects.Group} The Game Object that was created.
2121
*/

src/gameobjects/group/GroupFactory.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ var GameObjectFactory = require('../GameObjectFactory');
1515
* @method Phaser.GameObjects.GameObjectFactory#group
1616
* @since 3.0.0
1717
*
18-
* @param {(Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group.Types.GroupConfig|Phaser.GameObjects.Group.Types.GroupConfig[])} [children] - Game Objects to add to this Group; or the `config` argument.
19-
* @param {Phaser.GameObjects.Group.Types.GroupConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig} [config] - A Group Configuration object.
18+
* @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupConfig[])} [children] - Game Objects to add to this Group; or the `config` argument.
19+
* @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - A Group Configuration object.
2020
*
2121
* @return {Phaser.GameObjects.Group} The Game Object that was created.
2222
*/

src/gameobjects/group/typedefs/GroupCallback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @callback Phaser.GameObjects.Group.Types.GroupCallback
2+
* @callback Phaser.Types.GameObjects.Group.GroupCallback
33
* @since 3.0.0
44
*
55
* @param {Phaser.GameObjects.GameObject} item - A group member

src/gameobjects/group/typedefs/GroupClassTypeConstructor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* A constructor function (class) that can be assigned to `classType`.
33
*
4-
* @callback Phaser.GameObjects.Group.Types.GroupClassTypeConstructor
4+
* @callback Phaser.Types.GameObjects.Group.GroupClassTypeConstructor
55
* @since 3.0.0
66
*
77
* @param {Phaser.Scene} scene - The Scene to which this Game Object belongs. A Game Object can only belong to one Scene at a time.
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
/**
2-
* @typedef {object} Phaser.GameObjects.Group.Types.GroupConfig
2+
* @typedef {object} Phaser.Types.GameObjects.Group.GroupConfig
33
* @since 3.0.0
44
*
5-
* @property {?Phaser.GameObjects.Group.Types.GroupClassTypeConstructor} [classType=Sprite] - Sets {@link Phaser.GameObjects.Group#classType}.
5+
* @property {?Phaser.Types.GameObjects.Group.GroupClassTypeConstructor} [classType=Sprite] - Sets {@link Phaser.GameObjects.Group#classType}.
66
* @property {?boolean} [active=true] - Sets {@link Phaser.GameObjects.Group#active}.
77
* @property {?number} [maxSize=-1] - Sets {@link Phaser.GameObjects.Group#maxSize}.
88
* @property {?string} [defaultKey=null] - Sets {@link Phaser.GameObjects.Group#defaultKey}.
99
* @property {?(string|integer)} [defaultFrame=null] - Sets {@link Phaser.GameObjects.Group#defaultFrame}.
1010
* @property {?boolean} [runChildUpdate=false] - Sets {@link Phaser.GameObjects.Group#runChildUpdate}.
11-
* @property {?Phaser.GameObjects.Group.Types.GroupCallback} [createCallback=null] - Sets {@link Phaser.GameObjects.Group#createCallback}.
12-
* @property {?Phaser.GameObjects.Group.Types.GroupCallback} [removeCallback=null] - Sets {@link Phaser.GameObjects.Group#removeCallback}.
13-
* @property {?Phaser.GameObjects.Group.Types.GroupMultipleCreateCallback} [createMultipleCallback=null] - Sets {@link Phaser.GameObjects.Group#createMultipleCallback}.
11+
* @property {?Phaser.Types.GameObjects.Group.GroupCallback} [createCallback=null] - Sets {@link Phaser.GameObjects.Group#createCallback}.
12+
* @property {?Phaser.Types.GameObjects.Group.GroupCallback} [removeCallback=null] - Sets {@link Phaser.GameObjects.Group#removeCallback}.
13+
* @property {?Phaser.Types.GameObjects.Group.GroupMultipleCreateCallback} [createMultipleCallback=null] - Sets {@link Phaser.GameObjects.Group#createMultipleCallback}.
1414
*/

src/gameobjects/group/typedefs/GroupCreateConfig.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99
*
1010
* `key` is required. {@link Phaser.GameObjects.Group#defaultKey} is not used.
1111
*
12-
* @typedef {object} Phaser.GameObjects.Group.Types.GroupCreateConfig
12+
* @typedef {object} Phaser.Types.GameObjects.Group.GroupCreateConfig
1313
* @since 3.0.0
1414
*
15-
* @property {?Phaser.GameObjects.Group.Types.GroupClassTypeConstructor} [classType] - The class of each new Game Object.
15+
* @property {?Phaser.Types.GameObjects.Group.GroupClassTypeConstructor} [classType] - The class of each new Game Object.
1616
* @property {string} [key] - The texture key of each new Game Object.
1717
* @property {?(string|integer)} [frame=null] - The texture frame of each new Game Object.
1818
* @property {?boolean} [visible=true] - The visible state of each new Game Object.

src/gameobjects/group/typedefs/GroupMultipleCreateCallback.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @callback Phaser.GameObjects.Group.Types.GroupMultipleCreateCallback
2+
* @callback Phaser.Types.GameObjects.Group.GroupMultipleCreateCallback
33
* @since 3.0.0
44
*
55
* @param {Phaser.GameObjects.GameObject[]} items - The newly created group members

src/gameobjects/group/typedefs/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
*/
66

77
/**
8-
* @namespace Phaser.GameObjects.Group.Types
8+
* @namespace Phaser.Types.GameObjects.Group
99
*/

src/physics/arcade/Factory.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,8 @@ var Factory = new Class({
220220
* @method Phaser.Physics.Arcade.Factory#staticGroup
221221
* @since 3.0.0
222222
*
223-
* @param {(Phaser.GameObjects.GameObject[]|Phaser.GameObjects.Group.Types.GroupConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.
224-
* @param {Phaser.GameObjects.Group.Types.GroupConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig} [config] - Settings for this group.
223+
* @param {(Phaser.GameObjects.GameObject[]|Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.
224+
* @param {Phaser.Types.GameObjects.Group.GroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - Settings for this group.
225225
*
226226
* @return {Phaser.Physics.Arcade.StaticGroup} The Static Group object that was created.
227227
*/
@@ -237,8 +237,8 @@ var Factory = new Class({
237237
* @method Phaser.Physics.Arcade.Factory#group
238238
* @since 3.0.0
239239
*
240-
* @param {(Phaser.GameObjects.GameObject[]|Phaser.Physics.Arcade.Types.PhysicsGroupConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.
241-
* @param {Phaser.Physics.Arcade.Types.PhysicsGroupConfig|Phaser.GameObjects.Group.Types.GroupCreateConfig} [config] - Settings for this group.
240+
* @param {(Phaser.GameObjects.GameObject[]|Phaser.Physics.Arcade.Types.PhysicsGroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig)} [children] - Game Objects to add to this group; or the `config` argument.
241+
* @param {Phaser.Physics.Arcade.Types.PhysicsGroupConfig|Phaser.Types.GameObjects.Group.GroupCreateConfig} [config] - Settings for this group.
242242
*
243243
* @return {Phaser.Physics.Arcade.Group} The Group object that was created.
244244
*/

0 commit comments

Comments
 (0)