Interface Movable
- All Known Implementing Classes:
Player
public interface Movable
Defines if an Object is Dynamic e.g. can move.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
startMoving
(WalkDirection direction) Starts moving in defined direction.void
stopMoving
(WalkDirection direction) Stops moving for one direction.
-
Method Details
-
startMoving
Starts moving in defined direction. Should NOT move in two directions. e.g. left and up.- Parameters:
direction
- Direction to move.
-
stopMoving
Stops moving for one direction. For example if Object moves left, but was overridden, it does not stop if it should stop moving right.- Parameters:
direction
- Direction to stop moving.
-