XiaoYun constructor

XiaoYun(
  1. DaYun daYun,
  2. int index,
  3. bool forward
)

Implementation

XiaoYun(DaYun daYun, int index, bool forward) {
  _daYun = daYun;
  _lunar = daYun.getLunar();
  _index = index;
  _year = daYun.getStartYear() + index;
  _age = daYun.getStartAge() + index;
  _forward = forward;
}