Exemplo n.º 1
0
 public CMsgAngryReady(int clickCnt, int skillId, ForcastSk forct)
 {
     status       = CMsgHeader.STATUS_ANGRY_READY;
     this.Count   = clickCnt;
     this.SkillId = skillId;
     this.forcast = forct;
 }
Exemplo n.º 2
0
        /// <summary>
        /// 封印技能
        /// </summary>
        private ForcastSk preCastSkOp106()
        {
            ForcastSk forcast = new ForcastSk()
            {
                target  = -1,
                SealCnt = param.num,
            };

            return(forcast);
        }
Exemplo n.º 3
0
        /// <summary>
        /// 怒气回复技能
        /// </summary>
        private ForcastSk preCastSkOp105()
        {
            ForcastSk forcast = new ForcastSk()
            {
                target   = 1,
                AngryRec = param.num,
            };

            return(forcast);
        }
Exemplo n.º 4
0
        private ForcastSk preCastSkOp102()
        {
            int       damage  = MathHelper.MidpointRounding(param.rate * Consts.oneHundred * owner.curAtt);
            ForcastSk forcast = new ForcastSk()
            {
                target   = -1,
                dmgOrRec = damage,
            };

            return(forcast);
        }
Exemplo n.º 5
0
        /// <summary>
        /// 吸血技能
        /// </summary>
        private ForcastSk preCastSkOp110()
        {
            int damage = param.damage;

            ForcastSk forcast = new ForcastSk()
            {
                target   = -1,
                dmgOrRec = damage,
            };

            return(forcast);
        }
Exemplo n.º 6
0
        private ForcastSk preCastSkOp107()
        {
            int Rec = param.add;

            ForcastSk forcast = new ForcastSk()
            {
                target   = 1,
                dmgOrRec = Rec,
            };

            return(forcast);
        }
Exemplo n.º 7
0
        public ForcastSk forcastInfo()
        {
            string funName = "preCastSkOp" + opObj.ID;
            Type   t       = typeof(BT_Skill);

            Object PreCast = t.InvokeMember(funName,
                                            BindingFlags.InvokeMethod | BindingFlags.NonPublic | BindingFlags.Instance,
                                            null, this, null);

            ForcastSk realRes = PreCast as ForcastSk;

            return(realRes);
        }
Exemplo n.º 8
0
        private ForcastSk preCastSkOp108()
        {
            int Rec = MathHelper.MidpointRounding(
                owner.curAtt * (1 + param.rate * Consts.oneHundred)
                );

            ForcastSk forcast = new ForcastSk()
            {
                target   = 1,
                dmgOrRec = Rec,
            };

            return(forcast);
        }
Exemplo n.º 9
0
        private ForcastSk preCastSkOp101()
        {
            int damage = param.damage;
            int Volumn = param.rate;

            damage = unstableDamage(damage, Volumn);

            ForcastSk forcast = new ForcastSk()
            {
                target   = -1,
                dmgOrRec = damage,
            };

            return(forcast);
        }
Exemplo n.º 10
0
        private ForcastSk preCastSkOp111()
        {
            BT_Logical war   = owner._war;
            BT_Monster enemy = war.enemy(owner);

            int damage = MathHelper.MidpointRounding(param.rate * Consts.oneHundred * enemy.curAtt);

            ForcastSk forcast = new ForcastSk()
            {
                target   = -1,
                dmgOrRec = damage,
            };

            return(forcast);
        }
Exemplo n.º 11
0
        private ForcastSk preCastSkOp104()
        {
            BT_Logical war   = owner._war;
            BT_Monster enemy = war.enemy(owner);

            int   beforeAtt = enemy.curAtt;
            float cutAtt    = enemy.initAtt * param.rate * Consts.oneHundred;
            int   damage    = param.damage;

            if ((beforeAtt - damage) < cutAtt)
            {
                damage = beforeAtt;
            }

            ForcastSk forcast = new ForcastSk()
            {
                target   = -1,
                dmgOrRec = damage,
            };

            return(forcast);
        }
Exemplo n.º 12
0
        /// <summary>
        /// 怒气技能准备好了,通知UI层
        /// </summary>
        private void AngryIsReady(int skillId, int ClickCnt, ForcastSk forcastsk)
        {
            CMsgAngryReady readyMsg = new CMsgAngryReady(ClickCnt, skillId, forcastsk);

            addMsgToRecorder(readyMsg);
        }