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
-
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getWidth()
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, wait
Methods inherited from interface sac.model.gamemodes.GameCore
getSpawnPosition
-
Constructor Details
-
CustomizeCore
public CustomizeCore()
-
-
Method Details
-
getPieceGenerator
- Specified by:
getPieceGenerator
in interfaceGameCore
- Returns:
- the pieceGenerator this game would use
-
getRotationSystem
- Specified by:
getRotationSystem
in 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
-