HexMapLibrary icon indicating copy to clipboard operation
HexMapLibrary copied to clipboard

GetTileDistance, GetEdgeDistance, GetCornerDistance not initialized for HexMap

Open AurelWu opened this issue 7 years ago • 1 comments

as title states, they should be initialized in constructor but that has been forgotten.

AurelWu avatar Sep 22 '18 07:09 AurelWu

For those that want to fix this, add this to the constructor of HexMap:

            GetTileDistance = new MapDistanceCalculatorTile(coordinateWrapper);
            GetEdgeDistance = new MapDistanceCalculatorEdges(coordinateWrapper);
            GetCornerDistance = new MapDistanceCalculatorCorners(coordinateWrapper);

mrshanepaul avatar Oct 04 '19 04:10 mrshanepaul