public class SupplyCentralTradingStationAIStrategy extends BasePlayerTradeStrategy
| Modifier and Type | Field and Description |
|---|---|
private org.apache.logging.log4j.Logger |
logger |
private MapProxy |
map |
private MapService |
mapService |
private ShipService |
shipService |
tradeStrategyType| Constructor and Description |
|---|
SupplyCentralTradingStationAIStrategy() |
| Modifier and Type | Method and Description |
|---|---|
private ch.sahits.game.openpatrician.model.city.ICity |
findCitySupplingWares(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
CentralStorageHintContext context) |
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) |
boolean |
isSelectable(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel) |
(package private) javafx.util.Pair<ch.sahits.game.openpatrician.model.city.ICity,CentralStorageStrategyHint> |
setupContextHint(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, findCitySupplyingWare, findCityWithAllRequiredWares, findDestinationToBuyRequiredProductionWares, findNextStopForBuying, findNextStopForSelling, findProvidingWares, findWaresOfInterest, getCityToRestartTradeCycle, getLoadedWares, getMostNeededWares, getMostNeededWares, getNextStep, getWaresNeedIn, handleHireSailors, handleRefitFinished, handleRepairFinished, hasMoreTradeSteps, inject, isMatchingTradeStrategy, isNeededprivate final org.apache.logging.log4j.Logger logger
@Autowired private MapProxy map
@Autowired private MapService mapService
@Autowired private ShipService shipService
public SupplyCentralTradingStationAIStrategy()
public void initializeTradeCycle(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
private ch.sahits.game.openpatrician.model.city.ICity findCitySupplingWares(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
CentralStorageHintContext context)
javafx.util.Pair<ch.sahits.game.openpatrician.model.city.ICity,CentralStorageStrategyHint> setupContextHint(ch.sahits.game.openpatrician.model.IAIPlayer player, ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
public void handleShipArrivesInPort(ch.sahits.game.openpatrician.model.event.IShipEntersPortEvent event)
public boolean isSelectable(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.