Пример #1
0
 public PathFinder(RouteInformation informations)
 {
     levelSize         = MapLoader.LevelDimensions;
     this.informations = informations;
     initializeMap();
     startNode       = Map[informations.StartLocationIndex.I, informations.StartLocationIndex.J];
     startNode.State = NodeState.Open;
     endNode         = Map[informations.EndLocationIndex.I, informations.EndLocationIndex.J];
 }
Пример #2
0
 public PathFinder(RouteInformation informations)
 {
     levelSize = MapLoader.LevelDimensions;
     this.informations = informations;
     initializeMap();
     startNode = Map[informations.StartLocationIndex.I, informations.StartLocationIndex.J];
     startNode.State = NodeState.Open;
     endNode = Map[informations.EndLocationIndex.I, informations.EndLocationIndex.J];
 }