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