public int findFromOpenList(Node.Position myPos) { for (int i = 0; i < m_openList.Count; i++) { Node.Position currentTest = m_openList[i].getPosition(); if (currentTest.isEqual(currentTest, myPos)) { return(i); } } return(-1); }
public bool isInClosedList(Node.Position myPos) { for (int i = 0; i < m_closedList.Count; i++) { Node.Position currentTest = m_closedList[i].getPosition(); if (currentTest.isEqual(currentTest, myPos)) { return(true); } } return(false); }