Beispiel #1
0
 private IntVec3 GetLinkTargetCell(IntVec3 cell, RegionLink link)
 {
     return(RegionCostCalculator.LinkClosestCell(cell, link));
 }
Beispiel #2
0
 private static IntVec3 RegionLinkCenter(RegionLink link)
 {
     return(new IntVec3(RegionCostCalculator.SpanCenterX(link.span), 0, RegionCostCalculator.SpanCenterZ(link.span)));
 }
Beispiel #3
0
        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)));
        }
Beispiel #4
0
 public RegionCostCalculatorWrapper(Map map)
 {
     this.map = map;
     this.regionCostCalculator = new RegionCostCalculator(map);
 }