Package tetris.model.figures
Class LFigure
java.lang.Object
tetris.model.Figure
tetris.model.figures.LFigure
The class LFigure implements an L-shaped figure of the Tetris game.
- Version:
- 2.1
- Author:
- Stephan Fischli
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
COLOR
private static final int COLORThe color of the figure.- See Also:
-
-
Constructor Details
-
LFigure
public LFigure(int x, int y) Creates an L-shaped figure.- Parameters:
x
- the x coordinate of the initial positiony
- the y coordinate of the initial position
-