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