public interface AIController
Players.| Modifier and Type | Method and Description | 
|---|---|
void | 
attack()
Performs an attack from the first  
Country to the second
 Country that was selected using select(Country). | 
void | 
clearSelected()
Clears the currently selected  
Country(s) from all the states. | 
void | 
createBlockade(Country source,
              Country neighbour)
 | 
void | 
forEachCountry(java.util.function.Consumer<Country> task)
 | 
void | 
forEachEnemyNeighbour(Country country,
                     java.util.function.Consumer<Country> task)
 | 
void | 
forEachFriendlyCountry(Player player,
                      java.util.function.Consumer<Country> task)
 | 
void | 
fortify()
Fortifies the second  
Country with one unit from the first
 Country to that was selected using
 select(Country). | 
Board | 
getBoard()
Retrieves the  
Board. | 
Player | 
getCurrentPlayer()
Retrieves the current  
Player. | 
java.util.Set<? extends Player> | 
getPlayers()
Retrieves all the  
Players that are currently active in the game. | 
Points | 
getPoints()
Retrieves all the point reward values for actions in the game. 
 | 
Unit | 
getUnitAbove(Unit unit)
 | 
boolean | 
hasOpenLinkBetween(Country country,
                  Country neighbour)
Retrieves whether the link between two  
Countrys is open. | 
boolean | 
isPathBetween(Country source,
             Country destination)
 | 
void | 
reinforce()
Reinforces the  
Country selected using
 select(Country) with one unit. | 
boolean | 
select(Country country)
Selects the  
Country from the current state. | 
boolean | 
tradeUnit(Country country,
         Unit unit)
 | 
void forEachCountry(java.util.function.Consumer<Country> task)
task - Consumer of type Country.void reinforce()
Country selected using
 select(Country) with one unit.void attack()
Country to the second
 Country that was selected using select(Country).
 This method also handles hiding an showing the UI elements of combat.select(Country).void fortify()
Country with one unit from the first
 Country to that was selected using
 select(Country).
 
 select(Country).void forEachFriendlyCountry(Player player, java.util.function.Consumer<Country> task)
player - Playertask - Consumervoid clearSelected()
Country(s) from all the states.void forEachEnemyNeighbour(Country country, java.util.function.Consumer<Country> task)
Consumer task on every Country that is not owned
 by the Player owner of the specified Country and is a
 neighbour of that Country.country - Countrytask - Consumerboolean hasOpenLinkBetween(Country country, Country neighbour)
Countrys is open.java.util.Set<? extends Player> getPlayers()
Players that are currently active in the game.Set of PlayersPoints getPoints()
Points