Пример #1
0
 /// <summary>
 /// A.K.A HasAlphaOn(x,y).
 /// Lets each actor implement his own collisions using some square calculations.
 /// As a default, implements a square detection.
 /// </summary>
 /// <param name="x">X coordinate</param>
 /// <param name="y">Y coordinate</param>
 /// <returns>true if the actor can collide on x, y coordinates</returns>
 public bool IntersectsOn(float x, float y)
 {
     return(IntersectStrategy.IntersectsOn(x, y));
 }
Пример #2
0
 public bool IntersectsActor(IActor actor)
 {
     return(IntersectStrategy.IntersectsActor(actor));
 }
Пример #3
0
 public bool IntersectsWithin(float x, float width, float y, float height)
 {
     return(IntersectStrategy.IntersectsWithin(x, width, y, height));
 }