public void Increase() { if (thisLetter != OneLetter.Z) { thisLetter++; } else { thisLetter = OneLetter.a; } }
public void Decrease() { if (thisLetter != OneLetter.a) { thisLetter--; } else { thisLetter = OneLetter.Z; } }
public void Decrease(Letter amount) { for (int i = 0; i <= (int)amount.thisLetter; i++) { if (thisLetter != OneLetter.a) { thisLetter--; } else { thisLetter = OneLetter.Z; } } }
public void Increase(Letter amount) { for (int i = 0; i <= (int)amount.thisLetter; i++) { if (thisLetter != OneLetter.Z) { thisLetter++; } else { thisLetter = OneLetter.a; } } }
public void Set(char let) { if (let > 64 && let < 91) { thisLetter = (OneLetter)((int)let - 39); } else if (let > 96 && let < 123) { thisLetter = (OneLetter)((int)let - 97); } else { throw new ArgumentOutOfRangeException(); } }