예제 #1
0
 /// <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()));
 }
예제 #2
0
 /// <summary>
 /// Removes an behavior flag.
 /// </summary>
 /// <param name="flag">the <see cref="MobBehaviour"/></param>
 public void RemoveBehavior(MobBehaviour behaviorEnum)
 {
     behavior &= ~behaviorEnum.GetFlag();
 }
예제 #3
0
 /// <summary>
 /// Adds an behavior flag.
 /// </summary>
 /// <param name="flag">the flag</param>
 public void AddBehavior(MobBehaviour behaviorEnum)
 {
     behavior |= behaviorEnum.GetFlag();
 }