public bool isCellVulnerableAfterMove(GameCell fromCell, GameCell toCell, Piece.PlayerColour opposingColour) { Piece pieceToMove = fromCell.Piece; Piece pieceAtToCell = toCell.Piece; MovePieceOnBoard(fromCell, toCell); bool isVulnerable = isCellVulnerable(toCell, opposingColour); fromCell.Piece = pieceToMove; toCell.Piece = pieceAtToCell; return(isVulnerable); }
private void MovePieceOnBoard(GameCell fromCell, GameCell toCell) { toCell.Piece = fromCell.Piece; EmptyCell(fromCell); }
private void MovePiece(GameCell fromCell, GameCell toCell) { fromCell.Piece.RegisterMove(toCell); MovePieceOnBoard(fromCell, toCell); FirePieceMovedEvent(toCell); }