Package worldBuilder
Class Journey
- java.lang.Object
-
- worldBuilder.Journey
-
public class Journey extends java.lang.ObjectThese nodes are used to define territory and trade routes. - A border is the line, between two cities, where the cost of travel (from each) is equal. - A trade route is the lowest cost path between them. We identify these by expanding journeys out from each city until they meet journeys from another city.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classJourney.NextStepsthis is a (lowest) cost-ordered queue of possible next steps in our outward journeys.
-
-
-
Field Detail
-
index
public int index
-
city
public int city
-
cost
public double cost
-
route
public Journey route
-
-
Constructor Detail
-
Journey
public Journey(int index, int fromCity, Journey fromPoint)create a node for the next step in an outward journey- Parameters:
index- ... corresponding MeshPoint indexfromCity- ... large city from which we are travelingfromPoint- ... previous point in our journey
-
-