Created Mine Map and ReactivePlanner
This commit is contained in:
20
ConsoleApp/Sim/DetectionHead.cs
Normal file
20
ConsoleApp/Sim/DetectionHead.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
using System.Collections.Generic;
|
||||
using ConsoleApp.Maps;
|
||||
using HexCore;
|
||||
|
||||
namespace ConsoleApp.Sim
|
||||
{
|
||||
public static class DetectionHead
|
||||
{
|
||||
public static List<Coordinate2D> GetCoveredCells(
|
||||
Graph graph,
|
||||
Coordinate2D centerCoordinate,
|
||||
int detectorRadius,
|
||||
GlobalDirection direction) => graph.GetRange(centerCoordinate, detectorRadius);
|
||||
|
||||
public static List<Cell> GetCoveredCells(
|
||||
ISquareMap squareMap,
|
||||
Cell centerCell,
|
||||
int detectorRadius) => squareMap.GetRange(centerCell, detectorRadius);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user