Enum Class Tetris.Tetrominoes

java.lang.Object
java.lang.Enum<Tetris.Tetrominoes>
uno.anahata.asi.swing.games.Tetris.Tetrominoes
All Implemented Interfaces:
Serializable, Comparable<Tetris.Tetrominoes>, Constable
Enclosing class:
Tetris

static enum Tetris.Tetrominoes extends Enum<Tetris.Tetrominoes>
Enumeration of all standard tetromino geometry variations.
Author:
anahata
  • Enum Constant Details

    • NoShape

      public static final Tetris.Tetrominoes NoShape
      Represents an empty grid cell or the absence of a falling piece.
    • ZShape

      public static final Tetris.Tetrominoes ZShape
      The Z-shaped red tetromino block.
    • SShape

      public static final Tetris.Tetrominoes SShape
      The S-shaped green tetromino block.
    • LineShape

      public static final Tetris.Tetrominoes LineShape
      The straight 1x4 light-blue line tetromino block.
    • TShape

      public static final Tetris.Tetrominoes TShape
      The T-shaped purple tetromino block.
    • SquareShape

      public static final Tetris.Tetrominoes SquareShape
      The 2x2 square yellow tetromino block.
    • LShape

      public static final Tetris.Tetrominoes LShape
      The L-shaped orange tetromino block.
    • MirroredLShape

      public static final Tetris.Tetrominoes MirroredLShape
      The mirrored L-shaped green-blue tetromino block.
  • Constructor Details

    • Tetrominoes

      private Tetrominoes()
  • Method Details

    • values

      public static Tetris.Tetrominoes[] 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

      public static Tetris.Tetrominoes valueOf(String name)
      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 name
      NullPointerException - if the argument is null