Interface IShipGroup
-
- All Superinterfaces:
IGroupableVessel
,INavigableVessel
- All Known Implementing Classes:
ShipGroup
public interface IShipGroup extends IGroupableVessel
A Ship group is similar to aIConvoy
only that there is no Orleg ship. This type of ships is usually found with pirates, when the capture more ships.- Author:
- Andi Hotz, (c) Sahits GmbH, 2015 Created on Dec 08, 2015
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addShip(IShip ship)
Add a ship to the convoy.java.util.List<IShip>
getShips()
Retrieve a list of the ships in the convoy.void
removeShip(IShip ship)
Remove a ship from the convoy.-
Methods inherited from interface ch.sahits.game.openpatrician.model.ship.INavigableVessel
damage, getAutotrading, getCapacity, getCaptian, getCurrentSpeed, getDamage, getLoadableSpace, getLoadBinding, getLoadedWares, getLocation, getMinNumberOfSailors, getName, getNumberOfSailors, getOwner, getPirateFlag, getSize, getTopSpeed, getUuid, getWare, getWeaponAmount, load, pirateFlagProperty, setAutoTrading, setLocation, togglePirateFlag, unload
-
-
-
-
Method Detail
-
getShips
java.util.List<IShip> getShips()
Retrieve a list of the ships in the convoy.- Specified by:
getShips
in interfaceIGroupableVessel
- Returns:
- list of ships in the group
-
addShip
void addShip(IShip ship)
Add a ship to the convoy.- Parameters:
ship
- to be added.
-
removeShip
void removeShip(IShip ship)
Remove a ship from the convoy.- Parameters:
ship
- to be removed.
-
-