public static Reflector UKW_B() { //YRUHQSLDPXNGOKMIEBFZCWVJAT int[] wiring = new int[26] { 24, 17, 20, 7, 16, 18, 11, 3, 15, 23, 13, 6, 14, 10, 12, 8, 4, 1, 5, 25, 2, 22, 21, 9, 0, 19 }; Reflector ukw = new Reflector(wiring, PartName.UKW_B); return ukw; }
public void SetReflector(Reflector newReflector) { this.reflector = newReflector; }
public EnigmaMachine() { workingRotors = new Rotor[3] { Rotor.CreateRotor(PartName.RotorI), Rotor.CreateRotor(PartName.RotorII), Rotor.CreateRotor(PartName.RotorIII) }; reflector = Reflector.UKW_B(); }