Class CustomizeCore

java.lang.Object
sac.model.gamemodes.CustomizeCore
All Implemented Interfaces:
GameCore

public abstract class CustomizeCore extends Object implements GameCore
A handy class for quickly customize a game core.
  • Constructor Details

    • CustomizeCore

      public CustomizeCore()
  • Method Details

    • getPieceGenerator

      public Generator getPieceGenerator()
      Specified by:
      getPieceGenerator in interface GameCore
      Returns:
      the pieceGenerator this game would use
    • getRotationSystem

      public RotationSystem getRotationSystem()
      Specified by:
      getRotationSystem in interface GameCore
      Returns:
      the rotationSystem this game would use
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface GameCore
      Returns:
      width of the board
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface GameCore
      Returns:
      height of the board (buffer included)
    • getBuffer

      public int getBuffer()
      Specified by:
      getBuffer in interface GameCore
      Returns:
      height of the buffer zone of the board
    • setRotationSystem

      public CustomizeCore setRotationSystem(RotationSystem rotationSystem)
      Parameters:
      rotationSystem -
      Returns:
      this
    • setGenerator

      public CustomizeCore setGenerator(Generator generator)
      Parameters:
      generator -
      Returns:
      this
    • setSize

      public CustomizeCore setSize(int width, int height, int buffer)
      Set the size of the board.
      Parameters:
      width -
      height - - buffer not included
      buffer -
      Returns:
      this