Package | Description |
---|---|
peril.ai | |
peril.ai.api |
Modifier and Type | Field and Description |
---|---|
java.util.List<Country> |
AIOperation.select
|
Modifier and Type | Method and Description |
---|---|
void |
AIController.createBlockade(Country source,
Country neighbour)
|
void |
AIController.forEachEnemyNeighbour(Country country,
java.util.function.Consumer<Country> task)
|
boolean |
AIController.hasOpenLinkBetween(Country country,
Country neighbour)
Retrieves whether the link between two
Country s is open. |
boolean |
AIController.isPathBetween(Country source,
Country destination)
A pre-check for
AIController.fortify() , this retrieves whether or not
there is a valid path between two Country s owned by the same
Player . |
boolean |
AIController.select(Country country)
Selects the
Country from the current state. |
boolean |
AIController.tradeUnit(Country country,
Unit unit)
|
Modifier and Type | Method and Description |
---|---|
void |
AIController.forEachCountry(java.util.function.Consumer<Country> task)
|
void |
AIController.forEachEnemyNeighbour(Country country,
java.util.function.Consumer<Country> task)
|
void |
AIController.forEachFriendlyCountry(Player player,
java.util.function.Consumer<Country> task)
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<? extends Country> |
Continent.getCountries()
|
java.util.Set<? extends Country> |
Board.getCountries()
|
java.util.Set<? extends Country> |
Country.getNeighbours()
Retrieves the
Set of neighbours of this Country . |