| Modifier and Type | Field and Description |
|---|---|
private org.joda.time.DateTime |
assemblyDate |
private IConvoy |
convoy |
private org.joda.time.DateTime |
endBlockade |
private Map<IPlayer,Integer> |
requestedShips |
private com.google.common.collect.Multimap<IPlayer,IShip> |
ships |
private List<IShip> |
shipsToAuction |
| Constructor and Description |
|---|
Blockade(org.joda.time.DateTime assemblyDate,
org.joda.time.DateTime endBlockade) |
| Modifier and Type | Method and Description |
|---|---|
void |
addShips(IPlayer player,
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.
|
List<IPlayer> |
getPlayersWithRequestedShips()
Retrieve a list of players which have requested a ship
|
List<IShip> |
getShips()
Retrieve all ships for the blockade.
|
List<IShip> |
getShips(IPlayer player)
Retrieve the ships of a certain player.
|
void |
requestShip(IPlayer player,
int number) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAssemblyDate, getEndBlockade, getShipsToAuction, setConvoyprivate final org.joda.time.DateTime assemblyDate
private final org.joda.time.DateTime endBlockade
private IConvoy convoy
public Blockade(org.joda.time.DateTime assemblyDate,
org.joda.time.DateTime endBlockade)
public IConvoy getBlockadeConvoy()
IBlockadegetBlockadeConvoy in interface IBlockadepublic List<IShip> getShips(IPlayer player)
IBlockadepublic List<IShip> getShips()
IBlockadepublic void requestShip(IPlayer player, int number)
public int getNumberOfRequestedShips(IPlayer player)
IBlockadegetNumberOfRequestedShips in interface IBlockadepublic List<IPlayer> getPlayersWithRequestedShips()
IBlockadegetPlayersWithRequestedShips in interface IBlockadeCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.