public interface Movable extends Drawable
Modifier and Type | Method and Description |
---|---|
void |
moveDown()
Moves the object down and draws the object in its new position.
|
void |
moveLeft()
Moves the object to the left and draws the object in its new position.
|
void |
moveRight()
Moves the object to the right and draws the object in its new position.
|
void |
moveUp()
Moves the object up and draws the object in its new position.
|
draw, getPosition
void moveLeft()
void moveRight()
void moveUp()
void moveDown()