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