Class TradingOfficeRandomShipConstructionSelectionStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.BaseShipConstructionSelectionStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.RandomShipConstructionSelectionStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeRandomShipConstructionSelectionStrategy
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.player.IAIConstructionSelectionStrategy
public class TradingOfficeRandomShipConstructionSelectionStrategy extends RandomShipConstructionSelectionStrategy
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 Summary
Constructors Constructor Description TradingOfficeRandomShipConstructionSelectionStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ch.sahits.game.openpatrician.model.city.ICitygetBuildLocation(ch.sahits.game.openpatrician.model.IAIPlayer player)The build location is always the players hometown.voidinitShipConstruction(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel, ch.sahits.game.openpatrician.model.ship.EShipType shipType)-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.RandomShipConstructionSelectionStrategy
shouldBuildShipType
-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BaseShipConstructionSelectionStrategy
getFleetCapacity, selectCollectingVessel, shouldOrderNewConstruction
-
-
-
-
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)
-
-