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); }
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); }