Interface IAIShipUpgradeStrategy


  • public interface IAIShipUpgradeStrategy
    Strategy for upgrading the ship.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Nov 04, 2017
    • Method Detail

      • shouldUpgrade

        boolean shouldUpgrade​(IShip ship)
        Check if the ship should be upgraded.
        Parameters:
        ship - that should be checked for upgrading
        Returns:
        true if the ship should be upgraded
      • upgrade

        void upgrade​(IShip ship,
                     ICity city)
        Upgrade the ship in city.
        Parameters:
        ship - to upgrade
        city - in which the ship should be upgraded