Package tetris.gui
Interface ActionHandler
public interface ActionHandler
The interface ActionHandler defines the methods to move a Tetris figure.
- Version:
- 2.1
- Author:
- Stephan Fischli
-
Method Summary
Modifier and TypeMethodDescriptionvoid
drop()
Drops the figure.void
Rotates the figure to the left.void
Rotates the figure to the left.void
Shifts the figure down.void
Shifts the figure to the left.void
Shifts the figure to the right.
-
Method Details
-
shiftDown
Shifts the figure down.- Throws:
Exception
-
shiftLeft
Shifts the figure to the left.- Throws:
Exception
-
shiftRight
Shifts the figure to the right.- Throws:
Exception
-
rotateLeft
Rotates the figure to the left.- Throws:
Exception
-
rotateRight
Rotates the figure to the left.- Throws:
Exception
-
drop
Drops the figure.- Throws:
Exception
-