Beispiel #1
0
        public bool HasFlag(Constants.Flag flag)
        {
            if (((int)Flags & (int)flag) == (int)flag)
            {
                return(true);
            }

            return(false);
        }
Beispiel #2
0
 /// <summary>
 /// Check if the specified flag is set. Wrapper for Flags.
 /// </summary>
 /// <param name="flag"></param>
 /// <returns></returns>
 public bool HasFlag(Constants.Flag flag)
 {
     return((Flags & (int)flag) == (int)flag);
 }
Beispiel #3
0
 /// <summary>
 /// Check if the specified flag is set. Wrapper for Flags.
 /// </summary>
 /// <param name="flag"></param>
 /// <returns></returns>
 public bool HasFlag(Constants.Flag flag)
 {
     return(client.Player.HasFlag(flag));
 }