Package | Description |
---|---|
org.cell2d | |
org.cell2d.control | |
org.cell2d.space |
Modifier and Type | Method and Description |
---|---|
Direction |
Direction.clockwise()
Returns the Direction 90 degrees clockwise from this one.
|
Direction |
Direction.counterclockwise()
Returns the Direction 90 degrees counterclockwise from this one.
|
Direction |
Direction.opposite()
Returns the Direction opposite 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.
|
Modifier and Type | Method and Description |
---|---|
Direction |
ControllerDirectionControl.getDirection()
Returns this ControllerButtonControl's Direction.
|
Constructor and Description |
---|
ControllerDirectionControl(int controllerNum,
Direction direction)
Constructs a ControllerDirectionControl that represents the specified
Direction on the primary axes of the controller with the specified
number.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Direction> |
MobileObject.getCollisionDirections()
Returns an unmodifiable Set view of the Directions in which this
MobileObject collided with solid surfaces during its last movement.
|
java.util.Map<SpaceObject,java.util.Set<Direction>> |
MobileObject.getCollisions()
Returns a Map of the SpaceObjects whose solid surfaces this MobileObject
collided with during its last movement to the Sets of the Directions in
which it collided with them.
|
Modifier and Type | Method and Description |
---|---|
CollisionResponse |
MobileObject.collide(SpaceObject object,
Direction direction)
This MobileObject's response to colliding with a solid surface of the
specified SpaceObject in the specified Direction.
|
boolean |
MobileObject.collided(Direction direction)
Returns whether this MobileObject collided with any solid surfaces in the
specified Direction during its last movement.
|
boolean |
MobileObject.isPressingIn(Direction direction)
Returns whether this MobileObject's absolute pressing angle, if it has
one, has a component in the specified Direction.
|
void |
Hitbox.setSurfaceSolid(Direction direction,
boolean solid)
Sets whether this Hitbox's surface in the specified Direction is solid.
|
void |
SpaceObject.setSurfaceSolid(Direction direction,
boolean solid)
Sets whether this SpaceObject's surface in the specified Direction is
solid.
|
boolean |
Hitbox.surfaceIsSolid(Direction direction)
Returns whether this Hitbox's surface in the specified Direction is
solid.
|
boolean |
SpaceObject.surfaceIsSolid(Direction direction)
Returns whether this SpaceObject's surface in the specified Direction is
solid.
|