Exemple #1
0
 private RotorSocket(Rotor rotor, char currentLetter, char startingLetter)
 {
     _rotor                  = rotor;
     _initialLetter          = startingLetter;
     CurrentRingLetter       = currentLetter;
     IsSocketInNotchPosition = _rotor.IsNotch(currentLetter);
 }
Exemple #2
0
 public RotorSocket SetupRotor(RotorInfo rotorInfo)
 {
     return(SetupRotor(Rotor.Create(rotorInfo.Type, rotorInfo.RingSettingOffset), rotorInfo.StartingOffset));
 }
Exemple #3
0
 public RotorSocket SetupRotor(Rotor rotor, char startingLetter = 'A')
 {
     return(new RotorSocket(rotor, startingLetter));
 }
Exemple #4
0
 public RotorSocket(Rotor rotor, char startingLetter = 'A')
     : this(rotor, startingLetter, startingLetter)
 {
 }