Interface Movable
public interface Movable
Defines the methods that any movable entity must have.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
move()
Defines the signature of the method that manages the movement of any movable entity.void
setDirection
(Direction direction) Defines the signatures of the method that manages the direction in which any movable entity moves.
-
Method Details
-
move
void move()Defines the signature of the method that manages the movement of any movable entity. -
setDirection
Defines the signatures of the method that manages the direction in which any movable entity moves.- Parameters:
direction
- New direction to set
-