Ejemplo n.º 1
0
 public Pathway(Scene endPoint1, Scene endPoint2, int distance, double discoveredProbability)
 {
     uniqueID = pathwayCount++;
     this.endPoint1 = endPoint1;
     this.endPoint2 = endPoint2;
     this.distance = distance;
     this.discoveredProbability = discoveredProbability;
 }
Ejemplo n.º 2
0
 public void AddScene(Scene sourceScene, List<PathwayInfo> pathInfos)
 {
     //if(!scenes.ContainsKey(sourceScene.uniqueID))
         scenes.Add(sourceScene.uniqueID, sourceScene);
     foreach (var info in pathInfos)
     {
         if (!scenes.ContainsKey(info.Scene.uniqueID))
             scenes.Add(info.Scene.uniqueID, info.Scene);
         Pathway path = new Pathway(sourceScene, info.Scene, info.Distance, info.DiscoveredProbability);
         sourceScene.AddPath(path);
         info.Scene.AddPath(path);
         paths.Add(path.uniqueID, path);
     }
 }