for (int i = 0; i < heightInTiles; i++) { for (int j = 0; j < widthInTiles; j++) { other.setTileAt(j+xOffset, i+yOffset, map[i][j]);
for (int y = bounds.y; y < bounds.y + bounds.height; y++) { for (int x = bounds.x; x < bounds.x + bounds.width; x++) { other.setTileAt(x, y, getTileAt(x, y));
    public void copyTo(MapLayer other) {        for (int i = 0; i < heightInTiles; i++) {            for (int j = 0; j < widthInTiles; j++) {				                other.setTileAt(j+xOffset, i+yOffset, map[i][j]);				            }        }    }