Beispiel #1
0
 public IEnumerable <SpaceTimeNode> GetNeighbours(SpaceTimeNode node)
 {
     foreach (var n in Graph.AdjacentVertices(Graph.GetTileAtPos(node.X, node.Y)))
     {
         yield return(new SpaceTimeNode(n.X, n.Y, node.T + 1));
     }
     yield return(node.Next());
 }
Beispiel #2
0
 public AbstractTile GetTile(SpaceTimeNode node) => Graph.GetTileAtPos(node.X, node.Y);