Example #1
0
 public abstract bool Collide(Hitbox hitbox);
Example #2
0
 public override bool Collide(Hitbox hitbox)
 {
     return(Collide(hitbox.Bounds));
 }
Example #3
0
 public bool Intersects(Hitbox hitbox)
 {
     return(AbsoluteLeft < hitbox.AbsoluteRight && AbsoluteRight > hitbox.AbsoluteLeft && AbsoluteBottom > hitbox.AbsoluteTop && AbsoluteTop < hitbox.AbsoluteBottom);
 }
Example #4
0
 public override bool Collide(Hitbox hitbox)
 {
     return(hitbox.Collide(this));
 }
Example #5
0
 public override bool Collide(Hitbox hitbox)
 {
     return(Intersects(hitbox));
 }