Class CollectConstructionWareStrategy

    • Constructor Detail

      • CollectConstructionWareStrategy

        public CollectConstructionWareStrategy​(ch.sahits.game.openpatrician.model.ship.EShipType constructionType)
    • Method Detail

      • getConstructionCity

        protected abstract ch.sahits.game.openpatrician.model.city.ICity getConstructionCity​(ch.sahits.game.openpatrician.model.IAIPlayer player)
        Define where the ship should be constructed.
        Parameters:
        player - who builds a new ship
        Returns:
        city where to build the new ship
      • checkAllWaresCollected

        protected boolean checkAllWaresCollected​(ch.sahits.game.openpatrician.model.city.ICity city,
                                                 ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
                                                 CollectWaresMissionData tradeMission,
                                                 java.util.Optional<ch.sahits.game.openpatrician.model.building.ITradingOffice> tradingOffice)
        Description copied from class: CollectionWaresStrategy
        Check if all the required wares are actually collected.
        Specified by:
        checkAllWaresCollected in class CollectionWaresStrategy
        Parameters:
        city - for which to check the wares
        vessel - for which to check the wares
        tradeMission - for the vessel
        tradingOffice - trading office in the city of the player
        Returns:
        true if all wares are collected