Skip to content

Commit ed89e48

Browse files
committed
Updated jsdocs
1 parent cf6bbbd commit ed89e48

44 files changed

Lines changed: 469 additions & 91 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/tilemaps/components/CalculateFacesAt.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ var GetTileAt = require('./GetTileAt');
88
* @function Phaser.Tilemaps.Components.CalculateFacesAt
99
* @since 3.0.0
1010
*
11-
* @param {integer} tileX - [description]
12-
* @param {integer} tileY - [description]
13-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
11+
* @param {integer} tileX - The x coordinate.
12+
* @param {integer} tileY - The y coordinate.
13+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
1414
*/
1515
var CalculateFacesAt = function (tileX, tileY, layer)
1616
{

src/tilemaps/components/CalculateFacesWithin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ var GetTilesWithin = require('./GetTilesWithin');
1313
* @param {integer} [tileY=0] - [description]
1414
* @param {integer} [width=max width based on tileX] - [description]
1515
* @param {integer} [height=max height based on tileY] - [description]
16-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
16+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
1717
*/
1818
var CalculateFacesWithin = function (tileX, tileY, width, height, layer)
1919
{

src/tilemaps/components/Copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var CalculateFacesWithin = require('./CalculateFacesWithin');
1717
* @param {integer} destTileY - [description]
1818
* @param {integer} destTileY - [description]
1919
* @param {boolean} [recalculateFaces=true] - [description]
20-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
20+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
2121
*/
2222
var Copy = function (srcTileX, srcTileY, width, height, destTileX, destTileY, recalculateFaces, layer)
2323
{

src/tilemaps/components/CreateFromTiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var ReplaceByIndex = require('./ReplaceByIndex');
2020
* scene.make.sprite).
2121
* @param {Phaser.Scene} [scene=scene the map is within] - The Scene to create the Sprites within.
2222
* @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when determining the world XY
23-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
23+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
2424
*
2525
* @return {Phaser.GameObjects.Sprite[]} An array of the Sprites that were created.
2626
*/

src/tilemaps/components/CullTiles.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
* @function Phaser.Tilemaps.Components.CullTiles
66
* @since 3.0.0
77
*
8-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
9-
* @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - [description]
8+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
9+
* @param {Phaser.Cameras.Scene2D.Camera} [camera] - The Camera to run the cull check against.
1010
* @param {array} [outputArray] - [description]
1111
*
12-
* @return {Phaser.Tilemaps.Tile[]}
12+
* @return {Phaser.Tilemaps.Tile[]} An array of Tile objects.
1313
*/
1414
var CullTiles = function (layer, camera, outputArray)
1515
{

src/tilemaps/components/Fill.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ var SetTileCollision = require('./SetTileCollision');
1616
* @param {integer} [width=max width based on tileX] - [description]
1717
* @param {integer} [height=max height based on tileY] - [description]
1818
* @param {boolean} [recalculateFaces=true] - [description]
19-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
19+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
2020
*/
2121
var Fill = function (index, tileX, tileY, width, height, recalculateFaces, layer)
2222
{

src/tilemaps/components/FilterTiles.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var GetTilesWithin = require('./GetTilesWithin');
2323
* on at least one side.
2424
* @param {boolean} [filteringOptions.hasInterestingFace=false] - If true, only return tiles that
2525
* have at least one interesting face.
26-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
26+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
2727
*
2828
* @return {Phaser.Tilemaps.Tile[]} The filtered array of Tiles.
2929
*/

src/tilemaps/components/FindByIndex.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* @param {integer} [skip=0] - The number of times to skip a matching tile before returning.
1313
* @param {boolean} [reverse=false] - If true it will scan the layer in reverse, starting at the
1414
* bottom-right. Otherwise it scans from the top-left.
15-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
15+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
1616
*
1717
* @return {Phaser.Tilemaps.Tile|null} The first (or n skipped) tile with the matching index.
1818
*/

src/tilemaps/components/FindTile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ var GetTilesWithin = require('./GetTilesWithin');
2222
* on at least one side.
2323
* @param {boolean} [filteringOptions.hasInterestingFace=false] - If true, only return tiles that
2424
* have at least one interesting face.
25-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
25+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
2626
*
2727
* @return {Phaser.Tilemaps.Tile|null} A Tile that matches the search, or null if no Tile found
2828
*/

src/tilemaps/components/ForEachTile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ var GetTilesWithin = require('./GetTilesWithin');
2121
* on at least one side.
2222
* @param {boolean} [filteringOptions.hasInterestingFace=false] - If true, only return tiles that
2323
* have at least one interesting face.
24-
* @param {Phaser.Tilemaps.LayerData} layer - [description]
24+
* @param {Phaser.Tilemaps.LayerData} layer - The Tilemap Layer to act upon.
2525
*/
2626
var ForEachTile = function (callback, context, tileX, tileY, width, height, filteringOptions, layer)
2727
{

0 commit comments

Comments
 (0)