コード例 #1
0
 /// <summary>
 /// Determines if class has special ability.
 /// </summary>
 /// <param name="flags">SpecialAbilityFlags to test.</param>
 /// <returns>True if has special ability.</returns>
 bool HasSpecialAbility(CFGData cfg, SpecialAbilityFlags flags)
 {
     return(((cfg.AbilityFlagsAndSpellPointsBitfield & (byte)flags) == (byte)flags) ? true : false);
 }
コード例 #2
0
 /// <summary>
 /// Determines if class has special ability.
 /// </summary>
 /// <param name="flags">SpecialAbilityFlags to test.</param>
 /// <returns>True if has special ability.</returns>
 bool HasSpecialAbility(CFGData cfg, SpecialAbilityFlags flags)
 {
     return ((cfg.AbilityFlagsAndSpellPointsBitfield & (byte)flags) == (byte)flags) ? true : false;
 }