예제 #1
0
        private void calcDora(int[] handsComp, GeneralSituation generalSituation, bool isReach)
        {
            if (generalSituation == null)
            {
                return;
            }
            int dora = 0;

            foreach (Tile tile in generalSituation.getDora())
            {
                dora += handsComp[tile.getCode()];
            }
            for (int i = 0; i < dora; i++)
            {
                normalYakuList.Add(DORA);
                han += DORA.getHan();
            }

            if (isReach)
            {
                int uradora = 0;
                foreach (Tile tile in generalSituation.getUradora())
                {
                    uradora += handsComp[tile.getCode()];
                }
                for (int i = 0; i < uradora; i++)
                {
                    normalYakuList.Add(URADORA);
                    han += URADORA.getHan();
                }
            }
        }
 public LaatstGegenereerdeCode(DORA.Objects.UniekeCode laatsteRegistratiecode, DORA.Objects.UniekeCode laatsteKoppelcode)
 {
     LaatsteRegistratieCode = laatsteRegistratiecode;
     LaatsteKoppelCode = laatsteKoppelcode;
 }