Class BiggestShipConstructionSelectionStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.BaseShipConstructionSelectionStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.BiggestShipConstructionSelectionStrategy
-
- All Implemented Interfaces:
IAIConstructionSelectionStrategy
- Direct Known Subclasses:
HometownBiggestShipConstructionSelectionStrategy
,TradingOfficeBiggestShipConstructionSelectionStrategy
,WestCityBiggestShipConstructionSelectionStrategy
public abstract class BiggestShipConstructionSelectionStrategy extends BaseShipConstructionSelectionStrategy
Base strategy to build the bigest possible ships at a given location.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 27, 2017
-
-
Constructor Summary
Constructors Constructor Description BiggestShipConstructionSelectionStrategy(int minCash, int maxFeetSize, int maxTotalCargoCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private EShipType
biggestShipType(java.util.List<EShipType> shipTypes)
EShipType
shouldBuildShipType(IAIPlayer player)
Select the ship type to be built.-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BaseShipConstructionSelectionStrategy
getFleetCapacity, selectCollectingVessel, shouldOrderNewConstruction
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.model.player.IAIConstructionSelectionStrategy
getBuildLocation, initShipConstruction
-
-
-
-
Method Detail
-
shouldBuildShipType
public EShipType shouldBuildShipType(IAIPlayer player)
Description copied from interface:IAIConstructionSelectionStrategy
Select the ship type to be built.- Parameters:
player
- who whishes to build a ship- Returns:
- ship type that should be ordered
-
-