Beispiel #1
0
        protected override bool CanCollide(Body thisBody, Body otherBody, Ignorer other)
        {
            GroupIgnorer value = other as GroupIgnorer;

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