|
@@ -25,7 +25,7 @@ public class DijkstraMagic {
|
|
|
|
|
|
setup(player);
|
|
|
|
|
|
- printWeightMap();
|
|
|
+
|
|
|
|
|
|
for(int i = 0; i < ports.size(); i++) {
|
|
|
doMagic(i, false);
|
|
@@ -35,7 +35,7 @@ public class DijkstraMagic {
|
|
|
doMagic(i, true);
|
|
|
}
|
|
|
|
|
|
- printDijkstraResult();
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public ArrayList<ArrayList<SaleRoute>> getSalesPitch() {
|
|
@@ -161,7 +161,7 @@ public class DijkstraMagic {
|
|
|
weightMap[posX][posY].setPrevOfPath(dir);
|
|
|
}
|
|
|
else {
|
|
|
- weightMap[posX][posY].setPrevBoatPath(0);
|
|
|
+ weightMap[posX][posY].setPrevBoatPath(extraInd);
|
|
|
}
|
|
|
}
|
|
|
|