HexMapLibrary
|
Public Member Functions | |
CornersDataProvider (Dictionary< Vector3Int, Corner< C >> cornersByPosition, CornersPositionsProvider cornersPositionsProvider) | |
List< Corner< C > > | OfTile (Vector3Int tile) |
returns the 6 corners of the input tile More... | |
List< Corner< C > > | OfTile (Tile tile) |
returns the 6 corners of the input tile More... | |
List< Corner< C > > | OfEdge (Vector3Int edge) |
returns the 2 corners adjacent to the input edge coordinate More... | |
List< Corner< C > > | OfEdge (Edge edge) |
returns the 2 corners adjacent to the input edge More... | |
List< Corner< C > > | AdjacentToCorner (Vector3Int corner) |
returns the corners adjacent to the input corner which belong to the map More... | |
List< Corner< C > > | AdjacentToCorner (Corner corner) |
returns the 3 corners adjacent to the input corner which belong to the map More... | |
List< Corner< C > > | WithinDistance (Vector3Int centerCorner, int maxDistance, bool includeCenter) |
returns all corners within distance of the input corner coordinate - optionally including that corner. More... | |
List< Corner< C > > | WithinDistance (Corner< C > centerCorner, int maxDistance, bool includeCenter) |
returns all corners within distance of the input corner - optionally including that corner. More... | |
List< Corner< C > > | AtExactDistance (Vector3Int centerCorner, int distance) |
returns all corners at the exact distance of the input corner coordinate. More... | |
List< Corner< C > > | AtExactDistance (Corner< C > centerCorner, int distance) |
returns all corners at the exact distance of the input corner. More... | |
List< Corner< C > > | PathAlongGrid (Tile< C > originCorner, Tile< C > targetCorner, bool includeOrigin, float horizontalNudgeFromOriginCenter=NudgePositive) |
returns the shortest path of corners from the origin to the target corner - optionally including the origin More... | |
List< Corner< C > > | PathAlongGrid (Vector3Int originCorner, Vector3Int targetCorner, bool includeOrigin, float horizontalNudgeFromOriginCenter=NudgePositive) |
returns the shortest path of corners from the origin coordinate to the target corner coordinate - optionally including the origin More... | |
List< Corner< C > > | TileBorders (IEnumerable< Vector3Int > tiles) |
returns all the border corners of a set of tiles. More... | |
List< Corner< C > > | GetCornersFromCoordinates< Coords > (Coords coordinates) |
returns the corners belonging to the input corner coordinates More... | |
Private Attributes | |
Dictionary< Vector3Int, Corner< C > > | cornersByPosition |
CornersPositionsProvider | cornersPositionsProvider |
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.OfTile | ( | Vector3Int | tile | ) |
returns the 6 corners of the input tile
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.OfTile | ( | Tile | tile | ) |
returns the 6 corners of the input tile
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.OfEdge | ( | Vector3Int | edge | ) |
returns the 2 corners adjacent to the input edge coordinate
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.OfEdge | ( | Edge | edge | ) |
returns the 2 corners adjacent to the input edge
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.AdjacentToCorner | ( | Vector3Int | corner | ) |
returns the corners adjacent to the input corner which belong to the map
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.AdjacentToCorner | ( | Corner | corner | ) |
returns the 3 corners adjacent to the input corner which belong to the map
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.WithinDistance | ( | Vector3Int | centerCorner, |
int | maxDistance, | ||
bool | includeCenter | ||
) |
returns all corners within distance of the input corner coordinate - optionally including that corner.
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.WithinDistance | ( | Corner< C > | centerCorner, |
int | maxDistance, | ||
bool | includeCenter | ||
) |
returns all corners within distance of the input corner - optionally including that corner.
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.AtExactDistance | ( | Vector3Int | centerCorner, |
int | distance | ||
) |
returns all corners at the exact distance of the input corner coordinate.
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.AtExactDistance | ( | Corner< C > | centerCorner, |
int | distance | ||
) |
returns all corners at the exact distance of the input corner.
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.PathAlongGrid | ( | Tile< C > | originCorner, |
Tile< C > | targetCorner, | ||
bool | includeOrigin, | ||
float | horizontalNudgeFromOriginCenter = NudgePositive |
||
) |
returns the shortest path of corners from the origin to the target corner - optionally including the origin
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.PathAlongGrid | ( | Vector3Int | originCorner, |
Vector3Int | targetCorner, | ||
bool | includeOrigin, | ||
float | horizontalNudgeFromOriginCenter = NudgePositive |
||
) |
returns the shortest path of corners from the origin coordinate to the target corner coordinate - optionally including the origin
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.TileBorders | ( | IEnumerable< Vector3Int > | tiles | ) |
returns all the border corners of a set of tiles.
List<Corner<C> > Wunderwunsch.HexMapLibrary.Generic.CornersDataProvider< C >.GetCornersFromCoordinates< Coords > | ( | Coords | coordinates | ) |
returns the corners belonging to the input corner coordinates
Coords | : | ICollection<Vector3Int> |