using System.Collections.Generic; using ConsoleApp.Maps; using HexCore; namespace ConsoleApp.Vehicle { public class DetectionHead { public List GetCoveredCells( Graph graph, Coordinate2D centerCoordinate, int detectorRadius, GlobalDirection direction) => graph.GetRange(centerCoordinate, detectorRadius); public List GetCoveredCells( ISquareMap squareMap, Cell centerCell, int detectorRadius) => squareMap.GetRange(centerCell, detectorRadius); } }