Class JFigure

java.lang.Object
tetris.model.Figure
tetris.model.figures.JFigure

public class JFigure extends Figure
The class JFigure implements an J-shaped figure of the Tetris game.
Version:
2.1
Author:
Stephan Fischli
  • Field Details

  • Constructor Details

    • JFigure

      public JFigure(int x, int y)
      Creates an J-shaped figure.
      Parameters:
      x - the x coordinate of the initial position
      y - the y coordinate of the initial position