public class DynamicTradeRouteStrategy extends BasePlayerTradeStrategy
| Modifier and Type | Field and Description |
|---|---|
private ShipService |
shipService |
private static ch.sahits.game.openpatrician.model.product.IWare[] |
tradableWares |
tradeStrategyType| Constructor and Description |
|---|
DynamicTradeRouteStrategy() |
| Modifier and Type | Method and Description |
|---|---|
(package private) javafx.util.Pair<ch.sahits.game.openpatrician.model.city.ICity,ch.sahits.game.openpatrician.model.product.IWare> |
findClosestCityProducingTradableWare(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel) |
(package private) void |
handleBuyWaresInStartCity(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity city) |
(package private) void |
handleBuyWaresReturnToStartCity(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.city.ICity startCity) |
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, findCitySupplyingWare, findCityWithAllRequiredWares, findDestinationToBuyRequiredProductionWares, findNextStopForBuying, findNextStopForSelling, findProvidingWares, findWaresOfInterest, getCityToRestartTradeCycle, getLoadedWares, getMostNeededWares, getMostNeededWares, getNextStep, getWaresNeedIn, handleHireSailors, handleRefitFinished, handleRepairFinished, hasMoreTradeSteps, inject, isMatchingTradeStrategy, isNeededprivate static final ch.sahits.game.openpatrician.model.product.IWare[] tradableWares
@Autowired private ShipService shipService
public void initializeTradeCycle(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel)
void handleBuyWaresInStartCity(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity city)
void handleBuyWaresReturnToStartCity(ch.sahits.game.openpatrician.model.IAIPlayer player,
ch.sahits.game.openpatrician.model.ship.INavigableVessel vessel,
ch.sahits.game.openpatrician.model.city.ICity city,
ch.sahits.game.openpatrician.model.city.ICity startCity)
javafx.util.Pair<ch.sahits.game.openpatrician.model.city.ICity,ch.sahits.game.openpatrician.model.product.IWare> findClosestCityProducingTradableWare(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)
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.