Yun constructor

Yun(
  1. EightChar eightChar,
  2. int gender, [
  3. int sect = 1
])

Implementation

Yun(EightChar eightChar, int gender, [int sect = 1]) {
  _lunar = eightChar.getLunar();
  _gender = gender;
  // 阳
  bool yang = 0 == _lunar!.getYearGanIndexExact() % 2;
  // 男
  bool man = 1 == gender;
  _forward = (yang && man) || (!yang && !man);
  computeStart(sect);
}