Class CollectionConstructionHometownWaresStrategy
- 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.CollectionConstructionHometownWaresStrategy
-
- All Implemented Interfaces:
IAITradeStrategy
- Direct Known Subclasses:
CollectConstructionHometownCogWareStrategy
,CollectConstructionHometownCrayerWareStrategy
,CollectConstructionHometownHolkWareStrategy
,CollectConstructionHometownSnaikkaWareStrategy
public abstract class CollectionConstructionHometownWaresStrategy extends CollectConstructionWareStrategy
This implementation for construction provides construction location in the players hometown.- 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 CollectionConstructionHometownWaresStrategy(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.model.player.IAITradeStrategy
isSelectable
-
-
-
-
Constructor Detail
-
CollectionConstructionHometownWaresStrategy
public CollectionConstructionHometownWaresStrategy(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
-
-