Beispiel #1
0
            public void Import(KikisuKomabetuCountboardItiran src)
            {
                for (int iKm = 0; iKm < Conv_Koma.itiran.Length; iKm++)
                {
                    int length = Math.Min(valueKmMs[iKm].Length, src.GetArrayLength((Piece)iKm));

                    for (int iMs = 0; iMs < length; iMs++)
                    {
                        this.valueKmMs[iKm][iMs] = src.Get((Piece)iKm, (Masu)iMs);
                    }
                }
            }
Beispiel #2
0
            /// <summary>
            /// 引き算
            /// </summary>
            /// <param name="km"></param>
            /// <param name="cbKomabetu_clear">こっちはクリアーされる</param>
            public void Substruct(Piece km, KikisuKomabetuCountboardItiran cbKomabetu_clear)
            {
                Taikyokusya tai = Med_Koma.KomaToTaikyokusya(km);

                for (int iMs = 0; iMs < valueTaiMs[(int)tai].Length; iMs++)
                {
                    int num = cbKomabetu_clear.Get(km, (Masu)iMs);
                    valueTaiMs[(int)tai][iMs] -= num;
                    valueTai[(int)tai]        -= num;
                }

                cbKomabetu_clear.Tukurinaosi_Clear(km);
            }