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 Type
    Method
    Description
    void
    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

      void shiftDown() throws Exception
      Shifts the figure down.
      Throws:
      Exception
    • shiftLeft

      void shiftLeft() throws Exception
      Shifts the figure to the left.
      Throws:
      Exception
    • shiftRight

      void shiftRight() throws Exception
      Shifts the figure to the right.
      Throws:
      Exception
    • rotateLeft

      void rotateLeft() throws Exception
      Rotates the figure to the left.
      Throws:
      Exception
    • rotateRight

      void rotateRight() throws Exception
      Rotates the figure to the left.
      Throws:
      Exception
    • drop

      void drop() throws Exception
      Drops the figure.
      Throws:
      Exception