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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetNextState(RotationState currentState, Model.MoveType moveType) restore(RotationState currentState)
-
Constructor Details
-
BasicRotationSystem
public BasicRotationSystem()
-
-
Method Details
-
getInitialState
- Specified by:
getInitialStatein interfaceRotationSystem
-
getNextState
- Specified by:
getNextStatein interfaceRotationSystem
-
restore
- Specified by:
restorein interfaceRotationSystem
-