Beispiel #1
0
 private static bool HasThisFlag(this ProtectedStats setOfFlags, ProtectedStats flag)
 {
     return((setOfFlags & flag) == flag);
 }
Beispiel #2
0
 public static bool Damage(this ProtectedStats flags)
 {
     return(flags.HasThisFlag(ProtectedStats.Damage));
 }
Beispiel #3
0
 public static bool Power(this ProtectedStats flags)
 {
     return(flags.HasThisFlag(ProtectedStats.Power));
 }
Beispiel #4
0
 public static bool Attack(this ProtectedStats flags)
 {
     return(flags.HasThisFlag(ProtectedStats.Attack));
 }