IGroupableVessel, INavigableVesselConvoypublic interface IConvoy extends IGroupableVessel
| Modifier and Type | Method | Description |
|---|---|---|
void |
addShip(IShip ship) |
Add a ship to the convoy.
|
java.util.Map<IPlayer,java.lang.Integer> |
getCapacityPerOwner() |
Collect the convoys capacity per player who has ships
in the convoy.
|
IShip |
getOrlegShip() |
Retrieve the lead ship of the convoy.
|
java.util.List<IPlayer> |
getPlayers() |
Get all players who have a ship in the convoy.
|
java.util.List<IShip> |
getShips() |
Retrieve a list of the ships in the convoy.
|
java.util.List<IShip> |
getShips(IPlayer player) |
Get all the ships in the convoi that belong to a player.
|
boolean |
hasWeapons() |
Though a convoy has always weapons this is only something that
is handled on the level of a single ship.
|
boolean |
isPublicConvoy() |
Indicates that everyone can join this convoy.
|
void |
removeShip(IShip ship) |
Remove a ship from the convoy.
|
damage, getCapacity, getCaptian, getCurrentSpeed, getDamage, getLoadableSpace, getLoadBinding, getLoadedWares, getLocation, getName, getNumberOfSailors, getOwner, getPirateFlag, getSize, getTopSpeed, getUuid, getWare, getWeaponAmount, load, pirateFlagProperty, setLocation, togglePirateFlag, unloadboolean hasWeapons()
IShip getOrlegShip()
java.util.List<IShip> getShips()
getShips in interface IGroupableVesseljava.util.List<IShip> getShips(IPlayer player)
player - who owns the shipsjava.util.List<IPlayer> getPlayers()
void addShip(IShip ship)
ship - to be added.void removeShip(IShip ship)
ship - to be removed.java.util.Map<IPlayer,java.lang.Integer> getCapacityPerOwner()
boolean isPublicConvoy()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.