public class CountryRoute
extends java.lang.Object
Constructor and Description |
---|
CountryRoute(Country[] countryArray) |
CountryRoute(int[] codeArray,
Country[] countries) |
CountryRoute(java.util.List countries) |
Modifier and Type | Method and Description |
---|---|
CountryRoute |
append(CountryRoute other)
Append the given CountryRoute onto the end of this one and return the result.
|
boolean |
contains(java.lang.Object o)
Return true if this route contains the given object (which should be a Country).
|
int |
costNotCountingPlayer(int player) |
int |
costNotCountingPlayer(int player,
int player2) |
Country |
end() |
Country |
get(int index)
Get a Country out of the route.
|
int |
getArmies()
Get the total count of armies along this route.
|
CountryRoute |
reverse()
Return a route that is the same as this one but in the reverse order.
|
int |
size()
The number of Country's in this route.
|
Country |
start() |
java.lang.String |
toString() |
public CountryRoute(Country[] countryArray)
public CountryRoute(int[] codeArray, Country[] countries)
public CountryRoute(java.util.List countries)
public CountryRoute append(CountryRoute other)
public boolean contains(java.lang.Object o)
public int costNotCountingPlayer(int player)
public int costNotCountingPlayer(int player, int player2)
public Country end()
public Country get(int index)
public int getArmies()
public CountryRoute reverse()
public int size()
public Country start()
public java.lang.String toString()
toString
in class java.lang.Object