Class KontorTypeCityRepairStrategy

    • Constructor Detail

      • KontorTypeCityRepairStrategy

        public KontorTypeCityRepairStrategy()
    • Method Detail

      • shouldRepair

        public boolean shouldRepair​(INavigableVessel vessel,
                                    ICity city)
        Unless the damage is quite heavy repares are only conducted in cities of type Kontor.
        Parameters:
        vessel - that should be checked for repair need.
        city - current possition of the vessel.
        Returns:
        true if the ship is to be constructed in the city.