Class SupplyCentralTradingStationAIStrategy

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

    public class SupplyCentralTradingStationAIStrategy
    extends BasePlayerTradeStrategy
    Strategy to supply a central station with required wares. Required are all wares that are needed bor the basic requirement. This strategy is only chosable if there are multiple vessels available and there is a trading office in the target city.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 21, 2017
    • Constructor Detail

      • SupplyCentralTradingStationAIStrategy

        public SupplyCentralTradingStationAIStrategy()
    • 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)