Package worldBuilder
Class TradeRoute
- java.lang.Object
-
- worldBuilder.TradeRoute
-
public class TradeRoute extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description TradeRoute(int[] steps, int numsteps, double cost)
create a Route where the path and cost are knownTradeRoute(Journey one, Journey other)
create a new TradeRoute between two outgoing paths
-
-
-
Constructor Detail
-
TradeRoute
public TradeRoute(Journey one, Journey other)
create a new TradeRoute between two outgoing paths- Parameters:
one
- the path that tried to expandother
- the (already claimed) neighbor it encountered
-
TradeRoute
public TradeRoute(int[] steps, int numsteps, double cost)
create a Route where the path and cost are known- Parameters:
steps
- array of stepsnumsteps
- number of steps in arraycost
- cost (in days) of this route
-
-