public final Corners getCornersAreSolid(final double x, final double y) { final int leftTile = (int) (x / Tile.SIZE); final int rightTile = (int) ((x + moveData.collisionBox.getWidth()) / Tile.SIZE); final int topTile = (int) (y / Tile.SIZE); final int bottomTile = (int) ((y + moveData.collisionBox.getHeight()) / Tile.SIZE); final boolean topLeft = hasAttribute(parentLevel.getMap(), Attribute.SOLID, topTile, leftTile); final boolean topRight = hasAttribute(parentLevel.getMap(), Attribute.SOLID, topTile, rightTile); final boolean bottomLeft = hasAttribute(parentLevel.getMap(), Attribute.SOLID, bottomTile, leftTile); final boolean bottomRight = hasAttribute(parentLevel.getMap(), Attribute.SOLID, bottomTile, rightTile); final Corners solidCorners = new Corners(); solidCorners.topLeft = topLeft; solidCorners.topRight = topRight; solidCorners.bottomRight = bottomRight; solidCorners.bottomLeft = bottomLeft; return solidCorners; }