Package | Description |
---|---|
cell2d.space |
Modifier and Type | Method and Description |
---|---|
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 |
---|---|
java.util.Set<Direction> |
MobileObject.getCollisionDirections()
Returns the Set of the Directions in which this MobileObject collided
with solid surfaces during its last movement.
|
java.util.Map<SpaceObject<T>,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<T> 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.
|