internal void Initialize(int id, int edge_count) { Id = id; EdgeCount = edge_count; Tiles = new HexSphereTile[edge_count]; Corners = new HexSphereTileCorner[edge_count]; Edges = new Edge[edge_count]; }
internal int GetTilePosition(HexSphereTile n) { for (int i = 0; i < EdgeCount; i++) { if (Tiles[i] == n) { return(i); } } return(-1); }
internal int GetTilePosition(HexSphereTile t) { for (int i = 0; i < 3; i++) { if (Tiles[i] == t) { return(i); } } return(-1); }