Interface IAIShipRepairStrategy

    • Method Detail

      • shouldRepair

        boolean shouldRepair​(INavigableVessel vessel,
                             ICity city)
        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.
      • repair

        void repair​(INavigableVessel vessel,
                    ICity city)
        Initialize the reppair of the vessel.
        Parameters:
        vessel - that should be repaired
        city - where the vessle currently anchors.