Package sac.model.rotations
Class SuperRotationSystem
java.lang.Object
sac.model.rotations.SuperRotationSystem
- All Implemented Interfaces:
RotationSystem
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncomputeNextSuperRotationState(SuperRotationSystem.SuperRotationState currentState, Model.MoveType moveType) getNextState(RotationState currentState, Model.MoveType moveType) static PointgetOffsetTestData(Piece.PieceType type, SuperRotationSystem.SuperRotationState src, SuperRotationSystem.SuperRotationState dest, int testCnt) static PointgetTrueRotationOffset(Piece.PieceType type, SuperRotationSystem.SuperRotationState src, SuperRotationSystem.SuperRotationState dest) restore(RotationState currentState)
-
Constructor Details
-
SuperRotationSystem
public SuperRotationSystem()
-
-
Method Details
-
getInitialState
- Specified by:
getInitialStatein interfaceRotationSystem
-
getNextState
- Specified by:
getNextStatein interfaceRotationSystem
-
restore
- Specified by:
restorein 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)
-