CollectCelebrationWaresStrategy, CollectConstructionWareStrategypublic abstract class CollectionWaresStrategy extends BasePlayerTradeStrategy
createMissionData(IAIPlayer) will be
set on the player for the vessel.tradeStrategyType| Constructor | Description |
|---|---|
CollectionWaresStrategy() |
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract boolean |
checkAllWaresCollected(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
CollectWaresMissionData tradeMission,
java.util.Optional<ch.sahits.game.openpatrician.model.building.ITradingOffice> tradingOffice) |
Check if all the required wares are actually collected.
|
protected abstract CollectWaresMissionData |
createMissionData(ch.sahits.game.openpatrician.model.IAIPlayer player) |
Provide the mission data for collecting wares.
|
protected abstract ch.sahits.game.openpatrician.model.player.IAITradeStrategyType |
getStrategyType() |
Retrieve the strategy type for this strategy.
|
void |
handleShipArrivesInPort(ch.sahits.game.openpatrician.model.event.IShipEntersPortEvent event) |
|
void |
initializeTradeCycle(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel) |
addDefaultTradeSteps, append, createAggregatedBuyTradeStep, createAggregatedCheckedBuyTradeStep, createAggregatedCheckedSellStep, createAggregatedDumpStep, createAggregatedSellStep, createCheckAndTakeLoanStep, createCheckedTransferToOfficeTradeStep, createCheckRepairStep, createConditionalAggregatedDumpStep, createHireCaptain, createHireDismissTradeManagerTradeStep, createHireSailorStep, createJoinGuildTradeStep, createPaybackLoanStep, createTransferToOfficeTradeStep, createTransferToShipTradeStep, createTravelToStep, createUpgradeShipTradeStep, createWeaponBuyTradeStep, executeTradeSteps, findDestinationToBuyRequiredProductionWares, findNextStopForBuying, findNextStopForSelling, findProvidingWares, findWaresOfInterest, getCityToRestartTradeCycle, getLoadedWares, getMostNeededWares, getMostNeededWares, getNextStep, getWaresNeedIn, handleHireSailors, handleRefitFinished, handleRepairFinished, hasMoreTradeSteps, inject, isMatchingTradeStrategy, isNeededpublic void initializeTradeCycle(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
protected abstract CollectWaresMissionData createMissionData(ch.sahits.game.openpatrician.model.IAIPlayer player)
player - wishing to collect waresprotected abstract ch.sahits.game.openpatrician.model.player.IAITradeStrategyType getStrategyType()
public void handleShipArrivesInPort(ch.sahits.game.openpatrician.model.event.IShipEntersPortEvent event)
protected abstract boolean checkAllWaresCollected(ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
CollectWaresMissionData tradeMission,
java.util.Optional<ch.sahits.game.openpatrician.model.building.ITradingOffice> tradingOffice)
city - for which to check the waresvessel - for which to check the warestradeMission - for the vesseltradingOffice - trading office in the city of the playerCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.