Class CentralStorageDeliveryTradeStrategy

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

    public class CentralStorageDeliveryTradeStrategy
    extends BasePlayerTradeStrategy
    Strategy to deliver the required wares out of a central storage.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 23, 2017
    • Constructor Detail

      • CentralStorageDeliveryTradeStrategy

        public CentralStorageDeliveryTradeStrategy()
    • Method Detail

      • initializeTradeCycle

        public void initializeTradeCycle​(ch.sahits.game.openpatrician.model.IAIPlayer player,
                                         ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
      • handleShipArrivesInPort

        public void handleShipArrivesInPort​(ch.sahits.game.openpatrician.model.event.IShipEntersPortEvent event)
      • isSelectable

        public boolean isSelectable​(ch.sahits.game.openpatrician.model.IAIPlayer player,
                                    ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)