Exemplo n.º 1
0
 /// <summary>
 /// 数据拷贝操作
 /// </summary>
 /// <param name="defenceinfo"></param>
 public void Copy(DefenceInfo defenceinfo)
 {
     this.m_Defencer     = defenceinfo.m_Defencer;
     this.m_Hit          = defenceinfo.m_Hit;
     this.m_nImpactCount = defenceinfo.m_nImpactCount;
     for (int i = 0; i < this.m_nImpactCount; ++i)
     {
         this.m_Impact[i] = defenceinfo.m_Impact[i];
     }
     this.m_RemainHP = defenceinfo.m_RemainHP;
 }
Exemplo n.º 2
0
 /// <summary>
 ///  清理操作
 /// </summary>
 public void CleanUp()
 {
     m_Attacker     = 0;
     m_nImpactCount = 0;
     m_SpellID      = int.MaxValue;
     m_nCount       = 0;
     for (int i = 0; i < GlobalMembers.MAX_IMPACT_NUMBER; ++i)
     {
         m_Impact[i] = int.MaxValue;
     }
     for (int i = 0; i < GlobalMembers.MAX_TEAM_CELL_COUNT; ++i)
     {
         if (m_DefenceInfo[i] == null)
         {
             m_DefenceInfo[i] = new DefenceInfo();
         }
         m_DefenceInfo[i].CleanUp();
     }
 }