public class CollectCelebrationWaresStrategy extends CollectionWaresStrategy
| Modifier and Type | Field and Description |
|---|---|
private ch.sahits.game.openpatrician.model.city.ICity |
celebrationLocation |
private CelebrationService |
celebrationService |
tradeStrategyType| Constructor and Description |
|---|
CollectCelebrationWaresStrategy() |
| 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 ch.sahits.game.openpatrician.model.player.IAITradeStrategyType |
getStrategyType()
Retrieve the strategy type for this strategy.
|
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 ch.sahits.game.openpatrician.model.city.ICity celebrationLocation
@Autowired private CelebrationService celebrationService
protected CollectWaresMissionData createMissionData(ch.sahits.game.openpatrician.model.IAIPlayer player)
CollectionWaresStrategycreateMissionData in class CollectionWaresStrategyprotected 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 CollectionWaresStrategyprotected ch.sahits.game.openpatrician.model.player.IAITradeStrategyType getStrategyType()
CollectionWaresStrategygetStrategyType in class CollectionWaresStrategyCopyright © 2011-2017 Sahits GmbH. All Rights Reserved.