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, initializeTradeCycleaddDefaultTradeSteps, append, createAggregatedBuyTradeStep, createAggregatedCheckedBuyTradeStep, createAggregatedCheckedSellStep, createAggregatedDumpStep, createAggregatedSellStep, createCheckAndTakeLoanStep, createCheckedTransferToOfficeTradeStep, createCheckRepairStep, createConditionalAggregatedDumpStep, createHireCaptain, createHireDismissTradeManagerTradeStep, createHireSailorStep, createJoinGuildTradeStep, createPaybackLoanStep, createTransferToOfficeTradeStep, createTransferToShipTradeStep, createTravelToStep, createUpgradeShipTradeStep, createWeaponBuyTradeStep, executeTradeSteps, findCitySupplyingWare, findCityWithAllRequiredWares, findDestinationToBuyRequiredProductionWares, findNextStopForBuying, findNextStopForSelling, findProvidingWares, findWaresOfInterest, getCityToRestartTradeCycle, getLoadedWares, getMostNeededWares, getMostNeededWares, getNextStep, getWaresNeedIn, handleHireSailors, handleRefitFinished, 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-2018 Sahits GmbH. All Rights Reserved.