Example #1
0
        // 当前吸收量:当前正在吸收到敌方的攻击力的量
        // 只有当自己处于><阵型,且背对正在攻击或支援攻击的地方时,
        // 才能吸收到敌方攻击力,该数值<=吸收能力
        // 若为空格,返回-1
        public int GetAbsorbingAmtAt(Hex coord)
        {
            MiroModelV1 model = _GridCtrl.GetMiroModelAt(coord);

            if (model == null)
            {
                return(-1);
            }
            int  amt        = 0;
            bool bHoleGrown = model._BlackHole.IsGrown();

            if (bHoleGrown)
            {
                amt = model.GetAbsorbingAmt();
            }
            return(amt);
        }