Interface IShipGroup

  • All Superinterfaces:
    IGroupableVessel, INavigableVessel
    All Known Implementing Classes:
    ShipGroup

    public interface IShipGroup
    extends IGroupableVessel
    A Ship group is similar to a IConvoy 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 Detail

      • getShips

        java.util.List<IShip> getShips()
        Retrieve a list of the ships in the convoy.
        Specified by:
        getShips in interface IGroupableVessel
        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.