Class CollectCelebrationWaresStrategy

  • All Implemented Interfaces:
    ch.sahits.game.openpatrician.model.player.IAITradeStrategy

    public class CollectCelebrationWaresStrategy
    extends CollectionWaresStrategy
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Dec 18, 2016
    • Constructor Detail

      • CollectCelebrationWaresStrategy

        public CollectCelebrationWaresStrategy()
    • Method Detail

      • 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
      • getStrategyType

        protected ch.sahits.game.openpatrician.model.player.IAITradeStrategyType getStrategyType()
        Description copied from class: CollectionWaresStrategy
        Retrieve the strategy type for this strategy.
        Specified by:
        getStrategyType in class CollectionWaresStrategy
        Returns:
        AI trade strategy type.