Exemple #1
0
 protected bool Equals(Region other)
 {
     return Equals(block, other.block) && a == other.a && b == other.b;
 }
Exemple #2
0
 public bool Intersects(Region other)
 {
     return other.b >= a && b >= other.a;
 }
Exemple #3
0
 // IMPORTANT: CALL MERGEREGIONS AFTER
 public void freeRegion(Region r)
 {
     freeSpace.Add(r);
     reportFreed(r.length);
 }
Exemple #4
0
 private void deleteRegion(Region region)
 {
     // HELP
 }
Exemple #5
0
 IEnumerable<Region> hitscanRegion(Region r)
 {
     return freeSpace.Where(x => x.Intersects(r));
 }