Chess.Data.Entities.ChessPiece.DestroyOccupant C# (CSharp) Method

DestroyOccupant() private method

private DestroyOccupant ( Square board, Move move ) : void
board Square
move Move
return void
        private void DestroyOccupant(Square[][] board, Move move)
        {
            var occupant = GetDestinationPiece(board, move);

            if (occupant != null)
            {
                occupant.Alive = false;
                occupant.CurrentColumn = null;
                occupant.CurrentRow = null;
            }
        }