Package | Description |
---|---|
squidpony.squidgrid.gui.swing | |
squidpony.squidgrid.util |
Modifier and Type | Method and Description |
---|---|
void |
SwingPane.bump(java.awt.Point location,
Direction direction)
Starts a bumping animation in the direction provided.
|
void |
SwingPane.slide(java.awt.Point start,
Direction direction)
Starts a movement animation for the object at the given grid location at
the default speed for one grid square in the direction provided.
|
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.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.valueOf(java.lang.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.
|