Exemplo n.º 1
0
 private void PopulateSingleUseValues(Dictionary <string, string> dictValues, string szName, DKability eAbility)
 {
     dictValues.Add(szName, string.Format("{0:N0} ({1:N2} DPS)*{2:N0} ({3:N2} TPS)", DPUdamSub[(int)eAbility], DPUdpsSub[(int)eAbility], DPUthreatSub[(int)eAbility], DPUtpsSub[(int)eAbility]));
 }
 private void PopulateSingleUseValues(Dictionary<string, string> dictValues, string szName, DKability eAbility)
 {
     dictValues.Add(szName, string.Format("{0:N0} ({1:N2} DPS)*{2:N0} ({3:N2} TPS)", DPUdamSub[(int)eAbility], DPUdpsSub[(int)eAbility], DPUthreatSub[(int)eAbility], DPUtpsSub[(int)eAbility]));
 }
Exemplo n.º 3
0
 /// <summary>
 /// Get the first Instance of ability used based on DKAbility Index.
 /// </summary>
 /// <param name="DKAi">Index value for ability from enum DKability</param>
 /// <returns></returns>
 public static AbilityDK_Base GetAbilityOfType(List<AbilityDK_Base> l_Rot,  DKability DKAi)
 {
     if (null != l_Rot)
     {
         foreach (AbilityDK_Base a in l_Rot)
         {
             if (a.AbilityIndex == (int)DKAi)
                 return a;
         }
     }
     return null;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Get the first Instance of ability used based on DKAbility Index.
 /// </summary>
 /// <param name="DKAi">Index value for ability from enum DKability</param>
 /// <returns></returns>
 public AbilityDK_Base GetAbilityOfType(DKability DKAi)
 {
     return GetAbilityOfType(ml_Rot, DKAi);
 }
Exemplo n.º 5
0
 public uint Count(DKability t)
 {
     uint uContains = 0;
     if (null != ml_Rot)
     {
         foreach (AbilityDK_Base ab in ml_Rot)
         {
             if (ab.AbilityIndex == (int)t)
                 uContains++;
         }
     }
     return uContains;
 }
Exemplo n.º 6
0
 public bool Contains(DKability t)
 {
     bool bContains = false;
     if (null != ml_Rot)
     {
         foreach (AbilityDK_Base ab in ml_Rot)
         {
             if (ab.AbilityIndex == (int)t)
                 bContains = true;
         }
     }
     return bContains;
 }