Class CollectionConstructionWestCityWaresStrategy
- 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.CollectionConstructionWestCityWaresStrategy
-
- All Implemented Interfaces:
IAICityDependentShipConstructionStrategy,ch.sahits.game.openpatrician.model.player.IAITradeStrategy
- Direct Known Subclasses:
CollectConstructionWestCityCogWareStrategy,CollectConstructionWestCityCrayerWareStrategy,CollectConstructionWestCityHolkWareStrategy,CollectConstructionWestCitySnaikkaWareStrategy
public abstract class CollectionConstructionWestCityWaresStrategy extends CollectConstructionWareStrategy implements IAICityDependentShipConstructionStrategy
This implementation for construction provides construction location in a random city in the west.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on Jul 30, 2016
-
-
Field Summary
-
Fields inherited from class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
tradeStrategyType
-
-
Constructor Summary
Constructors Constructor Description CollectionConstructionWestCityWaresStrategy(ch.sahits.game.openpatrician.model.ship.EShipType constructionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ch.sahits.game.openpatrician.model.city.ICitygetConstructionCity(ch.sahits.game.openpatrician.model.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, 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
-
-
-
-
Method Detail
-
getConstructionCity
protected ch.sahits.game.openpatrician.model.city.ICity getConstructionCity(ch.sahits.game.openpatrician.model.IAIPlayer player)
Description copied from class:CollectConstructionWareStrategyDefine where the ship should be constructed.- Specified by:
getConstructionCityin classCollectConstructionWareStrategy- Parameters:
player- who builds a new ship- Returns:
- city where to build the new ship
-
-