SaleRoute.java 403 B

123456789101112131415161718192021
  1. package pathgame.algorithm;
  2. import java.util.ArrayList;
  3. public class SaleRoute {
  4. private ArrayList<Coord> path;
  5. private int totalCost;
  6. 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. }