|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Orientation | |
---|---|
util | |
util.grid |
Uses of Orientation in util |
---|
Classes in util that implement Orientation | ||
---|---|---|
class |
Corner
Representation of the four corners in a rectangular figure. |
|
class |
Direction
Representation of the four directional orientations: up, right, down, and left. |
|
class |
HexDirection
| Represents the six directions out of a horizontal hexagon. |
Methods in util that return Orientation | |
---|---|
Orientation |
Orientation.clockwise()
Returns the next clockwise rotation. |
Orientation |
Orientation.counterClockwise()
Returns the next counter-clockwise rotation. |
Orientation |
Orientation.reverse()
Returns the opposite facing direction. |
Uses of Orientation in util.grid |
---|
Methods in util.grid that return Orientation | |
---|---|
Orientation |
Placeable.getOrientation()
Provides the direction being faced. |
Methods in util.grid that return types with arguments of type Orientation | |
---|---|
static ArrayList<Orientation> |
PointTools.getQuadPath(Point p1,
Point p2,
boolean diagonal,
boolean route)
Provides the the shortest directions from one point to another. |
Methods in util.grid with parameters of type Orientation | |
---|---|
static ArrayList<Point> |
PointTools.getCoordinates(Point start,
Orientation... dir)
Provides the path given from a series of offsets from an original point (not including the start). |
HashSet<Point> |
Placeable.getPattern(Orientation ori)
Provides the pattern used to construct occupied positions. |
void |
Placeable.setOrientation(Orientation ori)
Sets the direction being faced. |
Constructors in util.grid with parameters of type Orientation | |
---|---|
Placeable(Point anchor,
Orientation facedOrientation)
Constructor for a placeable that occupies a single location. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |