示例#1
0
 public IEnumerable<Cell> GetArea(Cell origin, Cell dest)
 {
     DirectionsEnum direction = origin.OrientationTo(dest, true);
     Zone zone = new Zone(ZoneShape, (byte)ZoneSize, direction);
     zone.MinRadius = (byte)ZoneMinSize;
     return zone.GetCells(dest, dest.Map);
 }
示例#2
0
        public string AreaDesc()
        {
            Zone zone = new Zone(ZoneShape, (byte)ZoneSize);
            zone.MinRadius = (byte)ZoneMinSize;
            return string.Format("{0} ({1} cells)", zone.Shape.GetType().Name, zone.Surface);

        }