@@ -16,8 +16,8 @@ module Phaser {
1616 * World constructor
1717 * Create a new <code>World</code> with specific width and height.
1818 *
19- * @param width Width of the world bound.
20- * @param height Height of the world bound.
19+ * @param width {number} Width of the world bound.
20+ * @param height {number} Height of the world bound.
2121 */
2222 constructor ( game : Game , width : number , height : number ) {
2323
@@ -100,9 +100,9 @@ module Phaser {
100100 * Update size of this world with specific width and height.
101101 * You can choose update camera bounds automatically or not.
102102 *
103- * @param width New width of the world.
104- * @param height New height of the world.
105- * @param updateCameraBounds Optinal, update camera bounds automatically or not. Default to true.
103+ * @param width {number} New width of the world.
104+ * @param height {number} New height of the world.
105+ * @param updateCameraBounds {boolean} Optinal, update camera bounds automatically or not. Default to true.
106106 */
107107 public setSize ( width : number , height : number , updateCameraBounds : bool = true ) {
108108
@@ -153,11 +153,11 @@ module Phaser {
153153 /**
154154 * Create a new camera with specific position and size.
155155 *
156- * @param x X position of the new camera.
157- * @param y Y position of the new camera.
158- * @param width Width of the new camera.
159- * @param height Height of the new camera.
160- * @returns {Camera= } The newly created camera object.
156+ * @param x {number} X position of the new camera.
157+ * @param y {number} Y position of the new camera.
158+ * @param width {number} Width of the new camera.
159+ * @param height {number} Height of the new camera.
160+ * @returns {Camera } The newly created camera object.
161161 */
162162 public createCamera ( x : number , y : number , width : number , height : number ) : Camera {
163163 return this . cameras . addCamera ( x , y , width , height ) ;
@@ -166,8 +166,8 @@ module Phaser {
166166 /**
167167 * Remove a new camera with its id.
168168 *
169- * @param id ID of the camera you want to remove.
170- * @returns {boolean } True if successfully removed the camera, otherwise return false.
169+ * @param id {number} ID of the camera you want to remove.
170+ * @returns {boolean } True if successfully removed the camera, otherwise return false.
171171 */
172172 public removeCamera ( id : number ) : bool {
173173 return this . cameras . removeCamera ( id ) ;
@@ -187,10 +187,10 @@ module Phaser {
187187 /**
188188 * Create a new Sprite with specific position and sprite sheet key.
189189 *
190- * @param x X position of the new sprite.
191- * @param y Y position of the new sprite.
192- * @param key Optinal, key for the sprite sheet you want it to use.
193- * @returns {Sprite= } The newly created sprite object.
190+ * @param x {number} X position of the new sprite.
191+ * @param y {number} Y position of the new sprite.
192+ * @param key {string} Optinal, key for the sprite sheet you want it to use.
193+ * @returns {Sprite } The newly created sprite object.
194194 */
195195 public createSprite ( x : number , y : number , key ?: string = '' ) : Sprite {
196196 return < Sprite > this . group . add ( new Sprite ( this . _game , x , y , key ) ) ;
@@ -199,9 +199,9 @@ module Phaser {
199199 /**
200200 * Create a new GeomSprite with specific position.
201201 *
202- * @param x X position of the new geom sprite.
203- * @param y Y position of the new geom sprite.
204- * @returns {GeomSprite= } The newly created geom sprite object.
202+ * @param x {number} X position of the new geom sprite.
203+ * @param y {number} Y position of the new geom sprite.
204+ * @returns {GeomSprite } The newly created geom sprite object.
205205 */
206206 public createGeomSprite ( x : number , y : number ) : GeomSprite {
207207 return < GeomSprite > this . group . add ( new GeomSprite ( this . _game , x , y ) ) ;
@@ -210,9 +210,9 @@ module Phaser {
210210 /**
211211 * Create a new DynamicTexture with specific size.
212212 *
213- * @param width Width of the texture.
214- * @param height Height of the texture.
215- * @returns {DynamicTexture= } The newly created dynamic texture object.
213+ * @param width {number} Width of the texture.
214+ * @param height {number} Height of the texture.
215+ * @returns {DynamicTexture } The newly created dynamic texture object.
216216 */
217217 public createDynamicTexture ( width : number , height : number ) : DynamicTexture {
218218 return new DynamicTexture ( this . _game , width , height ) ;
@@ -221,8 +221,8 @@ module Phaser {
221221 /**
222222 * Create a new object container.
223223 *
224- * @param MaxSize Optinal, capacity of this group.
225- * @returns {Group= } The newly created group.
224+ * @param MaxSize {number} Optinal, capacity of this group.
225+ * @returns {Group } The newly created group.
226226 */
227227 public createGroup ( MaxSize ?: number = 0 ) : Group {
228228 return < Group > this . group . add ( new Group ( this . _game , MaxSize ) ) ;
@@ -231,12 +231,12 @@ module Phaser {
231231 /**
232232 * Create a new ScrollZone object with image key, position and size.
233233 *
234- * @param key Key to a image you wish this object to use.
235- * @param x X position of this object.
236- * @param y Y position of this object.
237- * @param width Width of this object.
238- * @param height Heigth of this object.
239- * @returns {ScrollZone= } The newly created scroll zone object.
234+ * @param key {number} Key to a image you wish this object to use.
235+ * @param x {number} X position of this object.
236+ * @param y {number} Y position of this object.
237+ * @param width {number} Width of this object.
238+ * @param height {number} Heigth of this object.
239+ * @returns {ScrollZone } The newly created scroll zone object.
240240 */
241241 public createScrollZone ( key : string , x ?: number = 0 , y ?: number = 0 , width ?: number = 0 , height ?: number = 0 ) : ScrollZone {
242242 return < ScrollZone > this . group . add ( new ScrollZone ( this . _game , key , x , y , width , height ) ) ;
@@ -245,13 +245,13 @@ module Phaser {
245245 /**
246246 * Create a new Tilemap.
247247 *
248- * @param key Key for tileset image.
249- * @param mapData Data of this tilemap.
250- * @param format Format of map data. (Tilemap.FORMAT_CSV or Tilemap.FORMAT_TILED_JSON)
251- * @param resizeWorld Optinal, resize the world to make same as tilemap?
252- * @param tileWidth Optinal, width of each tile.
253- * @param tileHeight Optinal, height of each tile.
254- * @return {Tilemap= } The newly created tilemap object.
248+ * @param key {string} Key for tileset image.
249+ * @param mapData {string} Data of this tilemap.
250+ * @param format {number} Format of map data. (Tilemap.FORMAT_CSV or Tilemap.FORMAT_TILED_JSON)
251+ * @param resizeWorld {boolean} Optinal, resize the world to make same as tilemap?
252+ * @param tileWidth {number} Optinal, width of each tile.
253+ * @param tileHeight {number} Optinal, height of each tile.
254+ * @return {Tilemap } The newly created tilemap object.
255255 */
256256 public createTilemap ( key : string , mapData : string , format : number , resizeWorld : bool = true , tileWidth ?: number = 0 , tileHeight ?: number = 0 ) : Tilemap {
257257 return < Tilemap > this . group . add ( new Tilemap ( this . _game , key , mapData , format , resizeWorld , tileWidth , tileHeight ) ) ;
@@ -260,7 +260,7 @@ module Phaser {
260260 /**
261261 * Create a new Particle.
262262 *
263- * @return {Particle= } The newly created particle object.
263+ * @return {Particle } The newly created particle object.
264264 */
265265 public createParticle ( ) : Particle {
266266 return new Particle ( this . _game ) ;
@@ -269,10 +269,10 @@ module Phaser {
269269 /**
270270 * Create a new Emitter.
271271 *
272- * @param x Optinal, x position of the emitter.
273- * @param y Optinal, y position of the emitter.
274- * @param size Optinal, size of this emitter.
275- * @return {Emitter= } The newly created emitter object.
272+ * @param x {number} Optinal, x position of the emitter.
273+ * @param y {number} Optinal, y position of the emitter.
274+ * @param size {number} Optinal, size of this emitter.
275+ * @return {Emitter } The newly created emitter object.
276276 */
277277 public createEmitter ( x ?: number = 0 , y ?: number = 0 , size ?: number = 0 ) : Emitter {
278278 return < Emitter > this . group . add ( new Emitter ( this . _game , x , y , size ) ) ;
0 commit comments