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