Skip to content

Commit 1f44366

Browse files
committed
Merge branch 'master' of https://github.com/photonstorm/phaser
2 parents 933e193 + 25cbb32 commit 1f44366

14 files changed

Lines changed: 99 additions & 79 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Thumbs.db
33
.DS_Store
44
.idea
5+
.vscode
56
*.suo
67
*.sublime-project
78
*.sublime-workspace

src/animations/AnimationManager.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ var AnimationManager = new Class({
8080
* [description]
8181
*
8282
* @name Phaser.Animations.AnimationManager#anims
83-
* @type {Phaser.Structs.Map}
83+
* @type {Phaser.Structs.Map<string, Phaser.Animations.Animation>}
8484
* @protected
8585
* @since 3.0.0
8686
*/

src/cache/BaseCache.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ var BaseCache = new Class({
3333
* You can query the Map directly or use the BaseCache methods.
3434
*
3535
* @name Phaser.Cache.BaseCache#entries
36-
* @type {Phaser.Structs.Map}
36+
* @type {Phaser.Structs.Map.<String, *>}
3737
* @since 3.0.0
3838
*/
3939
this.entries = new CustomMap();
@@ -54,9 +54,9 @@ var BaseCache = new Class({
5454
* This event is fired by the Cache each time a new object is added to it.
5555
*
5656
* @event Phaser.Cache.BaseCache#addEvent
57-
* @param {Phaser.Cache.BaseCache} The BaseCache to which the object was added.
58-
* @param {string} The key of the object added to the cache.
59-
* @param {*} A reference to the object added to the cache.
57+
* @param {Phaser.Cache.BaseCache} base - The BaseCache to which the object was added.
58+
* @param {string} key - The key of the object added to the cache.
59+
* @param {*} object - A reference to the object added to the cache.
6060
*/
6161

6262
/**

src/cache/CacheManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var Class = require('../utils/Class');
1010
/**
1111
* @classdesc
1212
* The Cache Manager is the global cache owned and maintained by the Game instance.
13-
*
13+
*
1414
* Various systems, such as the file Loader, rely on this cache in order to store the files
1515
* it has loaded. The manager itself doesn't store any files, but instead owns multiple BaseCache
1616
* instances, one per type of file. You can also add your own custom caches.
@@ -145,7 +145,7 @@ var CacheManager = new Class({
145145
* Add to this via the `addCustom` method.
146146
*
147147
* @name Phaser.Cache.CacheManager#custom
148-
* @type {object.<Phaser.Cache.BaseCache>}
148+
* @type {Object.<Phaser.Cache.BaseCache>}
149149
* @protected
150150
* @since 3.0.0
151151
*/

src/gameobjects/blitter/Blitter.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ var Blitter = new Class({
9090
* [description]
9191
*
9292
* @name Phaser.GameObjects.Blitter#children
93-
* @type {Phaser.Structs.List}
93+
* @type {Phaser.Structs.List.<Phaser.GameObjects.Blitter.Blitter>}
9494
* @since 3.0.0
9595
*/
9696
this.children = new List();
@@ -153,7 +153,7 @@ var Blitter = new Class({
153153
*
154154
* @param {BlitterFromCallback} callback - The callback to invoke after creating a bob. It will be sent two arguments: The Bob and the index of the Bob.
155155
* @param {integer} quantity - The quantity of Bob objects to create.
156-
* @param {string} [frame] - The Frame the Bobs will use. It must be part of the Blitter Texture.
156+
* @param {(string|integer|Phaser.Textures.Frame|string[]|integer[]|Phaser.Textures.Frame[])} [frame] - The Frame the Bobs will use. It must be part of the Blitter Texture.
157157
* @param {boolean} [visible=true] - [description]
158158
*
159159
* @return {Phaser.GameObjects.Blitter.Bob[]} An array of Bob objects that were created.
@@ -179,7 +179,7 @@ var Blitter = new Class({
179179
* @since 3.0.0
180180
*
181181
* @param {integer} quantity - The quantity of Bob objects to create.
182-
* @param {string} [frame] - The Frame the Bobs will use. It must be part of the Blitter Texture.
182+
* @param {(string|integer|Phaser.Textures.Frame|string[]|integer[]|Phaser.Textures.Frame[])} [frame] - The Frame the Bobs will use. It must be part of the Blitter Texture.
183183
* @param {boolean} [visible=true] - [description]
184184
*
185185
* @return {Phaser.GameObjects.Blitter.Bob[]} An array of Bob objects that were created.

src/gameobjects/group/Group.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ var Sprite = require('../sprite/Sprite');
8686
* @since 3.0.0
8787
*
8888
* @param {Phaser.Scene} scene - [description]
89-
* @param {array} children - [description]
89+
* @param {Phaser.GameObjects.GameObject[]} children - [description]
9090
* @param {GroupConfig} config - [description]
9191
*/
9292
var Group = new Class({
@@ -114,7 +114,7 @@ var Group = new Class({
114114
* [description]
115115
*
116116
* @name Phaser.GameObjects.Group#children
117-
* @type {Phaser.Structs.Set}
117+
* @type {Phaser.Structs.Set.<Phaser.GameObjects.GameObject>}
118118
* @since 3.0.0
119119
*/
120120
this.children = new Set(children);

src/gameobjects/particles/ParticleEmitterManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ var ParticleEmitterManager = new Class({
114114
* A list of Emitters being managed by this Emitter Manager.
115115
*
116116
* @name Phaser.GameObjects.Particles.ParticleEmitterManager#emitters
117-
* @type {Phaser.Structs.List}
117+
* @type {Phaser.Structs.List.<Phaser.GameObjects.Particles.ParticleEmitter>}
118118
* @since 3.0.0
119119
*/
120120
this.emitters = new List(this);
@@ -123,7 +123,7 @@ var ParticleEmitterManager = new Class({
123123
* A list of Gravity Wells being managed by this Emitter Manager.
124124
*
125125
* @name Phaser.GameObjects.Particles.ParticleEmitterManager#wells
126-
* @type {Phaser.Structs.List}
126+
* @type {Phaser.Structs.List.<Phaser.GameObjects.Particles.GravityWell>}
127127
* @since 3.0.0
128128
*/
129129
this.wells = new List(this);

src/loader/LoaderPlugin.js

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,14 @@ var ParseXMLBitmapFont = require('../gameobjects/bitmaptext/ParseXMLBitmapFont')
1414
var PluginManager = require('../boot/PluginManager');
1515
var XHRSettings = require('./XHRSettings');
1616

17+
/**
18+
* @typedef {object} LinkFileObject
19+
*
20+
* @property {string} type - [description]
21+
* @property {Phaser.Loader.File} fileA - [description]
22+
* @property {Phaser.Loader.File} fileB - [description]
23+
*/
24+
1725
/**
1826
* @typedef {object} LoaderFileObject
1927
*
@@ -188,7 +196,7 @@ var LoaderPlugin = new Class({
188196
* [description]
189197
*
190198
* @name Phaser.Loader.LoaderPlugin#list
191-
* @type {Phaser.Structs.Set}
199+
* @type {Phaser.Structs.Set.<Phaser.Loader.File>}
192200
* @since 3.0.0
193201
*/
194202
this.list = new CustomSet();
@@ -197,7 +205,7 @@ var LoaderPlugin = new Class({
197205
* [description]
198206
*
199207
* @name Phaser.Loader.LoaderPlugin#inflight
200-
* @type {Phaser.Structs.Set}
208+
* @type {Phaser.Structs.Set.<Phaser.Loader.File>}
201209
* @since 3.0.0
202210
*/
203211
this.inflight = new CustomSet();
@@ -206,7 +214,7 @@ var LoaderPlugin = new Class({
206214
* [description]
207215
*
208216
* @name Phaser.Loader.LoaderPlugin#failed
209-
* @type {Phaser.Structs.Set}
217+
* @type {Phaser.Structs.Set.<Phaser.Loader.File>}
210218
* @since 3.0.0
211219
*/
212220
this.failed = new CustomSet();
@@ -215,7 +223,7 @@ var LoaderPlugin = new Class({
215223
* [description]
216224
*
217225
* @name Phaser.Loader.LoaderPlugin#queue
218-
* @type {Phaser.Structs.Set}
226+
* @type {Phaser.Structs.Set.<Phaser.Loader.File>}
219227
* @since 3.0.0
220228
*/
221229
this.queue = new CustomSet();
@@ -224,7 +232,7 @@ var LoaderPlugin = new Class({
224232
* [description]
225233
*
226234
* @name Phaser.Loader.LoaderPlugin#storage
227-
* @type {Phaser.Structs.Set}
235+
* @type {Phaser.Structs.Set.<(Phaser.Loader.File|LinkFileObject)>}
228236
* @since 3.0.0
229237
*/
230238
this.storage = new CustomSet();

src/physics/arcade/World.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ var World = new Class({
121121
* Dynamic Bodies
122122
*
123123
* @name Phaser.Physics.Arcade.World#bodies
124-
* @type {Phaser.Structs.Set}
124+
* @type {Phaser.Structs.Set.<Phaser.Physics.Arcade.Body>}
125125
* @since 3.0.0
126126
*/
127127
this.bodies = new Set();
@@ -130,7 +130,7 @@ var World = new Class({
130130
* Static Bodies
131131
*
132132
* @name Phaser.Physics.Arcade.World#staticBodies
133-
* @type {Phaser.Structs.Set}
133+
* @type {Phaser.Structs.Set.<Phaser.Physics.Arcade.StaticBody>}
134134
* @since 3.0.0
135135
*/
136136
this.staticBodies = new Set();
@@ -139,7 +139,7 @@ var World = new Class({
139139
* Static Bodies
140140
*
141141
* @name Phaser.Physics.Arcade.World#pendingDestroy
142-
* @type {Phaser.Structs.Set}
142+
* @type {Phaser.Structs.Set.<(Phaser.Physics.Arcade.Body|Phaser.Physics.Arcade.StaticBody)>}
143143
* @since 3.1.0
144144
*/
145145
this.pendingDestroy = new Set();
@@ -148,7 +148,7 @@ var World = new Class({
148148
* [description]
149149
*
150150
* @name Phaser.Physics.Arcade.World#colliders
151-
* @type {Phaser.Structs.ProcessQueue}
151+
* @type {Phaser.Structs.ProcessQueue.<Phaser.Physics.Arcade.Collider>}
152152
* @since 3.0.0
153153
*/
154154
this.colliders = new ProcessQueue();

src/physics/impact/World.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ var World = new Class({
108108
* [description]
109109
*
110110
* @name Phaser.Physics.Impact.World#bodies
111-
* @type {Phaser.Structs.Set}
111+
* @type {Phaser.Structs.Set.<Phaser.Physics.Impact.Body>}
112112
* @since 3.0.0
113113
*/
114114
this.bodies = new Set();

0 commit comments

Comments
 (0)