Class TradingOfficeBiggestShipConstructionSelectionStrategy

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

    public class TradingOfficeBiggestShipConstructionSelectionStrategy
    extends BiggestShipConstructionSelectionStrategy
    This strategy builds the biggest possible ship type in a city with a trading office.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Jul 30, 2016
    • Constructor Detail

      • TradingOfficeBiggestShipConstructionSelectionStrategy

        public TradingOfficeBiggestShipConstructionSelectionStrategy()
    • Method Detail

      • getBuildLocation

        public ch.sahits.game.openpatrician.model.city.ICity getBuildLocation​(ch.sahits.game.openpatrician.model.IAIPlayer player)
        The build location is always the players hometown.
        Parameters:
        player -
        Returns:
      • initShipConstruction

        public void initShipConstruction​(ch.sahits.game.openpatrician.model.IAIPlayer player,
                                         ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
                                         ch.sahits.game.openpatrician.model.ship.EShipType shipType)