private IntVec3 GetLinkTargetCell(IntVec3 cell, RegionLink link) { return(RegionCostCalculator.LinkClosestCell(cell, link)); }
private static IntVec3 RegionLinkCenter(RegionLink link) { return(new IntVec3(RegionCostCalculator.SpanCenterX(link.span), 0, RegionCostCalculator.SpanCenterZ(link.span))); }
private int MinimumRegionLinkDistance(IntVec3 cell, RegionLink link) { IntVec3 intVec = cell - RegionCostCalculator.LinkClosestCell(cell, link); return(this.OctileDistance(Math.Abs(intVec.x), Math.Abs(intVec.z))); }
public RegionCostCalculatorWrapper(Map map) { this.map = map; this.regionCostCalculator = new RegionCostCalculator(map); }