Package sac.model.rotations
Class SuperRotationSystem
java.lang.Object
sac.model.rotations.SuperRotationSystem
- All Implemented Interfaces:
RotationSystem
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncomputeNextSuperRotationState
(SuperRotationSystem.SuperRotationState currentState, Model.MoveType moveType) getNextState
(RotationState currentState, Model.MoveType moveType) static Point
getOffsetTestData
(Piece.PieceType type, SuperRotationSystem.SuperRotationState src, SuperRotationSystem.SuperRotationState dest, int testCnt) static Point
getTrueRotationOffset
(Piece.PieceType type, SuperRotationSystem.SuperRotationState src, SuperRotationSystem.SuperRotationState dest) restore
(RotationState currentState)
-
Constructor Details
-
SuperRotationSystem
public SuperRotationSystem()
-
-
Method Details
-
getInitialState
- Specified by:
getInitialState
in interfaceRotationSystem
-
getNextState
- Specified by:
getNextState
in interfaceRotationSystem
-
restore
- Specified by:
restore
in interfaceRotationSystem
-
computeNextSuperRotationState
public static SuperRotationSystem.SuperRotationState computeNextSuperRotationState(SuperRotationSystem.SuperRotationState currentState, Model.MoveType moveType) -
getOffsetTestData
public static Point getOffsetTestData(Piece.PieceType type, SuperRotationSystem.SuperRotationState src, SuperRotationSystem.SuperRotationState dest, int testCnt) -
getTrueRotationOffset
public static Point getTrueRotationOffset(Piece.PieceType type, SuperRotationSystem.SuperRotationState src, SuperRotationSystem.SuperRotationState dest)
-