Class CollectionConstructionTradingOfficeWaresStrategy
- java.lang.Object
-
- ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.CollectionWaresStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWareStrategy
-
- ch.sahits.game.openpatrician.engine.player.strategy.CollectionConstructionTradingOfficeWaresStrategy
-
- All Implemented Interfaces:
IAICityDependentShipConstructionStrategy
,IAITradeStrategy
- Direct Known Subclasses:
CollectConstructionTradingOfficeCogWareStrategy
,CollectConstructionTradingOfficeCrayerWareStrategy
,CollectConstructionTradingOfficeHolkWareStrategy
,CollectConstructionTradingOfficeSnaikkaWareStrategy
public abstract class CollectionConstructionTradingOfficeWaresStrategy extends CollectConstructionWareStrategy implements IAICityDependentShipConstructionStrategy
This implementation for construction provides construction location in a random city with a trading office.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Jul 30, 2016
-
-
Field Summary
Fields Modifier and Type Field Description private ICity
constructionCity
-
Fields inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
tradeStrategyType
-
-
Constructor Summary
Constructors Constructor Description CollectionConstructionTradingOfficeWaresStrategy(EShipType constructionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ICity
getConstructionCity(IAIPlayer player)
Define where the ship should be constructed.-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWareStrategy
checkAllWaresCollected, createMissionData
-
Methods inherited from class ch.sahits.game.openpatrician.engine.player.strategy.CollectionWaresStrategy
getStrategyType, handleShipArrivesInPort, initializeTradeCycle
-
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, findCitySupplyingWare, findCityWithAllRequiredWares, findDestinationToBuyRequiredProductionWares, findNextStopForBuying, findNextStopForSelling, findProvidingWares, findWaresOfInterest, getCityToRestartTradeCycle, getLoadedWares, getMostNeededWares, getMostNeededWares, getNextStep, getWaresNeedIn, handleHireSailors, handleRefitFinished, handleRepairFinished, hasBlockingMission, hasMoreTradeSteps, inject, isMatchingTradeStrategy, isNeeded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface ch.sahits.game.openpatrician.engine.player.strategy.IAICityDependentShipConstructionStrategy
setConstructionCity
-
Methods inherited from interface ch.sahits.game.openpatrician.model.player.IAITradeStrategy
isSelectable
-
-
-
-
Field Detail
-
constructionCity
private ICity constructionCity
-
-
Constructor Detail
-
CollectionConstructionTradingOfficeWaresStrategy
public CollectionConstructionTradingOfficeWaresStrategy(EShipType constructionType)
-
-
Method Detail
-
getConstructionCity
protected ICity getConstructionCity(IAIPlayer player)
Description copied from class:CollectConstructionWareStrategy
Define where the ship should be constructed.- Specified by:
getConstructionCity
in classCollectConstructionWareStrategy
- Parameters:
player
- who builds a new ship- Returns:
- city where to build the new ship
-
-