Ejemplo n.º 1
0
 public bool CheckOverlap(int coordX, int coordY)
 {
     // Im using whole pixels, instead of the outline rectangles
     // So widths and heights should be represented as 1 less.
     return(GridUtilities.RectOverlap(coordX, coordY, 0, 0,
                                      _coordX, _coordY, _width - 1, _height - 1));
 }
Ejemplo n.º 2
0
 public bool CheckOverlap(int coordX, int coordY, int width, int height, GridLayers layerMask)
 {
     return(GridUtilities.Overlap(_map, coordX, coordY, width, height, (short)layerMask));
 }