SaleRoute.java 443 B

123456789101112131415161718192021
  1. package pathgame.algorithm;
  2. import java.util.ArrayList;
  3. public class SaleRoute {
  4. private final ArrayList<Coord> path;
  5. private final int totalCost;
  6. public SaleRoute(ArrayList<Coord> path, int totalCost) {
  7. this.path = path;
  8. this.totalCost = totalCost;
  9. }
  10. public ArrayList<Coord> getPath() {
  11. return path;
  12. }
  13. public int getTotalCost() {
  14. return totalCost;
  15. }
  16. }