| Modifier and Type | Interface | Description |
|---|---|---|
interface |
IAIPlayer |
Player interface defining an artificial player.
|
interface |
IHumanPlayer |
This player represents a human player.
|
| Modifier and Type | Method | Description |
|---|---|---|
IPlayer |
PlayerList.get(int index) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Iterator<IPlayer> |
PlayerList.iterator() |
|
java.util.stream.Stream<IPlayer> |
PlayerList.stream() |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
PlayerList.add(IPlayer player) |
|
IBuildingAuction |
ModelFactory.createBuildingAuction(java.time.LocalDateTime auctionDate,
int startingBid,
IPlayer owner,
IBuilding building) |
Retrieve an auction instance for the
building owned by owner, which
will be auctioned on auctionDate starting with startingBid |
IShipAuction |
ModelFactory.createShipAuction(java.time.LocalDateTime auctionDate,
int startingBid,
IPlayer owner,
IShip ship) |
Retrieve an auction instance for the
ship owned by owner, which
will be auctioned on auctionDate starting with startingBid |
| Modifier and Type | Method | Description |
|---|---|---|
IPlayer |
IBuilding.getOwner() |
Retrieve the owner of the trading office
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ITradingOffice> |
TradingOfficeList.findOwnedBy(IPlayer player) |
Find all trading offices of a player.
|
void |
IBuilding.setOwner(IPlayer newOwner) |
Some buildings may be sold to other players.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
TradingOffice.setOwner(IPlayer newOwner) |
| Constructor | Description |
|---|---|
Storage(IPlayer owner,
ICity city) |
|
TradingOffice(IPlayer player,
ICity city,
int value,
IStorage storage,
IBalanceSheet lastWeek,
IBalanceSheet thisWeek) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IPlayer> |
ICity.getResidentPlayers() |
Retrieve all the players that have a office in this city.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
ICity.addBuildingPermission(IPlayer player) |
Add the bulidng permission for that player in the city.
|
int |
ICity.getContribution(IPlayer player,
IWare ware) |
Check out what the player contributed to the ware
|
int |
IBuildingProduction.getProduction(IWare ware,
ICity city,
IPlayer player) |
Compute the total amount of ware the player produces in the city within a week
|
IReputation |
ICity.getReputation(IPlayer player) |
Retrieve the reputation of the player in the city
|
boolean |
ICity.hasBuildingPermission(IPlayer player) |
The player has building permission in this city.
|
void |
ICity.moveIn(IPlayer player,
IReputation reputaion,
Contributions contributions) |
Add a player to the city
|
| Modifier and Type | Method | Description |
|---|---|---|
<T extends IBuilding> |
ICity.findBuilding(java.lang.Class<T> buildingClass,
java.util.Optional<IPlayer> owner) |
Find all matching buildings in a city.
|
| Modifier and Type | Method | Description |
|---|---|---|
IPlayer |
IAcceptedAldermanTask.getPlayer() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
IAldermanOffice.addTask(IAldermanTask task,
java.time.LocalDateTime limit,
IPlayer player) |
Add a new task that is currently worked on.
|
void |
AldermanTaskPlayerMap.assignTask(IPlayer player,
IAldermanTask task) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
AldermanOffice.addTask(IAldermanTask task,
java.time.LocalDateTime limit,
IPlayer player) |
| Constructor | Description |
|---|---|
AcceptedAldermanTask(IAldermanTask task,
java.time.LocalDateTime deadline,
IPlayer player) |
| Modifier and Type | Method | Description |
|---|---|---|
IPlayer |
IAuction.getBiddingPlayer() |
Retrieve the currently bidding player.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IPlayer> |
IGuild.getMembers() |
Retrieve all members of the guild.
|
java.util.Optional<IPlayer> |
IAuction.getOwner() |
Get the owner that is auctioning.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
IMediterreanMap.addTradeAgreement(IPlayer player,
ITradeAgreement agreement) |
Add a trade agreement for a player.
|
boolean |
IMediterreanMap.exploreSpot(IPlayer player,
javafx.geometry.Point2D coordinates) |
Player explored a spot and may have detected a trading spot.
|
java.util.List<javafx.geometry.Point2D> |
IMediterreanMap.getExploredLocations(IPlayer player) |
Retrieve a list of all discovered location for a player.
|
java.util.List<ITradeAgreement> |
IMediterreanMap.getTradeAgreements(IPlayer player) |
Retreive the trade agreements for a specific player.
|
void |
IGuild.join(IPlayer player) |
A player joins the guild.
|
void |
IAuction.setBiddingPlayer(IPlayer player) |
Set the currently bidding player.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
MediterreanSeaMap.addTradeAgreement(IPlayer player,
ITradeAgreement agreement) |
|
boolean |
MediterreanSeaMap.exploreSpot(IPlayer player,
javafx.geometry.Point2D coordinates) |
|
java.util.List<javafx.geometry.Point2D> |
MediterreanSeaMap.getExploredLocations(IPlayer player) |
|
java.util.List<ITradeAgreement> |
MediterreanSeaMap.getTradeAgreements(IPlayer player) |
|
void |
Guild.join(IPlayer player) |
| Constructor | Description |
|---|---|
AbstractAuction(java.time.LocalDateTime auctionDate,
int startingBid,
IPlayer owner) |
Create an auction object with a specific owner.
|
BuildingAuction(java.time.LocalDateTime auctionDate,
int startingBid,
IPlayer owner,
IBuilding auctionedBuilding) |
Create an auction for a building.
|
ShipAuction(java.time.LocalDateTime auctionDate,
int startingBid,
IPlayer owner,
IShip auctionedShip) |
Create a ship auction together with it's owner.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IPlayer> |
City.getResidentPlayers() |
|
javafx.beans.property.MapProperty<IPerson,IPlayer> |
TavernState.talkingToProperty() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
City.addBuildingPermission(IPlayer player) |
|
int |
City.getContribution(IPlayer player,
IWare ware) |
|
IReputation |
City.getReputation(IPlayer player) |
|
boolean |
City.hasBuildingPermission(IPlayer player) |
|
boolean |
TavernState.isTalkingToOtherPlayer(ITavernPerson person,
IPlayer player) |
|
void |
City.moveIn(IPlayer player,
IReputation reputaion,
Contributions contributions) |
| Modifier and Type | Method | Description |
|---|---|---|
<T extends IBuilding> |
City.findBuilding(java.lang.Class<T> buildingClass,
java.util.Optional<IPlayer> owner) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
AIPlayer |
Implementation of an artificial intelligence player.
|
class |
HumanPlayer |
|
class |
Player |
| Modifier and Type | Method | Description |
|---|---|---|
void |
Company.setOwner(IPlayer player) |
| Constructor | Description |
|---|---|
BalanceSheet(ICity city,
IPlayer player) |
Initialize a blank sheet
|
| Modifier and Type | Method | Description |
|---|---|---|
com.google.common.collect.Multimap<IPlayer,ICity> |
IMap.getTownsInFounding() |
Retrieve the cities that are currently being founded by players.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ICity> |
IMap.getCities(IPlayer player) |
Retrieve an unmodifiable list of all the cities in the map also including the once only visible to the player.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ICity> |
GameMap.getCities(IPlayer player) |
| Modifier and Type | Method | Description |
|---|---|---|
IPlayer |
IConcurrent.getClientPlayer() |
Get the player that is the client
|
IPlayer |
IConcurrent.getConcurrentPlayer() |
Retrieve the concurrent player
|
IPlayer |
INonFreeSeaPirate.getHiringPlayer() |
Player who hired the pirate
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<MapSegmentedImage> |
IInformant.getMapSectionPart(IPlayer player) |
The informant may also hold a map part for the player.
|
int |
IInformant.getPrice(IPlayer player) |
Get the price of the information.
|
void |
IConcurrent.setClientPlayer(IPlayer clientPlayer) |
Set the player instance accepting the contract
|
void |
IConcurrent.setConcurrentPlayer(IPlayer concurrentPlayer) |
Set the player, who is the concurrent
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<MapSegmentedImage> |
InformantState.getMapSectionPart(IPlayer player) |
|
java.util.List<ISeaPirate> |
SeaPiratesState.getNonFreePirates(IPlayer player) |
Retrieve immutable list of non free pirates for the player
|
int |
InformantState.getPrice(IPlayer player) |
| Constructor | Description |
|---|---|
NonFreeSeaPirate(IPlayer hiringPlayer,
java.time.LocalDateTime hireDate,
ICity nearCity) |
Create a non free pirate.
|
| Constructor | Description |
|---|---|
Reputation(ICity city,
IPlayer player) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IPlayer> |
IBlockade.getPlayersWithRequestedShips() |
Retrieve a list of players which have requested a ship
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
IBlockade.addShips(IPlayer player,
java.util.List<IShip> shipList) |
Add a number of ships for a player to the blockade.
|
int |
IBlockade.getNumberOfRequestedShips(IPlayer player) |
Retrieve the number of ships that are requested.
|
java.util.List<IShip> |
IBlockade.getShips(IPlayer player) |
Retrieve the ships of a certain player.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IPlayer> |
Blockade.getPlayersWithRequestedShips() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
Blockade.addShips(IPlayer player,
java.util.List<IShip> shipList) |
|
int |
Blockade.getNumberOfRequestedShips(IPlayer player) |
|
java.util.List<IShip> |
Blockade.getShips(IPlayer player) |
|
void |
Blockade.requestShip(IPlayer player,
int number) |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<IPlayer,java.lang.Integer> |
IConvoy.getCapacityPerOwner() |
Collect the convoys capacity per player who has ships
in the convoy.
|
java.util.List<IPlayer> |
IConvoy.getPlayers() |
Get all players who have a ship in the convoy.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IShip> |
IConvoy.getShips(IPlayer player) |
Get all the ships in the convoi that belong to a player.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<IPlayer,java.lang.Integer> |
Convoy.getCapacityPerOwner() |
|
java.util.List<IPlayer> |
Convoy.getPlayers() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IShip> |
Convoy.getShips(IPlayer player) |
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.