Пример #1
0
 private bool IsValidNode(NodeIndex index)
 {
     return(index.x >= 0 && index.x < allNodes.GetLength(1) &&
            index.y >= 0 && index.y < allNodes.GetLength(0));
 }
Пример #2
0
 public void SetEnvironment(Environment newEnvironment, NodeIndex newIndex)
 {
     currentEnvironment = newEnvironment;
     currentNodeIndex   = newIndex;
 }
Пример #3
0
 public bool ContainsWrestler(Wrestler wrestler, NodeIndex nodePosition)
 {
     return(allNodes [nodePosition.y, nodePosition.x].ContainsWrestler(wrestler));
 }