| Constructor | Description |
|---|---|
Blockade(java.time.LocalDateTime assemblyDate,
java.time.LocalDateTime endBlockade) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addShips(IPlayer player,
java.util.List<IShip> shipList) |
Add a number of ships for a player to the blockade.
|
IConvoy |
getBlockadeConvoy() |
Retrieve the blockade convoy
|
int |
getNumberOfRequestedShips(IPlayer player) |
Retrieve the number of ships that are requested.
|
java.util.List<IPlayer> |
getPlayersWithRequestedShips() |
Retrieve a list of players which have requested a ship
|
java.util.List<IShip> |
getShips() |
Retrieve all ships for the blockade.
|
java.util.List<IShip> |
getShips(IPlayer player) |
Retrieve the ships of a certain player.
|
void |
requestShip(IPlayer player,
int number) |
getAssemblyDate, getEndBlockade, getShipsToAuction, setConvoypublic Blockade(java.time.LocalDateTime assemblyDate,
java.time.LocalDateTime endBlockade)
public IConvoy getBlockadeConvoy()
IBlockadegetBlockadeConvoy in interface IBlockadepublic java.util.List<IShip> getShips(IPlayer player)
IBlockadepublic java.util.List<IShip> getShips()
IBlockadepublic void requestShip(IPlayer player, int number)
public int getNumberOfRequestedShips(IPlayer player)
IBlockadegetNumberOfRequestedShips in interface IBlockadeplayer - for whom to retrieve the number of requested shipsplayerpublic java.util.List<IPlayer> getPlayersWithRequestedShips()
IBlockadegetPlayersWithRequestedShips in interface IBlockadeCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.