import javafx.scene.layout.GridPane; //导入方法依赖的package包/类
/**
* Checks if a tile with the given width and height would overlap a pre-existing tile at the point {@code (col, row)},
* ignoring some nodes when calculating collisions. Note that this method does not perform bounds checking;
* use {@link #isOpen(int, int, int, int, Predicate) isOpen} to check if a widget can be placed at that point.
*
* @param col the column index of the point to check
* @param row the row index of the point to check
* @param tileWidth the width of the tile
* @param tileHeight the height of the tile
* @param ignore a predicate to use to ignore nodes when calculating collisions
*/
public boolean isOverlapping(int col, int row, int tileWidth, int tileHeight, Predicate ignore) {
for (Node child : getChildren()) {