public abstract class CollectConstructionWareStrategy extends CollectionWaresStrategy
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.ship.EShipType |
constructionType |
private ShipFactory |
shipFactory |
private TradeService |
tradeService |
tradeStrategyType| Constructor and Description |
|---|
CollectConstructionWareStrategy(ch.sahits.game.openpatrician.model.ship.EShipType constructionType) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
checkAllWaresCollected(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
CollectWaresMissionData tradeMission,
Optional<ch.sahits.game.openpatrician.model.building.ITradingOffice> tradingOffice)
Check if all the required wares are actually collected.
|
protected CollectWaresMissionData |
createMissionData(ch.sahits.game.openpatrician.model.IAIPlayer player)
Provide the mission data for collecting wares.
|
protected abstract ch.sahits.game.openpatrician.model.city.ICity |
getConstructionCity(ch.sahits.game.openpatrician.model.IAIPlayer player)
Define where the ship should be constructed.
|
getStrategyType, handleShipArrivesInPort, initialzeTradeCycleaddDefaultTradeSteps, append, createAggregatedBuyTradeStep, createAggregatedCheckedBuyTradeStep, createAggregatedDumpStep, createAggregatedSellStep, createCheckAndTakeLoanStep, createCheckRepairStep, createConditionalAggregatedDumpStep, createHireCaptain, createHireSailorStep, createJoinGuildTradeStep, createPaybackLoanStep, createTravelToStep, executeTradeSteps, findCitySupplyingWare, findCityWithAllRequiredWares, findDestinationToBuyRequiredProductionWares, findNextStop, findWaresOfInterest, getLoadedWares, getMostNeededWares, getMostNeededWares, getNextStep, getWaresNeedIn, handleHireSailors, handleRepairFinished, hasMoreTradeSteps, inject, isMatchingTradeStrategy, isNeededprivate final ch.sahits.game.openpatrician.model.ship.EShipType constructionType
@Autowired private ShipFactory shipFactory
@Autowired private TradeService tradeService
public CollectConstructionWareStrategy(ch.sahits.game.openpatrician.model.ship.EShipType constructionType)
protected CollectWaresMissionData createMissionData(ch.sahits.game.openpatrician.model.IAIPlayer player)
CollectionWaresStrategycreateMissionData in class CollectionWaresStrategyprotected abstract ch.sahits.game.openpatrician.model.city.ICity getConstructionCity(ch.sahits.game.openpatrician.model.IAIPlayer player)
player - protected boolean checkAllWaresCollected(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
CollectWaresMissionData tradeMission,
Optional<ch.sahits.game.openpatrician.model.building.ITradingOffice> tradingOffice)
CollectionWaresStrategycheckAllWaresCollected in class CollectionWaresStrategyCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.