Exemplo n.º 1
0
        /// <summary>
        /// 获取更新的值.
        /// </summary>
        /// <param name="old"></param>
        /// <returns></returns>
        protected Variant GetChange(APCProperty old)
        {
            Variant v = new Variant();
            if (ShengMing != old.ShengMing) v.Add("ShengMing", ShengMing);
            if (MoFa != old.MoFa) v.Add("MoFa", MoFa);
            if (GongJi != old.GongJi) v.Add("GongJi", GongJi);
            if (MoFaGongJi != old.MoFaGongJi) v.Add("MoFaGongJi", MoFaGongJi);
            if (FangYu != old.FangYu) v.Add("FangYu", FangYu);
            if (MoFaFangYu != old.MoFaFangYu) v.Add("MoFaFangYu", MoFaFangYu);

            if (WuLiXiShou != old.WuLiXiShou) v.Add("WuLiXiShou", WuLiXiShou);
            if (MoFaXiShou != old.MoFaXiShou) v.Add("MoFaXiShou", MoFaXiShou);
            if (FanJiLv != old.FanJiLv) v.Add("FanJiLv", FanJiLv);
            if (HeJiLv != old.HeJiLv) v.Add("HeJiLv", HeJiLv);
            if (TaoPaoLv != old.TaoPaoLv) v.Add("TaoPaoLv", TaoPaoLv);
            if (BaoJiShangHai != old.BaoJiShangHai) v.Add("BaoJiShangHai", BaoJiShangHai);
            if (HeJiShangHai != old.HeJiShangHai) v.Add("HeJiShangHai", HeJiShangHai);

            if (SuDu != old.SuDu) v.Add("SuDu", SuDu);
            if (BaoJi != old.BaoJi) v.Add("BaoJi", BaoJi);
            if (MingZhong != old.MingZhong) v.Add("MingZhong", MingZhong);
            if (ShanBi != old.ShanBi) v.Add("ShanBi", ShanBi);

            if (BaoJiLv != old.BaoJiLv) v.Add("BaoJiLv", BaoJiLv);
            if (MingZhongLv != old.MingZhongLv) v.Add("MingZhongLv", MingZhongLv);
            if (ShanBiLv != old.ShanBiLv) v.Add("ShanBiLv", ShanBiLv);
            return v;
        }
Exemplo n.º 2
0
 /// <summary>
 /// 减成
 /// </summary>
 /// <param name="v"></param>
 /// <returns></returns>
 public virtual void Subtract(APCProperty v)
 {
     if (v != null)
     {
         ShengMing -= v.ShengMing;
         MoFa -= v.MoFa;
         GongJi -= v.GongJi;
         MoFaGongJi -= v.MoFaGongJi;
         FangYu -= v.FangYu;
         MoFaFangYu -= v.MoFaFangYu;
         WuLiXiShou -= v.WuLiXiShou;
         MoFaXiShou -= v.MoFaXiShou;
         FanJiLv -= v.FanJiLv;
         HeJiLv -= v.HeJiLv;
         TaoPaoLv -= v.TaoPaoLv;
         BaoJiShangHai -= v.BaoJiShangHai;
         HeJiShangHai -= v.HeJiShangHai;
         SuDu -= v.SuDu;
         BaoJi -= v.BaoJi;
         MingZhong -= v.MingZhong;
         ShanBi -= v.ShanBi;
         BaoJiLv -= v.BaoJiLv;
         MingZhongLv -= v.MingZhongLv;
         ShanBiLv -= v.ShanBiLv;
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// 减成
 /// </summary>
 /// <param name="v"></param>
 /// <returns></returns>
 public override void Subtract(APCProperty v)
 {
     base.Subtract(v);
     PlayerProperty p = v as PlayerProperty;
     if (p != null)
     {
         LiLiang -= p.LiLiang;
         TiZhi -= p.TiZhi;
         ZhiLi -= p.ZhiLi;
         JingShen -= p.JingShen;
         KangShangHai -= p.KangShangHai;
     }
 }
Exemplo n.º 4
0
 /// <summary>
 /// 加成.
 /// </summary>
 /// <param name="v"></param>
 /// <returns></returns>
 public virtual void Add(APCProperty v)
 {
     if (v != null)
     {
         ShengMing += v.ShengMing;
         MoFa += v.MoFa;
         GongJi += v.GongJi;
         MoFaGongJi += v.MoFaGongJi;
         FangYu += v.FangYu;
         MoFaFangYu += v.MoFaFangYu;
         WuLiXiShou += v.WuLiXiShou;
         MoFaXiShou += v.MoFaXiShou;
         FanJiLv += v.FanJiLv;
         HeJiLv += v.HeJiLv;
         TaoPaoLv += v.TaoPaoLv;
         BaoJiShangHai += v.BaoJiShangHai;
         HeJiShangHai += v.HeJiShangHai;
         SuDu += v.SuDu;
         BaoJi += v.BaoJi;
         MingZhong += v.MingZhong;
         ShanBi += v.ShanBi;
         BaoJiLv += v.BaoJiLv;
         MingZhongLv += v.MingZhongLv;
         ShanBiLv += v.ShanBiLv;
     }
 }
Exemplo n.º 5
0
 /// <summary>
 /// 加成.
 /// </summary>
 /// <param name="v"></param>
 /// <returns></returns>
 public override void Add(APCProperty v)
 {
     base.Add(v);
     PlayerProperty p = v as PlayerProperty;
     if (p != null)
     {
         LiLiang += p.LiLiang;
         TiZhi += p.TiZhi;
         ZhiLi += p.ZhiLi;
         JingShen += p.JingShen;
         KangShangHai += p.KangShangHai;
     }
 }