@Component public class ChessRulesImpl extends java.lang.Object implements ChessRules
| Constructor and Description |
|---|
ChessRulesImpl() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<ChessBoardCoord> |
getAttackingPieces(ChessPosition position,
ChessBoardCoord squarePosition) |
java.util.Set<ChessMovePath> |
getAvailableMoves(ChessPosition position) |
ChessPosition |
getInitialPosition() |
java.util.Set<ChessBoardCoord> |
getReachableDestinations(ChessPosition position,
ChessBoardCoord pieceCoords,
boolean excludeCheckSituations) |
ChessGameStatus |
getStatus(ChessPosition position) |
java.util.List<ChessBoardUpdate> |
getUpdatesForMove(ChessPosition position,
ChessMovePath path) |
public java.util.Set<ChessMovePath> getAvailableMoves(ChessPosition position)
getAvailableMoves in interface ChessRulespublic java.util.Set<ChessBoardCoord> getReachableDestinations(ChessPosition position, ChessBoardCoord pieceCoords, boolean excludeCheckSituations)
getReachableDestinations in interface ChessRulespublic java.util.Set<ChessBoardCoord> getAttackingPieces(ChessPosition position, ChessBoardCoord squarePosition)
getAttackingPieces in interface ChessRulespublic ChessPosition getInitialPosition()
getInitialPosition in interface ChessRulespublic ChessGameStatus getStatus(ChessPosition position)
getStatus in interface ChessRulespublic java.util.List<ChessBoardUpdate> getUpdatesForMove(ChessPosition position, ChessMovePath path) throws IllegalMoveException
getUpdatesForMove in interface ChessRulesIllegalMoveExceptionCopyright © 2015. All Rights Reserved.