Package sac.model.rotations
Class BasicRotationSystem
java.lang.Object
sac.model.rotations.BasicRotationSystem
- All Implemented Interfaces:
RotationSystem
A naive rotation scheme (rotate about the center of the piece).
Inspired by Assignment 2.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetNextState
(RotationState currentState, Model.MoveType moveType) restore
(RotationState currentState)
-
Constructor Details
-
BasicRotationSystem
public BasicRotationSystem()
-
-
Method Details
-
getInitialState
- Specified by:
getInitialState
in interfaceRotationSystem
-
getNextState
- Specified by:
getNextState
in interfaceRotationSystem
-
restore
- Specified by:
restore
in interfaceRotationSystem
-