Class SupplyCentralTradingStationAIStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.SupplyCentralTradingStationAIStrategy
-
- All Implemented Interfaces:
ch.sahits.game.openpatrician.model.player.IAITradeStrategy
public class SupplyCentralTradingStationAIStrategy extends BasePlayerTradeStrategy
Strategy to supply a central station with required wares. Required are all wares that are needed bor the basic requirement. This strategy is only chosable if there are multiple vessels available and there is a trading office in the target city.- Author:
- Andi Hotz, (c) Sahits GmbH, 2017 Created on Oct 21, 2017
-
-
Field Summary
-
Fields inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
tradeStrategyType
-
-
Constructor Summary
Constructors Constructor Description SupplyCentralTradingStationAIStrategy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidhandleShipArrivesInPort(ch.sahits.game.openpatrician.model.event.IShipEntersPortEvent event)voidinitializeTradeCycle(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)booleanisSelectable(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
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, hasBlockingMission, hasMoreTradeSteps, inject, isMatchingTradeStrategy, isNeeded
-
-
-
-
Method Detail
-
initializeTradeCycle
public void initializeTradeCycle(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
-
handleShipArrivesInPort
public void handleShipArrivesInPort(ch.sahits.game.openpatrician.model.event.IShipEntersPortEvent event)
-
isSelectable
public boolean isSelectable(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
-
-