Esempio n. 1
0
 internal EnigmaPartInfo(EnigmaMachine machine)
 {
     this.machine = machine;
     int rotCount = this.machine.Rotors.Count;
     this.RotorWindows = new char[5];
     this.RotorDescriptions = new string[5];
     this.UpdatePartInfo();
     this.UpdateRotorWindows();
 }
Esempio n. 2
0
        public EnigmaOperator()
        {
            this.AllRotors = new List<Rotor>
            {
                new RotorI(), new RotorII(), new RotorIII(), new RotorIV(), new RotorV(), new RotorVI(), new RotorVII(), new RotorVIII(), new RotorBeta(), new RotorGamma()
            };

            this.AllReflectors = new List<Reflector>
            {
                new UKW_B(), new UKW_C(), new UKW_Thin_B(), new UKW_Thin_C()
            };

            this.machine = new EnigmaMachine
            {
                Rotors = new RotorSet(this.AllRotors[0], this.AllRotors[1], this.AllRotors[2]),
                Reflector = this.AllReflectors[0],
                PlugBoard = new PlugBoard()
            };

            this.PartInfo = new EnigmaPartInfo(this.machine);
        }