Package sac.model.gamemodes
Class CustomizeCore
java.lang.Object
sac.model.gamemodes.CustomizeCore
- All Implemented Interfaces:
GameCore
A handy class for quickly customize a game core.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintintgetWidth()setGenerator(Generator generator) setRotationSystem(RotationSystem rotationSystem) setSize(int width, int height, int buffer) Set the size of the board.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface sac.model.gamemodes.GameCore
getSpawnPosition
-
Constructor Details
-
CustomizeCore
public CustomizeCore()
-
-
Method Details
-
getPieceGenerator
- Specified by:
getPieceGeneratorin interfaceGameCore- Returns:
- the pieceGenerator this game would use
-
getRotationSystem
- Specified by:
getRotationSystemin interfaceGameCore- Returns:
- the rotationSystem this game would use
-
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getBuffer
public int getBuffer() -
setRotationSystem
- Parameters:
rotationSystem-- Returns:
- this
-
setGenerator
- Parameters:
generator-- Returns:
- this
-
setSize
Set the size of the board.- Parameters:
width-height- - buffer not includedbuffer-- Returns:
- this
-