Пример #1
0
 /// <summary>
 /// Sets the specified neigbour as the neighbourNode, and tries to update the corresponding OppositeNeighbourNode to this.
 /// </summary>
 /// <param name="neighbourNode"></param>
 /// <param name="neighbour"></param>
 public void SetNeighbour(IHexagonNetNode <Bubble> neighbourNode, HexagonNetEnums.Neighbours neighbour)
 {
     Neighbours[(int)neighbour] = neighbourNode;
     //if (neighbourNode != null)
     //{
     //    neighbourNode.Neighbours[(int)HexagonNetEnums.GetOppositeNeighbourNode(neighbour)] = this;
     //}
 }
Пример #2
0
 public IHexagonNetNode <Bubble> GetNeighbour(HexagonNetEnums.Neighbours neighbour)
 {
     return(Neighbours[(int)neighbour]);
 }