private void Move(mazeDirection direction) { mazeCellEdge edge = currentCell.GetEdge(direction); if (edge is mazePassage) { SetLocation(edge.otherCell); } }
public void SetEdge(mazeDirection direction, mazeCellEdge edge) { edges[(int)direction] = edge; initializedEdgeCount += 1; }