java.lang.Object
ru.hse.germandilio.tetris.server.bricks.IBrick
All Implemented Interfaces:
Brick

public class IBrick extends Object implements Brick
  • Constructor Details

    • IBrick

      public IBrick()
  • Method Details

    • getMatrix

      public List<boolean[][]> getMatrix()
      Description copied from interface: Brick
      Internal matrix that represents 3x3 brick.
      Specified by:
      getMatrix in interface Brick
      Returns:
      List of all brick rotations.
    • getRotationsCount

      public int getRotationsCount()
      Description copied from interface: Brick
      Number of available rotations.
      Specified by:
      getRotationsCount in interface Brick
      Returns:
      Integer number.