Package | Description |
---|---|
control | |
physics |
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 |
---|---|
void |
Ball.updateDirection(Direction direction)
Changes the speed of the ball based on the direction.
|
void |
World.updateDirection(Direction direction)
Hides access to the Ball.
|