Package | Description |
---|---|
squidpony.squidgrid |
Tools for working with data on a grid, including LOS and FOV; overlaps with geometry code in squidpony.squidmath .
|
squidpony.squidgrid.iterator |
Iterators that allow traversal of squidpony.squidmath.Coord points on a map's grid.
|
squidpony.squidgrid.mapping |
Tools specifically for generating maps and placing content in them, usually working with 2D char arrays.
|
squidpony.squidmath |
A very broad package containing random number generators, geometry tools, and some classes for combinatorics.
|
Modifier and Type | Field and Description |
---|---|
static Direction[] |
Direction.CARDINALS
An array which holds only the four cardinal directions.
|
static Direction[] |
Direction.DIAGONALS
An array which holds only the four diagonal directions.
|
static Direction[] |
Direction.OUTWARDS
An array which holds all eight OUTWARDS directions.
|
Modifier and Type | Method and Description |
---|---|
Direction |
Direction.clockwise()
Returns the Direction one step clockwise including diagonals.
|
Direction |
Direction.counterClockwise()
Returns the Direction one step counterclockwise including diagonals.
|
static Direction |
Direction.getCardinalDirection(int x,
int y)
Returns the direction that most closely matches the input.
|
static Direction |
Direction.getDirection(int x,
int y)
Returns the direction that most closely matches the input.
|
Direction |
Direction.opposite()
Returns the direction directly opposite of this one.
|
static Direction |
Direction.toGoTo(Coord from,
Coord to) |
static Direction |
Direction.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
Direction.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Field and Description |
---|---|
protected Direction |
SquidIterators.AroundCounterClockWise.prev |
Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
Direction |
Coord.toGoTo(Coord adjacent)
|
Modifier and Type | Method and Description |
---|---|
Coord |
Coord.translate(Direction d) |
Copyright © 2012–2016. All rights reserved.