public interface IConvoy extends IGroupableVessel
| Modifier and Type | Method and Description |
|---|---|
void |
addShip(IShip ship)
Add a ship to the convoy.
|
Map<IPlayer,Integer> |
getCapacityPerOwner()
Collect the convoys capacity per player who has ships
in the convoy.
|
IShip |
getOrlegShip()
Retrieve the lead ship of the convoy.
|
List<IPlayer> |
getPlayers()
Get all players who have a ship in the convoy.
|
List<IShip> |
getShips()
Retrieve a list of the ships in the convoy.
|
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, setLocation, togglePirateFlag, unloadboolean hasWeapons()
IShip getOrlegShip()
List<IShip> getShips()
getShips in interface IGroupableVesselList<IShip> getShips(IPlayer player)
player - who owns the shipsList<IPlayer> getPlayers()
void addShip(IShip ship)
ship - to be added.void removeShip(IShip ship)
ship - to be removed.Map<IPlayer,Integer> getCapacityPerOwner()
boolean isPublicConvoy()
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.