HexMapLibrary
Public Member Functions | Properties | Private Member Functions | List of all members
Wunderwunsch.HexMapLibrary.HexMap Class Reference
Inheritance diagram for Wunderwunsch.HexMapLibrary.HexMap:
Wunderwunsch.HexMapLibrary.Generic.HexMapT< T > Wunderwunsch.HexMapLibrary.Generic.HexMapTE< T, E > Wunderwunsch.HexMapLibrary.Generic.HexMapTEC< T, E, C >

Public Member Functions

 HexMap (Dictionary< Vector3Int, int > tileIndexByPosition, CoordinateWrapper coordinateWrapper=null)
 

Properties

Dictionary< Vector3Int, int > TileIndexByPosition [get, protected set]
 Dictionary of the indices of tiles by their position More...
 
Vector3Int [] TilePositions [get, protected set]
 Array of all tile positions ordered by their index; More...
 
int TileCount [get]
 Total amount of tiles the map contains. Readonly More...
 
TilePositionProvider GetTilePosition [get, protected set]
 contains methods to retrieve exactly one TilePosition More...
 
TilePositionsProvider GetTilePositions [get, protected set]
 contains methods to retrieve multiple Tiles More...
 
MapDistanceCalculatorTile GetTileDistance [get, protected set]
 
Dictionary< Vector3Int, int > EdgeIndexByPosition [get, protected set]
 Dictionary of the indices of edges by their position More...
 
Vector3Int [] EdgePositions [get, protected set]
 Array of all edge positions ordered by their index; More...
 
int EdgeCount [get]
 Total amount of edges the map contains. Readonly More...
 
EdgePositionProvider GetEdgePosition [get, protected set]
 contains methods to retrieve exactly one EdgePosition More...
 
EdgePositionsProvider GetEdgePositions [get, protected set]
 contains methods to retrieve multiple Edges More...
 
MapDistanceCalculatorEdges GetEdgeDistance [get, protected set]
 
Dictionary< Vector3Int, int > CornerIndexByPosition [get, protected set]
 Dictionary of the indices of edges by their position More...
 
Vector3Int [] CornerPositions [get, protected set]
 Array of all corner positions ordered by their index; More...
 
int CornerCount [get]
 Total amount of edges the map contains. Readonly More...
 
CornerPositionProvider GetCornerPosition [get, protected set]
 contains methods to retrieve exactly one CornerPosition More...
 
CornersPositionsProvider GetCornerPositions [get, protected set]
 contains methods to retrieve multiple Corners More...
 
MapDistanceCalculatorCorners GetCornerDistance [get, protected set]
 
MapSizeData MapSizeData [get, protected set]
 
CoordinateWrapper CoordinateWrapper [get, protected set]
 

Private Member Functions

void CreateEdgeIndex ()
 
void CreateCornerIndex ()
 

Property Documentation

◆ TileIndexByPosition

Dictionary<Vector3Int, int> Wunderwunsch.HexMapLibrary.HexMap.TileIndexByPosition
getprotected set

Dictionary of the indices of tiles by their position

◆ TilePositions

Vector3Int [] Wunderwunsch.HexMapLibrary.HexMap.TilePositions
getprotected set

Array of all tile positions ordered by their index;

◆ TileCount

int Wunderwunsch.HexMapLibrary.HexMap.TileCount
get

Total amount of tiles the map contains. Readonly

◆ GetTilePosition

TilePositionProvider Wunderwunsch.HexMapLibrary.HexMap.GetTilePosition
getprotected set

contains methods to retrieve exactly one TilePosition

◆ GetTilePositions

TilePositionsProvider Wunderwunsch.HexMapLibrary.HexMap.GetTilePositions
getprotected set

contains methods to retrieve multiple Tiles

◆ EdgeIndexByPosition

Dictionary<Vector3Int, int> Wunderwunsch.HexMapLibrary.HexMap.EdgeIndexByPosition
getprotected set

Dictionary of the indices of edges by their position

◆ EdgePositions

Vector3Int [] Wunderwunsch.HexMapLibrary.HexMap.EdgePositions
getprotected set

Array of all edge positions ordered by their index;

◆ EdgeCount

int Wunderwunsch.HexMapLibrary.HexMap.EdgeCount
get

Total amount of edges the map contains. Readonly

◆ GetEdgePosition

EdgePositionProvider Wunderwunsch.HexMapLibrary.HexMap.GetEdgePosition
getprotected set

contains methods to retrieve exactly one EdgePosition

◆ GetEdgePositions

EdgePositionsProvider Wunderwunsch.HexMapLibrary.HexMap.GetEdgePositions
getprotected set

contains methods to retrieve multiple Edges

◆ CornerIndexByPosition

Dictionary<Vector3Int, int> Wunderwunsch.HexMapLibrary.HexMap.CornerIndexByPosition
getprotected set

Dictionary of the indices of edges by their position

◆ CornerPositions

Vector3Int [] Wunderwunsch.HexMapLibrary.HexMap.CornerPositions
getprotected set

Array of all corner positions ordered by their index;

◆ CornerCount

int Wunderwunsch.HexMapLibrary.HexMap.CornerCount
get

Total amount of edges the map contains. Readonly

◆ GetCornerPosition

CornerPositionProvider Wunderwunsch.HexMapLibrary.HexMap.GetCornerPosition
getprotected set

contains methods to retrieve exactly one CornerPosition

◆ GetCornerPositions

CornersPositionsProvider Wunderwunsch.HexMapLibrary.HexMap.GetCornerPositions
getprotected set

contains methods to retrieve multiple Corners