Esempio n. 1
0
        public override bool CanCollide(IPhysicsBody thisBody, IPhysicsBody otherBody, Ignorer other)
        {
            GroupIgnorer value = other as GroupIgnorer;

            return
                (value == null ||
                 CanCollideInternal(value));
        }
Esempio n. 2
0
 public bool CanCollide(GroupIgnorer other)
 {
     if (other == null)
     {
         throw new ArgumentNullException("other");
     }
     return(CanCollideInternal(other));
 }
Esempio n. 3
0
 private bool CanCollideInternal(GroupIgnorer other)
 {
     return(!GroupCollection.Intersect(groups, other.groups));
 }
Esempio n. 4
0
 protected GroupIgnorer(GroupIgnorer copy)
     : base(copy)
 {
     this.groups = new GroupCollection(copy.groups);
 }