Package | Description |
---|---|
squidpony.squidgrid.mapping |
Tools specifically for generating maps and placing content in them, usually working with 2D char arrays.
|
Modifier and Type | Class and Description |
---|---|
static class |
Rectangle.Impl |
Modifier and Type | Field and Description |
---|---|
static java.util.Comparator<Rectangle> |
Rectangle.Utils.SIZE_COMPARATOR
A comparator that uses
Rectangle.Utils.size(Rectangle) as the measure. |
Modifier and Type | Method and Description |
---|---|
Rectangle |
Rectangle.Impl.extend() |
static Rectangle |
Rectangle.Utils.extend(Rectangle r,
Direction d) |
protected Rectangle |
RectangleRoomFinder.extendRoom(boolean[][] assigneds,
Rectangle r,
Direction d) |
protected Rectangle |
RectangleRoomFinder.extendRoomOnce(boolean[][] assigneds,
Rectangle r,
Direction d) |
static Rectangle |
Rectangle.Utils.shrink(Rectangle r)
Creates a new Rectangle that is smaller than r by 1 cell from each of r's edges, to a minimum of a 1x1 cell.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Rectangle> |
RectangleRoomFinder.findRectangles() |
Modifier and Type | Method and Description |
---|---|
static java.util.Iterator<Coord> |
Rectangle.Utils.cells(Rectangle r)
Use
Rectangle.Utils.cellsList(Rectangle) if you want them all. |
static java.util.List<Coord> |
Rectangle.Utils.cellsList(Rectangle r)
Use
Rectangle.Utils.cells(Rectangle) if you may stop before the end of the
list, you'll save some memory. |
static Coord |
Rectangle.Utils.center(Rectangle r) |
static boolean |
Rectangle.Utils.contains(Rectangle r,
Coord c) |
static boolean |
Rectangle.Utils.contains(Rectangle r,
int x,
int y) |
static boolean |
Rectangle.Utils.containsAny(Rectangle r,
java.util.Collection<Coord> cs) |
static Rectangle |
Rectangle.Utils.extend(Rectangle r,
Direction d) |
protected Rectangle |
RectangleRoomFinder.extendRoom(boolean[][] assigneds,
Rectangle r,
Direction d) |
protected Rectangle |
RectangleRoomFinder.extendRoomOnce(boolean[][] assigneds,
Rectangle r,
Direction d) |
static Coord[] |
Rectangle.Utils.getAll4Corners(Rectangle r,
Coord[] buf) |
static java.util.List<Coord> |
Rectangle.Utils.getBorder(Rectangle r,
Direction cardinal,
java.util.List<Coord> buf) |
static Coord |
Rectangle.Utils.getCorner(Rectangle r,
Direction dir) |
static Rectangle |
Rectangle.Utils.shrink(Rectangle r)
Creates a new Rectangle that is smaller than r by 1 cell from each of r's edges, to a minimum of a 1x1 cell.
|
static int |
Rectangle.Utils.size(Rectangle r) |
Modifier and Type | Method and Description |
---|---|
static boolean |
Rectangle.Utils.contains(java.lang.Iterable<? extends Rectangle> rs,
Coord c) |
Copyright © Eben Howard 2012–2022. All rights reserved.