Interface IAIHireSailorStrategy

  • All Known Implementing Classes:
    DefaultHireSailorsStrategy

    public interface IAIHireSailorStrategy
    Strategy defining how many sailors belong onto a ship. If the number is lower than already on it, additional sailors can be hired.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Nov 04, 2017
    • Method Detail

      • calculateRequiredSailorAmount

        int calculateRequiredSailorAmount​(IShip ship,
                                          IAIPlayer player)
        Calculate the number of required sailors on the ship.
        Parameters:
        ship - for which the number has to be calculated.
        player - owning the ship
        Returns:
        number of sailors that should be on the ship.