You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property {boolean} [isNotEmpty=false] - If true, only return tiles that don't have -1 for an index.
845
-
* @property {boolean} [isColliding=false] - If true, only return tiles that collide on at least one side.
846
-
* @property {boolean} [hasInterestingFace=false] - If true, only return tiles that have at least one interesting face.
847
-
*/
848
-
849
841
/**
850
842
* For each tile in the given rectangular area (in tile coordinates) of the layer, run the given
851
843
* filter callback function. Any tiles that pass the filter test (i.e. where the callback returns
@@ -863,7 +855,7 @@ var Tilemap = new Class({
863
855
* @param {integer} [tileY=0] - The top most tile index (in tile coordinates) to use as the origin of the area to filter.
864
856
* @param {integer} [width=max width based on tileX] - How many tiles wide from the `tileX` index the area will be.
865
857
* @param {integer} [height=max height based on tileY] - How many tiles tall from the `tileY` index the area will be.
866
-
* @param {FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
858
+
* @param {Phaser.Tilemaps.Types.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
867
859
* @param {(string|integer|Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.
868
860
*
869
861
* @return {?Phaser.Tilemaps.Tile[]} Returns an array of Tiles, or null if the layer given was invalid.
@@ -951,7 +943,7 @@ var Tilemap = new Class({
951
943
* @param {integer} [tileY=0] - The top most tile index (in tile coordinates) to use as the origin of the area to search.
952
944
* @param {integer} [width=max width based on tileX] - How many tiles wide from the `tileX` index the area will be.
953
945
* @param {integer} [height=max height based on tileY] - How many tiles tall from the `tileY` index the area will be.
954
-
* @param {FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
946
+
* @param {Phaser.Tilemaps.Types.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
955
947
* @param {(string|integer|Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} [layer] - The Tile layer to run the search on. If not provided will use the current layer.
956
948
*
957
949
* @return {?Phaser.Tilemaps.Tile} Returns a Tiles, or null if the layer given was invalid.
@@ -980,7 +972,7 @@ var Tilemap = new Class({
980
972
* @param {integer} [tileY=0] - The top most tile index (in tile coordinates) to use as the origin of the area to search.
981
973
* @param {integer} [width=max width based on tileX] - How many tiles wide from the `tileX` index the area will be.
982
974
* @param {integer} [height=max height based on tileY] - How many tiles tall from the `tileY` index the area will be.
983
-
* @param {FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
975
+
* @param {Phaser.Tilemaps.Types.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
984
976
* @param {(string|integer|Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} [layer] - The Tile layer to run the search on. If not provided will use the current layer.
985
977
*
986
978
* @return {?Phaser.Tilemaps.Tilemap} Returns this, or null if the layer given was invalid.
@@ -1191,7 +1183,7 @@ var Tilemap = new Class({
1191
1183
* @param {integer} [tileY=0] - The top most tile index (in tile coordinates) to use as the origin of the area.
1192
1184
* @param {integer} [width=max width based on tileX] - How many tiles wide from the `tileX` index the area will be.
1193
1185
* @param {integer} [height=max height based on tileY] - How many tiles tall from the `tileY` index the area will be.
1194
-
* @param {FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
1186
+
* @param {Phaser.Tilemaps.Types.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
1195
1187
* @param {(string|integer|Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.
1196
1188
*
1197
1189
* @return {?Phaser.Tilemaps.Tile[]} Returns an array of Tiles, or null if the layer given was invalid.
@@ -1214,7 +1206,7 @@ var Tilemap = new Class({
1214
1206
* @since 3.0.0
1215
1207
*
1216
1208
* @param {(Phaser.Geom.Circle|Phaser.Geom.Line|Phaser.Geom.Rectangle|Phaser.Geom.Triangle)} shape - A shape in world (pixel) coordinates
1217
-
* @param {FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
1209
+
* @param {Phaser.Tilemaps.Types.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
1218
1210
* @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when factoring in which tiles to return.
1219
1211
* @param {(string|integer|Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.
1220
1212
*
@@ -1240,7 +1232,7 @@ var Tilemap = new Class({
1240
1232
* @param {number} worldY - The world y coordinate for the top-left of the area.
1241
1233
* @param {number} width - The width of the area.
1242
1234
* @param {number} height - The height of the area.
1243
-
* @param {FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
1235
+
* @param {Phaser.Tilemaps.Types.FilteringOptions} [filteringOptions] - Optional filters to apply when getting the tiles.
1244
1236
* @param {Phaser.Cameras.Scene2D.Camera} [camera=main camera] - The Camera to use when factoring in which tiles to return.
1245
1237
* @param {(string|integer|Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.
* @property {?number} [tileColor=blue] - Color to use for drawing a filled rectangle at non-colliding tile locations. If set to null, non-colliding tiles will not be drawn.
1640
-
* @property {?number} [collidingTileColor=orange] - Color to use for drawing a filled rectangle at colliding tile locations. If set to null, colliding tiles will not be drawn.
1641
-
* @property {?number} [faceColor=grey] - Color to use for drawing a line at interesting tile faces. If set to null, interesting tile faces will not be drawn.
1642
-
*/
1643
-
1644
1628
/**
1645
1629
* Draws a debug representation of the layer to the given Graphics. This is helpful when you want to
1646
1630
* get a quick idea of which of your tiles are colliding and which have interesting faces. The tiles
@@ -1653,7 +1637,7 @@ var Tilemap = new Class({
1653
1637
* @since 3.0.0
1654
1638
*
1655
1639
* @param {Phaser.GameObjects.Graphics} graphics - The target Graphics object to draw upon.
1656
-
* @param {StyleConfig} styleConfig - An object specifying the colors to use for the debug drawing.
1640
+
* @param {Phaser.Tilemaps.Types.StyleConfig} styleConfig - An object specifying the colors to use for the debug drawing.
1657
1641
* @param {(string|integer|Phaser.Tilemaps.DynamicTilemapLayer|Phaser.Tilemaps.StaticTilemapLayer)} [layer] - The tile layer to use. If not given the current layer is used.
1658
1642
*
1659
1643
* @return {?Phaser.Tilemaps.Tilemap} Return this Tilemap object, or null if the layer given was invalid.
0 commit comments