package Region import NoWurst import Vectors import Annotations public function vec2.isInRegion(region whichRegion) returns boolean return IsPointInRegion(whichRegion, this.x, this.y) public function unit.isInRegion(region whichRegion) returns boolean return IsUnitInRegion(whichRegion, this) public function region.addRect(rect rct) RegionAddRect(this, rct) public function region.clearRect(rect rct) RegionClearRect(this, rct) public function region.addCell(vec2 point) RegionAddCell(this, point.x, point.y) public function region.clearCell(vec2 point) RegionClearCell(this, point.x, point.y) public function region.destr() RemoveRegion(this) @deprecated("Use region.addCell(vec2) to avoid location handles.") public function region.regionAddCellAtLoc(location whichLocation) RegionAddCellAtLoc(this, whichLocation) @deprecated("Use region.clearCell(vec2) to avoid location handles.") public function region.regionClearCellAtLoc(location whichLocation) RegionClearCellAtLoc(this, whichLocation) @deprecated("Use vec2.isInRegion(region) to avoid location handles.") public function region.isLocationInRegion(location whichLocation) returns boolean return IsLocationInRegion(this, whichLocation)