Class EightyPercentRepairStrategy

    • Constructor Detail

      • EightyPercentRepairStrategy

        public EightyPercentRepairStrategy()
    • Method Detail

      • shouldRepair

        public boolean shouldRepair​(INavigableVessel vessel,
                                    ICity city)
        Description copied from interface: IAIShipRepairStrategy
        Decide if the vessel should be repaired, when it is in city.
        Parameters:
        vessel - that should be checked for repair need.
        city - current possition of the vessel.
        Returns:
        true if the ship should be repaired.