I think its done
This commit is contained in:
@@ -24,6 +24,6 @@ namespace ConsoleApp.Sim
|
||||
public static List<Cell> GetCoveredCells(
|
||||
ISquareMap squareMap,
|
||||
Cell centerCell,
|
||||
int detectorRadius) => squareMap.GetRange(centerCell, detectorRadius);
|
||||
int detectorRadius) => squareMap.GetRange(centerCell, detectorRadius * 2 - detectorRadius%2);
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,6 @@ namespace ConsoleApp.Sim
|
||||
int TurnRadius { get; }
|
||||
int DetectorRadius { get;}
|
||||
Coordinate2D CurrentHexCell { get; set; }
|
||||
ICell CurrentSquareCell { get; set; }
|
||||
Cell CurrentSquareCell { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -11,7 +11,7 @@ namespace ConsoleApp.Sim
|
||||
public int TurnRadius { get; }
|
||||
public int DetectorRadius { get;}
|
||||
public HexCore.Coordinate2D CurrentHexCell { get; set; }
|
||||
public ICell CurrentSquareCell { get; set; }
|
||||
public Cell CurrentSquareCell { get; set; }
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"Length": 1,
|
||||
"Width": 1,
|
||||
"DetectorRadius": 1
|
||||
"DetectorRadius": 2
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user