/// <summary> /// Determines if the <see cref="BaseInteractiveObject"/> has a specific behavior flag. /// </summary> /// <param name="behaviorEnum">the flag</param> /// <returns>true if the <see cref="BaseInteractiveObject"/> has the flag; false otherwise</returns> public bool HasBehavior(MobBehaviour behaviorEnum) { return(HasBehavior(behaviorEnum.GetFlag())); }
/// <summary> /// Removes an behavior flag. /// </summary> /// <param name="flag">the <see cref="MobBehaviour"/></param> public void RemoveBehavior(MobBehaviour behaviorEnum) { behavior &= ~behaviorEnum.GetFlag(); }
/// <summary> /// Adds an behavior flag. /// </summary> /// <param name="flag">the flag</param> public void AddBehavior(MobBehaviour behaviorEnum) { behavior |= behaviorEnum.GetFlag(); }