Enum Class Tetris.Tetrominoes
- All Implemented Interfaces:
Serializable, Comparable<Tetris.Tetrominoes>, Constable
- Enclosing class:
Tetris
Enumeration of all standard tetromino geometry variations.
- Author:
- anahata
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe straight 1x4 light-blue line tetromino block.The L-shaped orange tetromino block.The mirrored L-shaped green-blue tetromino block.Represents an empty grid cell or the absence of a falling piece.The 2x2 square yellow tetromino block.The S-shaped green tetromino block.The T-shaped purple tetromino block.The Z-shaped red tetromino block. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Tetris.TetrominoesReturns the enum constant of this class with the specified name.static Tetris.Tetrominoes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NoShape
Represents an empty grid cell or the absence of a falling piece. -
ZShape
The Z-shaped red tetromino block. -
SShape
The S-shaped green tetromino block. -
LineShape
The straight 1x4 light-blue line tetromino block. -
TShape
The T-shaped purple tetromino block. -
SquareShape
The 2x2 square yellow tetromino block. -
LShape
The L-shaped orange tetromino block. -
MirroredLShape
The mirrored L-shaped green-blue tetromino block.
-
-
Constructor Details
-
Tetrominoes
private Tetrominoes()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-

