Class DynamicTradeRouteStrategy

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

    public class DynamicTradeRouteStrategy
    extends BasePlayerTradeStrategy
    Trade strategy to buy certain wares (wine, spices, fur or fish oil) and then sell them until none is left.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 27, 2017
    • Constructor Detail

      • DynamicTradeRouteStrategy

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