A B C D E F G H I J K L M N O P R S T U V W 

A

AbstractAggregateDumpTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Base trade step for dumping various wares, instead of selling them.
AbstractAggregateDumpTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.AbstractAggregateDumpTradeStep
 
AbstractEngine - Class in ch.sahits.game.openpatrician.engine
This is the base class for all engine classes.
AbstractEngine() - Constructor for class ch.sahits.game.openpatrician.engine.AbstractEngine
 
acceptMarriagBrokereOffer(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.FleetBasedEventDecisionStrategy
 
acceptMarriagBrokereOffer(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.MoneyBasedEventDecisionStrategy
 
acceptMarriagBrokereOffer(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.StorageBasedEventDecisionStrategy
 
acceptMarriageOffer(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.FleetBasedEventDecisionStrategy
 
acceptMarriageOffer(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.MoneyBasedEventDecisionStrategy
 
acceptMarriageOffer(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.StorageBasedEventDecisionStrategy
 
activateVesselForTrade(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.event.AIPlayerEngineState
Activate a vessel for engaging in a trade step.
add(PirateActivityEntry) - Method in class ch.sahits.game.openpatrician.engine.sea.model.PirateActivity
Add a new pirate activity with the current date.
add(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
addBuyStep(IWare, int) - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedBuyTradeStep
 
addBuyStep(IWare, int) - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedBuyTradingOfficeTradeStep
 
addBuyStep(IWare, int) - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedCheckedBuyTradeStep
 
addCapturedShip(IShip) - Method in class ch.sahits.game.openpatrician.engine.sea.BlockadeSeafightContext
 
addCity(TavernState, ICity) - Method in class ch.sahits.game.openpatrician.engine.land.city.TavernEngine
 
addDefaultTradeSteps(INavigableVessel, IAIPlayer, ICity, ICity, Set<IWare>, Set<IWare>, boolean) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Add default trading steps: AggregatesSellTradeStep PayBackLoanTradeStep CheckHireCaptainTradeStep GuildJoinTradeStep HireDismissTradeManagerTradeStep TakeLoanTradeStep HireDismissTradeManagerTradeStep BuyWeaponTradeStep CheckForRepairTradeStep HireSailorsStep TravelToTradeStep
addDestinationPoint(Point2D, boolean) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarGraphProvider
Add a new destination Node to the graph.
addDistributingVessel(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageHintContext
 
addEdge(T, T, double) - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
Adds an edge from source node to destination node.
addEdgeInternal(T, T, double) - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
Adds an edge from source node to destination node.
addFire(ICity, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngineState
Add or override the date of the last fire in the city
additionalJoinRequirementsMet(IAIPlayer, ICity, Optional<INavigableVessel>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.AlwaysJoinGuildMinCashStrategy
 
additionalJoinRequirementsMet(IAIPlayer, ICity, Optional<INavigableVessel>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseJoinGuildStrategy
Additional requirients added by custom strategies.
additionalJoinRequirementsMet(IAIPlayer, ICity, Optional<INavigableVessel>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HometownJoinGuildMinCashStrategy
 
additionalJoinRequirementsMet(IAIPlayer, ICity, Optional<INavigableVessel>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.NearHometownJoinGuildMinCashStrategy
 
additionalJoinRequirementsMet(IAIPlayer, ICity, Optional<INavigableVessel>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.NearTradingOfficeJoinGuildMinCashStrategy
 
additionalJoinRequirementsMet(IAIPlayer, ICity, Optional<INavigableVessel>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeJoinGuildMinCashStrategy
 
addNode(T, boolean) - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
Adds a new node to the graph.
addNodeInternal(T) - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
Adds a new node to the graph.
addPlague(ICity, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngineState
Add or override the date of the last plague in the city
addSellStep(IWare) - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AbstractAggregateDumpTradeStep
 
addSellStep(IWare) - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesSellTradeStep
 
addSellStep(IWare, int) - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesCheckedSellTradeStep
 
addSourceNodeToHeuristic(Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarHeuristicProvider
Add a new target node to the heuristic.
addSuppliedCity(ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageHintContext
 
addSupplyingVessel(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageHintContext
 
addTargetNodeToHeuristic(Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarHeuristicProvider
Add a new target node to the heuristic.
AddViolationTask - Class in ch.sahits.game.openpatrician.engine.land.city.internal
Task for filing a city violation.
AddViolationTask(ICityViolation, IAldermanOffice, LocalDateTime) - Constructor for class ch.sahits.game.openpatrician.engine.land.city.internal.AddViolationTask
 
addWare(IWare) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageHintContext
 
AggregatedBuyTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step aggregating several wares to buy.
AggregatedBuyTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedBuyTradeStep
 
AggregatedBuyTradingOfficeTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Aggregate multiple BuySteps for the trading office.
AggregatedBuyTradingOfficeTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedBuyTradingOfficeTradeStep
 
AggregatedCheckedBuyTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step aggregating several wares to buy.
AggregatedCheckedBuyTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedCheckedBuyTradeStep
 
AggregatesCheckedSellTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step aggregating several wares to sell.
AggregatesCheckedSellTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesCheckedSellTradeStep
 
AggregatesDumpTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step aggregating dumping the wares.
AggregatesDumpTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesDumpTradeStep
 
AggregatesSellTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step aggregating several wares to sell.
AggregatesSellTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesSellTradeStep
 
AIPlayerEngine - Class in ch.sahits.game.openpatrician.engine
This implements the engine for an AI Player
AIPlayerEngine() - Constructor for class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
AIPlayerEngineState - Class in ch.sahits.game.openpatrician.engine.event
State of the AIPlayerEngine that holds the serializable part for the engine.
AIPlayerEngineState() - Constructor for class ch.sahits.game.openpatrician.engine.event.AIPlayerEngineState
 
AITradeChecker - Class in ch.sahits.game.openpatrician.engine.player
This trade checker verifies that each ship is currently in active tradeing or there is another good reason for it.
AITradeChecker() - Constructor for class ch.sahits.game.openpatrician.engine.player.AITradeChecker
 
ALWAYS_JOIN_MIN_CASH - ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
 
AlwaysJoinGuildMinCashStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Always join the guild if the player has a certain amount of cash dependent on the entry fee.
AlwaysJoinGuildMinCashStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.AlwaysJoinGuildMinCashStrategy
 
AmountBasedAggregatedDumpTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
This dump sell step is conditional based on the amount of loaded wares on the ship.
AmountBasedAggregatedDumpTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.AmountBasedAggregatedDumpTradeStep
 
append(IAIPlayer, INavigableVessel, ITradeStep) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Add a new trade step for a player.
applicationServerProperties() - Static method in class ch.sahits.game.openpatrician.engine.EngineConfiguration
 
AStar - Class in ch.sahits.game.openpatrician.engine.sea
Implementation of the A* pathfinding algorithm.
AStar() - Constructor for class ch.sahits.game.openpatrician.engine.sea.AStar
 
AStarGraphProvider - Class in ch.sahits.game.openpatrician.engine.sea
Factory class to provide the graph for the AStar path finding calculation
AStarGraphProvider() - Constructor for class ch.sahits.game.openpatrician.engine.sea.AStarGraphProvider
 
AStarHeuristicProvider - Class in ch.sahits.game.openpatrician.engine.sea
This singleton provides the heuristic for a specific map for the A* algorithm.
AStarHeuristicProvider() - Constructor for class ch.sahits.game.openpatrician.engine.sea.AStarHeuristicProvider
 
AuctionEngine - Class in ch.sahits.game.openpatrician.engine.land.city.internal
 
AuctionEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.internal.AuctionEngine
 
AutomaticTradingEngine - Class in ch.sahits.game.openpatrician.engine.land.city
 
AutomaticTradingEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.AutomaticTradingEngine
 

B

BaseBuyTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Base class providing common functionality.
BaseBuyTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.BaseBuyTradeStep
 
BaseBuyWeaponStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base class for buying weapons strategy implementing common services.
BaseBuyWeaponStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BaseBuyWeaponStrategy
 
BaseGraphCalulationService - Class in ch.sahits.game.openpatrician.engine.sea
Service providing methods for the calculation of the heuristic and the graph.
BaseGraphCalulationService() - Constructor for class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
 
BaseHireCaptainForShipAboveSizeStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base strategy for hiring a captain only for ships of a minimal capacity
BaseHireCaptainForShipAboveSizeStrategy(int) - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BaseHireCaptainForShipAboveSizeStrategy
 
BaseHireCaptainStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
 
BaseHireCaptainStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BaseHireCaptainStrategy
 
BaseHireDismissTradeManagerStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
 
BaseHireDismissTradeManagerStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BaseHireDismissTradeManagerStrategy
 
BaseJoinGuildStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base implementation for an AI guild join strategy.
BaseJoinGuildStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BaseJoinGuildStrategy
 
BasePlayerTradeStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base implementation of the trading strategy.
BasePlayerTradeStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
BaseRepairStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base implementation for the repair strategy.
BaseRepairStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BaseRepairStrategy
 
BaseShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base implementation for a ship construction selection strategy that can be easily configured through the non default constructor.
BaseShipConstructionSelectionStrategy(int, int, int) - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BaseShipConstructionSelectionStrategy
 
BID_DELTA - Static variable in class ch.sahits.game.openpatrician.engine.land.city.internal.AuctionEngine
 
BiggestShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base strategy to build the bigest possible ships at a given location.
BiggestShipConstructionSelectionStrategy(int, int, int) - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BiggestShipConstructionSelectionStrategy
 
BlacksmithEngine - Class in ch.sahits.game.openpatrician.engine.land.city
Engine controlling the blacksmiths in the armories.
BlacksmithEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.BlacksmithEngine
 
BLOCKADE - ch.sahits.game.openpatrician.engine.sea.ESeaFightType
Fight of a fleet blockadeing a port against another fleet
BlockadeEngine - Class in ch.sahits.game.openpatrician.engine.sea
Engine handling the blockade.
BlockadeEngine() - Constructor for class ch.sahits.game.openpatrician.engine.sea.BlockadeEngine
 
BlockadeSeafightContext - Class in ch.sahits.game.openpatrician.engine.sea
Sea fight context for the blockade.
BlockadeSeafightContext(IBlockade) - Constructor for class ch.sahits.game.openpatrician.engine.sea.BlockadeSeafightContext
 
BlockadeStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
The blockade strategy decides which ship to select for sending it to the blockade.
BlockadeStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BlockadeStrategy
 
buyLargeWeapon(IArmory, int) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseBuyWeaponStrategy
Randomly select a large weapon available in the armory and buy it.
buySmallWeapon(IArmory, int) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseBuyWeaponStrategy
Randomly select a small weapon available in the armory and buy it.
BuyTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Implements the trade step to by the some goods up to a maximum buy price.
BuyTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.BuyTradeStep
 
BuyTradingOfficeTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Buy trade step to buy wares and store it in the trading office.
BuyTradingOfficeTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.BuyTradingOfficeTradeStep
 
BuyWeaponHighPirateActivityHalfSlotsFilledStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to buy weapons when the pirate activity is high to fill half the ships slot with weapons.
BuyWeaponHighPirateActivityHalfSlotsFilledStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BuyWeaponHighPirateActivityHalfSlotsFilledStrategy
 
BuyWeaponHighPirateSuccessAllSlotsFilledStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to buy weapons when the sucessfull pirate activity is high to fill all the ships slot with weapons.
BuyWeaponHighPirateSuccessAllSlotsFilledStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BuyWeaponHighPirateSuccessAllSlotsFilledStrategy
 
BuyWeaponHighPirateSuccessHalfSlotsFilledStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to buy weapons when the successful pirate activity is high to fill half the ships slot with weapons.
BuyWeaponHighPirateSuccessHalfSlotsFilledStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.BuyWeaponHighPirateSuccessHalfSlotsFilledStrategy
 
buyWeapons(BuyWeapons, IShip, IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseBuyWeaponStrategy
First the hand weapons are bought.
BuyWeaponTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step for buying weapons.
BuyWeaponTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.BuyWeaponTradeStep
 

C

calcF(T, T) - Method in class ch.sahits.game.openpatrician.engine.sea.model.NodeData
 
calculateCareer(ICity, IPlayer) - Method in class ch.sahits.game.openpatrician.engine.land.city.ReputationCalculator
Calculate the current career level of the player.
calculateDuration(INavigableVessel, PathInterpolator, double) - Method in interface ch.sahits.game.openpatrician.engine.sea.IPathConverter
Calculate the duration of the travel in milliseconds in real time for the specified fraction of the total distance
calculateOutcome(INavigableVessel, INavigableVessel, SeaFightContext) - Method in class ch.sahits.game.openpatrician.engine.sea.SeaFightService
Calculate the outcome of the fight.
calculateRequiredSailorAmount(IShip, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.DefaultHireSailorsStrategy
 
calculateSpouseDeath(IPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.event.EventService
 
calculateWareReputation(ICity, IPlayer) - Method in class ch.sahits.game.openpatrician.engine.land.city.ReputationCalculator
Check each ware if the player contributes and what amount.
calculateWeight(Point2D, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarGraphProvider
 
calculateWeight(Point2D, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarHeuristicProvider
 
calculateWeight(Point2D, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
Calculate the weight between two nodes.
cancel() - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.NextBidTask
 
CAPACITY_BASED_HIRING_POLICY - ch.sahits.game.openpatrician.engine.player.strategy.EHireTradeManagerStrategyType
Strategy based on the available and used storage capacity.
CaptainEngine - Class in ch.sahits.game.openpatrician.engine.land
Engine controling all the roaming captains.
CaptainEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.CaptainEngine
 
captainsState - Variable in class ch.sahits.game.openpatrician.engine.player.strategy.BaseHireCaptainStrategy
 
CASH_AMOUNT - ch.sahits.game.openpatrician.engine.player.strategy.EEventDecisionStrategyType
 
CELEBRATION - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
CentralStorageDeliverMissionData - Class in ch.sahits.game.openpatrician.engine.player
Trade mission data for the delivering of wares from a central storage.
CentralStorageDeliverMissionData() - Constructor for class ch.sahits.game.openpatrician.engine.player.CentralStorageDeliverMissionData
 
CentralStorageDeliveryTradeStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to deliver the required wares out of a central storage.
CentralStorageDeliveryTradeStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageDeliveryTradeStrategy
 
CentralStorageHintContext - Class in ch.sahits.game.openpatrician.engine.player.strategy
Hint context for the central storage hint.
CentralStorageHintContext() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageHintContext
 
CentralStorageStrategyHint - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy hint for a central supply city.
CentralStorageStrategyHint() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageStrategyHint
 
ch.sahits.game.openpatrician.engine - package ch.sahits.game.openpatrician.engine
 
ch.sahits.game.openpatrician.engine.event - package ch.sahits.game.openpatrician.engine.event
 
ch.sahits.game.openpatrician.engine.event.task - package ch.sahits.game.openpatrician.engine.event.task
 
ch.sahits.game.openpatrician.engine.land - package ch.sahits.game.openpatrician.engine.land
 
ch.sahits.game.openpatrician.engine.land.city - package ch.sahits.game.openpatrician.engine.land.city
 
ch.sahits.game.openpatrician.engine.land.city.internal - package ch.sahits.game.openpatrician.engine.land.city.internal
 
ch.sahits.game.openpatrician.engine.player - package ch.sahits.game.openpatrician.engine.player
 
ch.sahits.game.openpatrician.engine.player.strategy - package ch.sahits.game.openpatrician.engine.player.strategy
 
ch.sahits.game.openpatrician.engine.player.tradesteps - package ch.sahits.game.openpatrician.engine.player.tradesteps
 
ch.sahits.game.openpatrician.engine.sea - package ch.sahits.game.openpatrician.engine.sea
 
ch.sahits.game.openpatrician.engine.sea.model - package ch.sahits.game.openpatrician.engine.sea.model
 
ch.sahits.game.openpatrician.engine.time - package ch.sahits.game.openpatrician.engine.time
 
CHEAP_PRODUCTION - ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
CheapProductionTradeStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This trade strategy focuses on the cheap production of wares and sells them in the nearest city where there is a need.
CheapProductionTradeStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CheapProductionTradeStrategy
 
checkAllWaresCollected(ICity, INavigableVessel, CollectWaresMissionData, Optional<ITradingOffice>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectCelebrationWaresStrategy
 
checkAllWaresCollected(ICity, INavigableVessel, CollectWaresMissionData, Optional<ITradingOffice>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWareStrategy
 
checkAllWaresCollected(ICity, INavigableVessel, CollectWaresMissionData, Optional<ITradingOffice>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectionWaresStrategy
Check if all the required wares are actually collected.
CheckedBuyTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Implements the trade step to by the some goods up to a maximum buy price.
CheckedBuyTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckedBuyTradeStep
 
CheckedSellTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Implements the sell step for selling a single ware up to a minimum sell price and a maximum amount.
CheckedSellTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckedSellTradeStep
 
CheckedTransferToOfficeTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step for transferring certain amounts of wares to the store if it can be stored and there is a store manager, to sell them.
CheckedTransferToOfficeTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckedTransferToOfficeTradeStep
 
CheckForRepairTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Implements the trade step that does the checking if the vessel needs repair and if it does sends the ship for repair.
CheckForRepairTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckForRepairTradeStep
 
CheckHireCaptainTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step for checking and hiring a captain.
CheckHireCaptainTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckHireCaptainTradeStep
 
checkPirateKilledAldermanTask(ShipAttackEvent) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
Check if the destroyed ship was a pirate ship that belongs to an alderman task.
checkShipLeaving(ClockTick) - Method in class ch.sahits.game.openpatrician.engine.sea.MapLocationDetector
 
checkShipUpdate(ShipPositionUpdateEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.MapLocationDetector
 
ChurchEngine - Class in ch.sahits.game.openpatrician.engine.land.city
 
ChurchEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.ChurchEngine
 
ChurchUpgradeTimedTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task for the church upgrade.
ChurchUpgradeTimedTask(IChurch, LocalDateTime) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.ChurchUpgradeTimedTask
 
CityEngine - Class in ch.sahits.game.openpatrician.engine.land.city
The CityEngine drives/generates the events that are based in the city.
CityEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
CityHallEngine - Class in ch.sahits.game.openpatrician.engine.land.city
Engine for controlling the aspects of the city government.
CityHallEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
CityProductionConsumptionKnowledge - Class in ch.sahits.game.openpatrician.engine.player
Model of the knowledge of a player about the production and the consumption of a city.
CityProductionConsumptionKnowledge() - Constructor for class ch.sahits.game.openpatrician.engine.player.CityProductionConsumptionKnowledge
 
CityWallBuildingTask - Class in ch.sahits.game.openpatrician.engine.land.city.internal
Building task for the city wall.
CityWallBuildingTask(CityWall, LocalDateTime) - Constructor for class ch.sahits.game.openpatrician.engine.land.city.internal.CityWallBuildingTask
 
CityWallMaterialBuyingTask - Class in ch.sahits.game.openpatrician.engine.land.city.internal
Task for the buying the material for the city wall building.
CityWallMaterialBuyingTask(ICityHall, LocalDateTime) - Constructor for class ch.sahits.game.openpatrician.engine.land.city.internal.CityWallMaterialBuyingTask
 
ClearCityEventTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task to clear a city event.
ClearCityEventTask(LocalDateTime, ICity) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.ClearCityEventTask
 
clientServerEventBus - Variable in class ch.sahits.game.openpatrician.engine.sea.SeafaringService
 
CLOCK_TICK_INTERVALL_MS - Static variable in class ch.sahits.game.openpatrician.engine.EngineConfiguration
Interval for the clock tick timer
clockTickTimer() - Method in class ch.sahits.game.openpatrician.engine.EngineConfiguration
 
ClockTickTimer - Class in ch.sahits.game.openpatrician.engine
This clock ticking timer extends the pausable timer.
ClockTickTimer(long, long) - Constructor for class ch.sahits.game.openpatrician.engine.ClockTickTimer
 
COLLECT_WARES - ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
COLLECT_WARES_FOR_STORAGE_LOCATION - ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
CollectCelebrationWaresStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
 
CollectCelebrationWaresStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectCelebrationWaresStrategy
 
CollectConstructionHometownCogWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a cog.
CollectConstructionHometownCogWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionHometownCogWareStrategy
 
CollectConstructionHometownCrayerWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a crayer.
CollectConstructionHometownCrayerWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionHometownCrayerWareStrategy
 
CollectConstructionHometownHolkWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a holk.
CollectConstructionHometownHolkWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionHometownHolkWareStrategy
 
CollectConstructionHometownSnaikkaWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a snaikka.
CollectConstructionHometownSnaikkaWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionHometownSnaikkaWareStrategy
 
CollectConstructionTradingOfficeCogWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a cog.
CollectConstructionTradingOfficeCogWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionTradingOfficeCogWareStrategy
 
CollectConstructionTradingOfficeCrayerWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a crayer.
CollectConstructionTradingOfficeCrayerWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionTradingOfficeCrayerWareStrategy
 
CollectConstructionTradingOfficeHolkWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a holk.
CollectConstructionTradingOfficeHolkWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionTradingOfficeHolkWareStrategy
 
CollectConstructionTradingOfficeSnaikkaWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a snaikka.
CollectConstructionTradingOfficeSnaikkaWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionTradingOfficeSnaikkaWareStrategy
 
CollectConstructionWaresMissionData - Class in ch.sahits.game.openpatrician.engine.player
Mission data to collect wares for ships construction.
CollectConstructionWaresMissionData() - Constructor for class ch.sahits.game.openpatrician.engine.player.CollectConstructionWaresMissionData
 
CollectConstructionWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base strategy for constructing a ship.
CollectConstructionWareStrategy(EShipType) - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWareStrategy
 
CollectConstructionWestCityCogWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a cog.
CollectConstructionWestCityCogWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWestCityCogWareStrategy
 
CollectConstructionWestCityCrayerWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a crayer.
CollectConstructionWestCityCrayerWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWestCityCrayerWareStrategy
 
CollectConstructionWestCityHolkWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a holk.
CollectConstructionWestCityHolkWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWestCityHolkWareStrategy
 
CollectConstructionWestCitySnaikkaWareStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares to construct a snaikka.
CollectConstructionWestCitySnaikkaWareStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWestCitySnaikkaWareStrategy
 
CollectionConstructionHometownWaresStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This implementation for construction provides construction location in the players hometown.
CollectionConstructionHometownWaresStrategy(EShipType) - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectionConstructionHometownWaresStrategy
 
CollectionConstructionTradingOfficeWaresStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This implementation for construction provides construction location in a random city with a trading office.
CollectionConstructionTradingOfficeWaresStrategy(EShipType) - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectionConstructionTradingOfficeWaresStrategy
 
CollectionConstructionWestCityWaresStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This implementation for construction provides construction location in a random city in the west.
CollectionConstructionWestCityWaresStrategy(EShipType) - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectionConstructionWestCityWaresStrategy
 
CollectionWaresStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to collect wares.
CollectionWaresStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.CollectionWaresStrategy
 
CollectWaresForCity - Class in ch.sahits.game.openpatrician.engine.player
 
CollectWaresForCity() - Constructor for class ch.sahits.game.openpatrician.engine.player.CollectWaresForCity
 
CollectWaresMissionData - Class in ch.sahits.game.openpatrician.engine.player
 
CollectWaresMissionData() - Constructor for class ch.sahits.game.openpatrician.engine.player.CollectWaresMissionData
 
comparator() - Static method in enum ch.sahits.game.openpatrician.engine.player.ETradeReason
 
containsNode(T) - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
Check if the nodeid is already present in the data.
createAggregatedBuyTradeStep(INavigableVessel, ICity, List<IWare>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createAggregatedBuyTradingOfficeTradeStep(ITradingOffice, ICity, List<IWare>) - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.TradeStepFactory
Create a trade step for buiyn wares into the trading office
createAggregatedCheckedBuyTradeStep(INavigableVessel, ICity, List<IWare>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createAggregatedCheckedSellStep(INavigableVessel, ICity, Map<IWare, Integer>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createAggregatedDumpStep(INavigableVessel, ICity, List<IWare>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createAggregatedSellStep(INavigableVessel, ICity, List<IWare>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createCheckAndTakeLoanStep(IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Create a new instance of the TakeLoan trade step.
createCheckedTransferToOfficeTradeStep(INavigableVessel, ICity, Map<IWare, Integer>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createCheckRepairStep(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Create the trade step to check for repairs.
createConditionalAggregatedDumpStep(INavigableVessel, ICity, List<IWare>, int) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Create a conditional dump trade step.
createHireCaptain(INavigableVessel, ICity, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Create the trade step to check and hire a captain.
createHireDismissTradeManagerTradeStep(ICity, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createHireSailorStep(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Create a new instance forthe hire sailor step.
createJoinGuildTradeStep(INavigableVessel, ICity, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Create a trade step to join the quild.
createMissionData(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectCelebrationWaresStrategy
 
createMissionData(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWareStrategy
 
createMissionData(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectionWaresStrategy
Provide the mission data for collecting wares.
createNextBidTask(IAuction) - Method in class ch.sahits.game.openpatrician.engine.EngineFactory
 
createPath(INavigableVessel, List<Point2D>, double) - Method in interface ch.sahits.game.openpatrician.engine.sea.IPathConverter
Create a path shape out of a list of points.
createPaybackLoanStep(IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Create a new instance of the TakeLoan trade step.
createTransferToOfficeTradeStep(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createTransferToShipTradeStep(INavigableVessel, ICity, Map<IWare, Integer>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createTravelToStep(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Create the travel step to a different city.
createUpgradeShipTradeStep(INavigableVessel, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
createWeaponBuyTradeStep(INavigableVessel, IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 

D

DailyPlayerUpdater - Class in ch.sahits.game.openpatrician.engine.player
Timed task for daily checks of player tasks.
DailyPlayerUpdater() - Constructor for class ch.sahits.game.openpatrician.engine.player.DailyPlayerUpdater
 
DailyUpdateTask - Class in ch.sahits.game.openpatrician.engine.time
 
DailyUpdateTask() - Constructor for class ch.sahits.game.openpatrician.engine.time.DailyUpdateTask
 
DANGER_BASED_HIREING - ch.sahits.game.openpatrician.engine.player.strategy.EHireSailorStrategyType
 
DANGER_BASED_UPGRADE - ch.sahits.game.openpatrician.engine.player.strategy.EUpgradeShipStrategyTypes
 
DangerBasedShipUpgradeStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Upgrade strategy for hte ship based on the danger.
DangerBasedShipUpgradeStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.DangerBasedShipUpgradeStrategy
 
DangerService - Class in ch.sahits.game.openpatrician.engine.sea
Service to calculate the current danger based on recent pirate attacks.
DangerService() - Constructor for class ch.sahits.game.openpatrician.engine.sea.DangerService
 
deactivateVesselForTrade(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.event.AIPlayerEngineState
Deactive a vessel for trading.
DefaultHireSailorsStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy for calculating the sailor amount on ships based on the danger level.
DefaultHireSailorsStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.DefaultHireSailorsStrategy
 
DefaultStrategyProvider - Class in ch.sahits.game.openpatrician.engine.player
Provide the AI strategies defined in the core module.
DefaultStrategyProvider() - Constructor for class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
DELIVER_WARES_FROM_CENTRAL_STORAGE - ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
doMonthlyCheck() - Method in class ch.sahits.game.openpatrician.engine.player.SocialRankChecker
 
DYNAMIC_TRADE_ROUTE - ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
DynamicTradeRouteMissionData - Class in ch.sahits.game.openpatrician.engine.player
Mission data for a dynamic trade route selling wine, fur, fish oil or spices.
DynamicTradeRouteMissionData() - Constructor for class ch.sahits.game.openpatrician.engine.player.DynamicTradeRouteMissionData
 
DynamicTradeRouteStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Trade strategy to buy certain wares (wine, spices, fur or fish oil) and then sell them until none is left.
DynamicTradeRouteStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.DynamicTradeRouteStrategy
 

E

EAIRepairStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
Strategy type for the repair of the ship.
EAITradeStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
Strategy type for the trade strategy.
ECollectWareStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
The types for the collection strategies.
edgesFrom(T) - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
Returns immutable view of the edges
EEventDecisionStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
 
EEventState - Enum in ch.sahits.game.openpatrician.engine.event
State of the marriage process Created by andi on 29.03.17.
EGuildJoinStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
 
EHireCaptainStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
 
EHireSailorStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
 
EHireTradeManagerStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
 
EIGHTY_PERCENT - ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
 
EightyPercentRepairStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Repair strategy for going to repair when ship health drops below 80%.
EightyPercentRepairStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.EightyPercentRepairStrategy
 
ElectionTask - Class in ch.sahits.game.openpatrician.engine.land.city.internal
 
ElectionTask(SortedMapRandomizedSameElements, Election, LocalDateTime) - Constructor for class ch.sahits.game.openpatrician.engine.land.city.internal.ElectionTask
 
EngineConfiguration - Class in ch.sahits.game.openpatrician.engine
Spring configuration for the engine module.
EngineConfiguration() - Constructor for class ch.sahits.game.openpatrician.engine.EngineConfiguration
 
EngineFactory - Class in ch.sahits.game.openpatrician.engine
This abstraction layer for creating engines allows better decoupling and allows therefore easier testing.
EngineFactory() - Constructor for class ch.sahits.game.openpatrician.engine.EngineFactory
 
ESeaFightType - Enum in ch.sahits.game.openpatrician.engine.sea
Define the various types of sea fights.
EShipConstructionStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
Strategy type for constructing ships.
establishChurch(ICity) - Method in class ch.sahits.game.openpatrician.engine.land.city.ChurchEngine
 
establishCityHall(ICity) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
establishGuild(ICity) - Method in class ch.sahits.game.openpatrician.engine.land.city.GuildEngine
 
ETakeLoanStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
 
ETradeReason - Enum in ch.sahits.game.openpatrician.engine.player
The various reasons for trading a ware.
EUpgradeShipStrategyTypes - Enum in ch.sahits.game.openpatrician.engine.player.strategy
 
EventEngine - Class in ch.sahits.game.openpatrician.engine.event
This event engine triggers the various random events as well as handling the messages from the event bus that result from such an event.
EventEngine() - Constructor for class ch.sahits.game.openpatrician.engine.event.EventEngine
 
EventEngineState - Class in ch.sahits.game.openpatrician.engine.event
State for the event engine holing serializable information used by the EventEngine.
EventEngineState() - Constructor for class ch.sahits.game.openpatrician.engine.event.EventEngineState
 
EventService - Class in ch.sahits.game.openpatrician.engine.event
Event related utility methods.
EventService() - Constructor for class ch.sahits.game.openpatrician.engine.event.EventService
 
EWeaponBuyStrategyType - Enum in ch.sahits.game.openpatrician.engine.player.strategy
Default implementation of the weapon buy strategies.
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AbstractAggregateDumpTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedBuyTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedBuyTradingOfficeTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedCheckedBuyTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesCheckedSellTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesSellTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AmountBasedAggregatedDumpTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.BuyTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.BuyTradingOfficeTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.BuyWeaponTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckedBuyTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckedSellTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckedTransferToOfficeTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckForRepairTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckHireCaptainTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.GuildJoinTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.HireDismissTradeManagerTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.HireSailorsStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.PayBackLoanTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.SellDumpTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.SellTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.TakeLoanTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.TransferToOfficeTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.TransferToShipTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.TravelToTradeStep
 
execute() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.UpgradeShipTradeStep
executeCurrentTrade(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
Check weather the current vessel is engaged in executing trade steps.
executeTradeSteps(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
The implementation of the execute trade steps makes the following assumptions: When called there is at least one trade step defined Typically the trade steps are defined up to the travel step.
explodeShipList(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.sea.SeaFightService
Convert a vessel into a list of ships.

F

FILL_ALL_SLOTS_WHEN_MANY_SUCCESSFUL_PIRATE_ATTACKS - ch.sahits.game.openpatrician.engine.player.strategy.EWeaponBuyStrategyType
 
FILL_HALF_SLOTS_WHEN_MANY_PIRATE_ATTACKS - ch.sahits.game.openpatrician.engine.player.strategy.EWeaponBuyStrategyType
 
FILL_HALF_SLOTS_WHEN_MANY_SUCCESSFUL_PIRATE_ATTACKS - ch.sahits.game.openpatrician.engine.player.strategy.EWeaponBuyStrategyType
 
findCitiesWithNeedMinimalDistance(ICity, IWare, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.ProductionConsumptionKnowledge
 
findClosest(Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarHeuristicProvider
Find the closest point in the graph for a defined point.
findDestinationToBuyRequiredProductionWares(IAIPlayer, List<IWare>, INavigableVessel, Set<ICity>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Determine the city to travel to based on the required wares.
findListWithConsumptionMinimalDistance(ICity, IWare, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.ProductionConsumptionKnowledge
 
findListWithProductionsMinimalDistance(ICity, IWare, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.ProductionConsumptionKnowledge
 
findNextStopForBuying(ICity, IProductionConsumptionKnowledge, List<IWare>, INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Figure out what the next stop should be to supply the ware in the list waresOfInterest.
findNextStopForSelling(ICity, IProductionConsumptionKnowledge, List<IWare>, INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Figure out what the next stop should be to sell the ware in the list waresOfInterest.
findPath(Point2D, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.AStar
Implements the A-star algorithm and returns the path from source to destination
findProvidingWares(ICity, Collection<IWare>, Collection<ICity>, IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Find the city that provides the best match for supplying the wares while not being too far away.
findTavernEngine() - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
Find the tafern engine for the matching city.
findWaresOfInterest(List<Pair<IWare, Number>>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
FLEET_SIZE - ch.sahits.game.openpatrician.engine.player.strategy.EEventDecisionStrategyType
 
FleetBasedEventDecisionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy for taking event decitions based on the size of the fleet.
FleetBasedEventDecisionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.FleetBasedEventDecisionStrategy
 

G

getAIShipRefitTask(LocalDateTime, IShip, EShipUpgrade, IShipyard) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the refit task for an AI ship.
getAIShipRepairTask(LocalDateTime, IShip, IShipyard) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the repair task for an AI ship.
getBuildLocation(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HometownBiggestShipConstructionSelectionStrategy
The build location is always the players hometown.
getBuildLocation(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HometownRandomShipConstructionSelectionStrategy
The build location is always the players hometown.
getBuildLocation(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeBiggestShipConstructionSelectionStrategy
The build location is always the players hometown.
getBuildLocation(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeRandomShipConstructionSelectionStrategy
The build location is always the players hometown.
getBuildLocation(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.WestCityBiggestShipConstructionSelectionStrategy
The build location is always the players hometown.
getBuildLocation(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.WestCityRandomShipConstructionSelectionStrategy
The build location is always the players hometown.
getCaptain(ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseHireCaptainStrategy
 
getCaptainHireStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.AbstractEngine
Any engine may hold various child engines.
getChildren() - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.event.EventEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.CaptainEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.AutomaticTradingEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.BlacksmithEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.ChurchEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.GuildEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.AuctionEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.LoanerEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.land.city.TavernEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.player.HumanPlayerEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.player.PlayerEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.player.ReputationEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.sea.BlockadeEngine
 
getChildren() - Method in class ch.sahits.game.openpatrician.engine.sea.PirateEngine
 
getChurchUpgradeTask(IChurch, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Create the timed task for the church upgrade.
getCityToRestartTradeCycle(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy

The default implementation chooses the closest city.
getCityToRestartTradeCycle(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TradeRouteTradeStrategy

The default implementation chooses the closest city.
getCityWallBuildingTask(CityWall, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.EngineFactory
 
getCityWallBuyMaterialTask(ICityHall, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.EngineFactory
 
getClearCityEventTask(LocalDateTime, ICity) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the timed task to clear the city event.
getConstructionCity(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWareStrategy
Define where the ship should be constructed.
getConstructionCity(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectionConstructionHometownWaresStrategy
 
getConstructionCity(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectionConstructionTradingOfficeWaresStrategy
 
getConstructionCity(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectionConstructionWestCityWaresStrategy
 
getConstructionSelectionStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getConsumptionAmount(IWare) - Method in class ch.sahits.game.openpatrician.engine.player.CityProductionConsumptionKnowledge
 
getContext() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageStrategyHint
 
getDailyAIPlayerCheck() - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the daily check for the AI player
getEventDecisionStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getFleetCapacity(List<IShip>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseShipConstructionSelectionStrategy
Calculate the fleets total capacity.
getG(T) - Method in class ch.sahits.game.openpatrician.engine.sea.model.NodeData
 
getGraph() - Method in class ch.sahits.game.openpatrician.engine.sea.AStarGraphProvider
 
getGuildJoinStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getHeuristic() - Method in class ch.sahits.game.openpatrician.engine.sea.AStarHeuristicProvider
Retrieve the heuristic map.
getHireSailorStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getHireTradeManagerStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getKnowlege(ICity) - Method in class ch.sahits.game.openpatrician.engine.player.ProductionConsumptionKnowledge
 
getLastFire(ICity) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngineState
Retrieve the Date of the last fire.
getLastPlague(ICity) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngineState
Retrieve the Date of the last plague.
getLoadedWares(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Find all wares that are loaded on the ship.
getLoanerCollectMoneyAfterAuctionTask(IDebt, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Create the timed task for the loaner to collect money from the debitor after an auction.
getLoanerCollectMoneyTask(IDebt, IPlayer, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Create a timed task for the loaner to collect money.
getMarriageOfferDeclinedTask(IPlayer) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the timed task for the declined marriage offer.
getMarriageOfferTask(IAIPlayer, MarriageBrokerAnnouncementState, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve a timed task for the marriage offer.
getMarriageState(IPlayer) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngineState
Retrieve the current marriage state of the player.
getMostNeededWares(ICityProductionConsumptionKnowledge) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Figure out the ware that are most needed in the city.
getMostNeededWares(ICityProductionConsumptionKnowledge, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Figure out the ware that are most needed in the city.
getNewElectionTask(SortedMapRandomizedSameElements, Election, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.EngineFactory
 
getNextStep(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Retrieve the next trade step that should be executed and remove it from the list of an AI player.
getNodeData(T) - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
The nodedata corresponding to the current nodeId.
getNumberOfEmptyLargeWeaponSlots(IShip) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseBuyWeaponStrategy
Count the empty large weapon slots, where a large weapon can be placed.
getNumberOfEmptyWeaponSlots(IShip) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseBuyWeaponStrategy
Count the empty weapon slots.
getNumberOfPirateAttacks(List<PirateActivityEntry>) - Method in class ch.sahits.game.openpatrician.engine.sea.DangerService
Retrieve the number of pirate attacks.
getNumberOfPirates(List<PirateActivityEntry>) - Method in class ch.sahits.game.openpatrician.engine.sea.DangerService
Count the number of distinct pirates.
getNumberOfSuccessfulPirateAttacks(List<PirateActivityEntry>) - Method in class ch.sahits.game.openpatrician.engine.sea.DangerService
Retrieve the number of pirate attacks where the victim suffered.
getNumberOfWeaponSlots(IShip) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseBuyWeaponStrategy
Retrieve the number of weapon slots on the ship.
getObservationPeriodInDays() - Method in class ch.sahits.game.openpatrician.engine.sea.model.PirateActivity
Retrieve the number of days for which attacks are tracked back into the past.
getPeriodicalDailyUpdateTask() - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Update task that issues a PeriodicalDailyUpdate event on the event bus.
getPirateActivity() - Method in class ch.sahits.game.openpatrician.engine.sea.model.PirateActivity
Retrieve the most recent pirate activities.
getPirateRepairTask(LocalDateTime, INavigableVessel, ISeaPirate, IShipyard) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the repair task for a pirate vessel
getPoint(double, double) - Method in class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
 
getPostStateDialogMessageTask(LocalDateTime, IDialogState, IPlayer, String, Object[]) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the timed task to post a state based dialog message if the player is human.
getProductionAmount(IWare) - Method in class ch.sahits.game.openpatrician.engine.player.CityProductionConsumptionKnowledge
 
getRefitShipTask(LocalDateTime, IShip, EShipUpgrade, ICityPlayerProxyJFX, IShipyard) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the ship refit task.
getRepairStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getRepairTask(LocalDateTime, IShip, ICityPlayerProxyJFX, IShipyard) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the ship repair task.
getSegments(Point2D, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
 
getShipBuildTask(LocalDateTime, EShipType, IPlayer, Point2D, IShipyard) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the ship build task.
getShipsInSegment(Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
getShipsInSegments(Point2D, int) - Method in class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
getShipUpgradeStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getShipyardEngine() - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
getSortedProductionWares() - Method in class ch.sahits.game.openpatrician.engine.player.CityProductionConsumptionKnowledge
 
getStoredAmount(IWare) - Method in class ch.sahits.game.openpatrician.engine.player.CityProductionConsumptionKnowledge
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EEventDecisionStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireCaptainStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireSailorStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireTradeManagerStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.ETakeLoanStrategyType
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EUpgradeShipStrategyTypes
 
getStrategy() - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EWeaponBuyStrategyType
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectCelebrationWaresStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionHometownCogWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionHometownCrayerWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionHometownHolkWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionHometownSnaikkaWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionTradingOfficeCogWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionTradingOfficeCrayerWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionTradingOfficeHolkWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionTradingOfficeSnaikkaWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWestCityCogWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWestCityCrayerWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWestCityHolkWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectConstructionWestCitySnaikkaWareStrategy
 
getStrategyType() - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectionWaresStrategy
Retrieve the strategy type for this strategy.
getTakeLoanStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getTangentialSegments(Point2D, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
 
getTradeStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getUpdatePopulationTask(LocalDateTime, EPopulationClass, int, ICity) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the timed task to update the population of a certain class.
getViolationTask(ICityViolation, IAldermanOffice, LocalDateTime) - Method in class ch.sahits.game.openpatrician.engine.EngineFactory
 
getVoteTask(boolean, LocalDateTime, Ballot) - Method in class ch.sahits.game.openpatrician.engine.EngineFactory
 
getWaresNeedIn(IProductionConsumptionKnowledge, ICityProductionConsumptionKnowledge, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Figure out what wares are needed in nextStop, that can be provided in the current town.
getWeaponAmount(IArmory, EWeapon) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseBuyWeaponStrategy
Retrieve the amount of weapons available in the armory.
getWeaponBuyStrategies() - Method in class ch.sahits.game.openpatrician.engine.player.DefaultStrategyProvider
 
getWeaponConstructionFinishedTask(IArmory, EWeapon) - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve the timed task for finishing a weapon construction.
getWeeklyCityCheck() - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve a weekly city check task.
getWeeklyLoanerCheck() - Method in class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
Retrieve a weekly loaner check task.
GraphAStar<T> - Class in ch.sahits.game.openpatrician.engine.sea.model
The graph represents an undirected graph.
GraphAStar(Map<T, ObjectDoubleMap<T>>) - Constructor for class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
 
GuildEngine - Class in ch.sahits.game.openpatrician.engine.land.city
Engine to interact with the guild
GuildEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.GuildEngine
 
GuildJoinTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step to decide if a player should join the guild.
GuildJoinTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.GuildJoinTradeStep
 

H

handle(long) - Method in class ch.sahits.game.openpatrician.engine.sea.model.ShipPositionUpdateTask
 
handleBid(AuctionBid) - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.AuctionEngine
 
handleBidLevelChange(AuctionBidLevel) - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.AuctionEngine
 
handleBlockadeConvoyReturns(ShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.BlockadeEngine
 
handleBlockadeStart(BlockadeShipRequestEvent) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleBuildingAuctionFinished(BuildingAuctionFinished) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleBuildingAuctionFinished(BuildingAuctionFinished) - Method in class ch.sahits.game.openpatrician.engine.player.HumanPlayerEngine
 
handleBuildingNotAuction(BuildingNotAuctioned) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleBuildingNotAuction(BuildingNotAuctioned) - Method in class ch.sahits.game.openpatrician.engine.player.HumanPlayerEngine
 
handleCityAdd(FoundingCityBecomesAccessible) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
Handle the event where a new city is added to the map.
handleClockTicked(ClockTick) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
handleClockTickIntervallChange(ClockTickIntervalChange) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
handleDailyUpdate(ClockTickDayChange) - Method in class ch.sahits.game.openpatrician.engine.land.city.BlacksmithEngine
 
handleDailyUpdate(ClockTickDayChange) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
handleDailyUpdate(ClockTickDayChange) - Method in class ch.sahits.game.openpatrician.engine.land.city.GuildEngine
 
handleDailyUpdate(ClockTickDayChange) - Method in class ch.sahits.game.openpatrician.engine.player.PlayerEngine
 
handleDailyUpdate(PeriodicalDailyUpdate) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
handleDailyUpdate(PeriodicalDailyUpdate) - Method in class ch.sahits.game.openpatrician.engine.land.city.LoanerEngine
 
handleDailyUpdate(PeriodicalDailyUpdate) - Method in class ch.sahits.game.openpatrician.engine.sea.BlockadeEngine
 
handleDailyUpdates(ClockTickDayChange) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngine
Trigger events that can happen any day like plague, fire, child birth
handleDailyUpdates(PeriodicalDailyUpdate) - Method in class ch.sahits.game.openpatrician.engine.land.city.AutomaticTradingEngine
Check if the update message is addressed to this instance and find the targeted Tradeing office.
handleDayChange(ClockTickDayChange) - Method in class ch.sahits.game.openpatrician.engine.land.CaptainEngine
 
handleDayChange(ClockTickDayChange) - Method in class ch.sahits.game.openpatrician.engine.land.city.TavernEngine
 
handleEndOfMonthUpdates(PeriodicalTimeMonthEndUpdate) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngine
Trigger events at the end of month like rank update.
handleEndOfWeekUpdates(PeriodicalTimeWeekEndUpdate) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngine
Trigger events to be checked at the end of week like sending the bill statement.
handleEndOfYearUpdate(PeriodicalTimeYearEndUpdate) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
handleGameLoad(GameStateChange) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
Listen to the start of the game loading to continue with the handling of ship arrival events.
handleGameLoad(GameStateChange) - Method in class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
handleGameSpeedChange(ClockTickIntervalChange) - Method in class ch.sahits.game.openpatrician.engine.sea.model.ShipPositionUpdateTask
 
handleGameStartEvent(NewGameClient) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
handleHireSailors(HireSailorEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Andling the hiring of sailors.
handleMarriageEvent(IAIPlayer, MarriageBrokerAnnouncementState) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleMarriageEvent(IAIPlayer, MarriageBrokerAnnouncementState) - Method in interface ch.sahits.game.openpatrician.engine.player.IAIEventHandler
Handle the offer of a marriage broker.
handleMonthlyUpdate(PeriodicalTimeMonthEndUpdate) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
handleNewPirate(NewPirateEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.PirateEngine
Handle the even when a new pirate becomes available.
handleOrderBuildEvent(ShipyardOrderBuild) - Method in class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
Recieve the event from the event bus and delegate it.
handleORderRefit(ShipyardOrderRefit) - Method in class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
Recieve the event from the event bus and delegate it.
handleOrderRepair(ShipyardOrderRepair) - Method in class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
Recieve the event from the event bus and delegate it.
handlePause(PauseGame) - Method in class ch.sahits.game.openpatrician.engine.ClockTickTimer
 
handlePirateDefeated(ShipAttackEvent) - Method in class ch.sahits.game.openpatrician.engine.player.ReputationEngine
 
handlePirateDefeated(ShipDefenseEvent) - Method in class ch.sahits.game.openpatrician.engine.player.ReputationEngine
 
handleRefitFinished(RefitFinishedEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Handle the event of the ship coming back from repair and the trade steps have to be picked up again.
handleRepairFinished(RepairFinishedEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Handle the event of the ship coming back from repair and the trade steps have to be picked up again.
handleRepairFinished(RepairFinishedEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.PirateEngine
Handle the event for the finished repair.
handleRepairPirateShip(ShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.PirateEngine
 
handleResume(ResumeGame) - Method in class ch.sahits.game.openpatrician.engine.ClockTickTimer
 
handleShipArrival(ShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
handleShipArrivesInCity(ShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleShipArrivesInPort(IShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageDeliveryTradeStrategy
 
handleShipArrivesInPort(IShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CheapProductionTradeStrategy
 
handleShipArrivesInPort(IShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectionWaresStrategy
 
handleShipArrivesInPort(IShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.DynamicTradeRouteStrategy
 
handleShipArrivesInPort(IShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.ProductionChainTradeStrategy
 
handleShipArrivesInPort(IShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.SupplyCentralTradingStationAIStrategy
 
handleShipArrivesInPort(IShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.SupplyHometownAIStrategy
 
handleShipArrivesInPort(IShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TradeRouteTradeStrategy
 
handleShipAuctionFinished(ShipAuctionFinished) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleShipAuctionFinished(ShipAuctionFinished) - Method in class ch.sahits.game.openpatrician.engine.player.HumanPlayerEngine
 
handleShipBreaksBlockade(ShipNearingPortEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.BlockadeEngine
 
handleShipConstructionFinished(IShip, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
Method to handle the finishing of a ship construction.
handleShipDeparture(ShipLeavingPort) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
handleShipEntersPort(ShipEntersPortEvent) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngine
Trigger the event for a marriage broker.
handleShipMove(ShipPositionUpdateEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
handleShipNearingPort(ShipNearingPortEvent) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
handleShipNotAuction(ShipNotAuctioned) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleShipNotAuction(ShipNotAuctioned) - Method in class ch.sahits.game.openpatrician.engine.player.HumanPlayerEngine
 
handleShipPositionUpdate(ShipPositionUpdateEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.PirateEngine
Check if there is a ship near the new position and decide if an attack should be initiated.
handleShipReachesDestination(ShipArrivesAtDestinationEvent) - Method in class ch.sahits.game.openpatrician.engine.player.PlayerEngine
 
handleShipReachesDestination(ShipArrivesAtDestinationEvent) - Method in class ch.sahits.game.openpatrician.engine.sea.PirateEngine
Ship has reached it's destination, select a new one.
handleSpecialMissionFinished(SpecialMissionFinishedEvent) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
Handle the reinitialisation after finishing a special mission.
handleTradeStrategyStart(GraphInitialisationComplete) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleTradingOfficeBuilt(BuildingFinished) - Method in class ch.sahits.game.openpatrician.engine.land.city.AutomaticTradingEngine
When a traiding office is build add it.
handleWeeklyTasks(PeriodicalTimeWeekEndUpdate) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
 
handleWeeklyUpdate(ClockTickDayChange) - Method in class ch.sahits.game.openpatrician.engine.player.PlayerEngine
Handling the daily update events.
handleWeeklyUpdate(PeriodicalTimeWeekEndUpdate) - Method in class ch.sahits.game.openpatrician.engine.land.city.ChurchEngine
 
handleWeeklyUpdate(PeriodicalTimeWeekEndUpdate) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityHallEngine
 
handleWeeklyUpdate(PeriodicalTimeWeekEndUpdate) - Method in class ch.sahits.game.openpatrician.engine.sea.PirateEngine
Periodically check if there is a free pirate and if not, create one.
handleWrappedStateEvents(TargetedDialogStateWrapper) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngine
Handle events that are targeted at a player and contain a dialog state.
hasMoreTradeSteps(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Check whether the AI player has more trade steps
heuristicForSourceAvailable(Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarHeuristicProvider
Check if the heuristic for a target location is calculated.
hire(IAIPlayer, IShip, ICaptain, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseHireCaptainStrategy
 
HIRE_ALWAYS - ch.sahits.game.openpatrician.engine.player.strategy.EHireCaptainStrategyType
 
HIRE_FOR_SHIPS_ABOVE_300 - ch.sahits.game.openpatrician.engine.player.strategy.EHireCaptainStrategyType
 
HIRE_NEVER - ch.sahits.game.openpatrician.engine.player.strategy.EHireCaptainStrategyType
 
HireCaptainAlwaysStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy for hiring a captain which always hires the captain if possible.
HireCaptainAlwaysStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HireCaptainAlwaysStrategy
 
HireCaptainForMediumShipsStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Hire a captain for ships above capacity size of 300.
HireCaptainForMediumShipsStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HireCaptainForMediumShipsStrategy
 
HireCaptainNeverStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to never hire a captain.
HireCaptainNeverStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HireCaptainNeverStrategy
 
HireDismissTradeManagerMinStorageCapacityStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy based hiring on storage capacity and usage.
HireDismissTradeManagerMinStorageCapacityStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HireDismissTradeManagerMinStorageCapacityStrategy
 
HireDismissTradeManagerStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Trade step to decide weather to hire or fire a trade manager.
HireDismissTradeManagerStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HireDismissTradeManagerStrategy
 
HireDismissTradeManagerTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step to decide weather to hire or fire a trade manager.
HireDismissTradeManagerTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.HireDismissTradeManagerTradeStep
 
hireOrDismiss(ICity, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseHireDismissTradeManagerStrategy
 
hireOrFireTradeManager(ICity, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HireDismissTradeManagerMinStorageCapacityStrategy
Hire if there is storage capacity larger than 1000 barrels and 80% are occupied.
hireOrFireTradeManager(ICity, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HireDismissTradeManagerStrategy
 
HireSailorsStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step for hiring sailors on a ship.
HireSailorsStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.HireSailorsStep
 
hireSteward(ITradingOffice) - Method in class ch.sahits.game.openpatrician.engine.player.TradeManagerService
Hire a steward for the trading office.
HOMETOWN_BIGGEST - ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
 
HOMETOWN_COG - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
HOMETOWN_CRAYER - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
HOMETOWN_HOLK - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
HOMETOWN_RANDOM - ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
 
HOMETOWN_SNAIKKA - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
HometownBiggestShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This strategy builds the biggest possible ship type in the hometown.
HometownBiggestShipConstructionSelectionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HometownBiggestShipConstructionSelectionStrategy
 
HometownJoinGuildMinCashStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Always join the guild if the player has a certain amount of cash dependent on the entry fee.
HometownJoinGuildMinCashStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HometownJoinGuildMinCashStrategy
 
HometownRandomShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This strategy builds the biggest possible ship type in the hometown.
HometownRandomShipConstructionSelectionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HometownRandomShipConstructionSelectionStrategy
 
HometownRepairStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Repair strategy to repair the ship in the hometown.
HometownRepairStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.HometownRepairStrategy
 
HumanPlayerEngine - Class in ch.sahits.game.openpatrician.engine.player
Engine handling automated tasks that are specific to a human player only.
HumanPlayerEngine() - Constructor for class ch.sahits.game.openpatrician.engine.player.HumanPlayerEngine
 

I

IAICityDependentShipConstructionStrategy - Interface in ch.sahits.game.openpatrician.engine.player.strategy
Interface for construction strategies that need to set the construction city from the outside.
IAIEventHandler - Interface in ch.sahits.game.openpatrician.engine.player
Handle the events triggered by the EventEngine and targeted at an AI player
imageService - Variable in class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
 
init() - Method in class ch.sahits.game.openpatrician.engine.land.CaptainEngine
 
initGraph(HeuristicGraphInitialisationComplete) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarGraphProvider
 
initialize() - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
 
initializedGraph(GraphInitialisationComplete) - Method in class ch.sahits.game.openpatrician.engine.sea.PirateEngine
 
initializeNewBlockade(ICity) - Method in class ch.sahits.game.openpatrician.engine.sea.BlockadeEngine
 
initializeNewShip(IShip, IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.AIPlayerEngine
Method to handle the initializing of a trade strategy for a new ship.
initializeNewShip(IShip, IAIPlayer) - Method in interface ch.sahits.game.openpatrician.engine.player.IAIEventHandler
Method to handle the initializing of a trade strategy for a new ship.
initializeTradeCycle(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageDeliveryTradeStrategy
 
initializeTradeCycle(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CheapProductionTradeStrategy
 
initializeTradeCycle(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CollectionWaresStrategy
 
initializeTradeCycle(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.DynamicTradeRouteStrategy
 
initializeTradeCycle(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.ProductionChainTradeStrategy
 
initializeTradeCycle(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.SupplyCentralTradingStationAIStrategy
 
initializeTradeCycle(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.SupplyHometownAIStrategy
 
initializeTradeCycle(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TradeRouteTradeStrategy
 
initShipConstruction(IAIPlayer, INavigableVessel, EShipType) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HometownBiggestShipConstructionSelectionStrategy
 
initShipConstruction(IAIPlayer, INavigableVessel, EShipType) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HometownRandomShipConstructionSelectionStrategy
 
initShipConstruction(IAIPlayer, INavigableVessel, EShipType) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeBiggestShipConstructionSelectionStrategy
 
initShipConstruction(IAIPlayer, INavigableVessel, EShipType) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeRandomShipConstructionSelectionStrategy
 
initShipConstruction(IAIPlayer, INavigableVessel, EShipType) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.WestCityBiggestShipConstructionSelectionStrategy
 
initShipConstruction(IAIPlayer, INavigableVessel, EShipType) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.WestCityRandomShipConstructionSelectionStrategy
 
inject(IAIPlayer, INavigableVessel, ITradeStep) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Add a new trade step to the begining of the list.
IPathConverter - Interface in ch.sahits.game.openpatrician.engine.sea
Converts a list of point into a shape that can be used as path.
isActive(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.event.AIPlayerEngineState
Check if a vessel is currently the active vessel doing trading.
isBuyReason() - Method in enum ch.sahits.game.openpatrician.engine.player.ETradeReason
Is the reason a buy reason.
isEngagedInTrading(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.AITradeChecker
Check if the vessel is engaged in trading.
isMatchingTradeStrategy(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
isNeeded(ICityProductionConsumptionKnowledge, IWare) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
Check if the ware is needed in a city.
isOnSea(Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
Verify that a location is actually on sea.
isSelectable(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageDeliveryTradeStrategy
 
isSelectable(IAIPlayer, INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.SupplyCentralTradingStationAIStrategy
 
iterator() - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
Returns an iterator that can traverse the nodes of the graph

J

join(IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseJoinGuildStrategy
 
JOIN_IN_HOMETOWN - ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
 
JOIN_NEAR_HOMETOWN - ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
 
JOIN_NEAR_TRADING_OFFICE - ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
 
JOIN_WITH_TRADING_OFFICE - ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
 

K

KontorTypeCityRepairStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Repair strategy defines only repairs in cities of kontor type Kontor.
KontorTypeCityRepairStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.KontorTypeCityRepairStrategy
 

L

loadedGame(GameStateChange) - Method in class ch.sahits.game.openpatrician.engine.sea.model.ShipPositionUpdateTask
 
LoanerCollectMoneyAfterAuctionTimedTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task for the loaner to collect money after an auction.
LoanerCollectMoneyAfterAuctionTimedTask(IDebt, LocalDateTime) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.LoanerCollectMoneyAfterAuctionTimedTask
 
LoanerCollectMoneyWithoutAuctionTimedTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task for the loaner to collect money without a prior auction.
LoanerCollectMoneyWithoutAuctionTimedTask(IDebt, IPlayer, LocalDateTime) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.LoanerCollectMoneyWithoutAuctionTimedTask
 
LoanerEngine - Class in ch.sahits.game.openpatrician.engine.land.city
Engine for controlling all the loaners.
LoanerEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.LoanerEngine
 
LocationTracker - Class in ch.sahits.game.openpatrician.engine.sea
Component that helps split up the amount of ships into segements of the navigable map.
LocationTracker() - Constructor for class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
LOW_MONEY_LONG_DURATION - ch.sahits.game.openpatrician.engine.player.strategy.ETakeLoanStrategyType
 

M

map - Variable in class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
 
mapInitializedBean() - Method in class ch.sahits.game.openpatrician.engine.EngineConfiguration
 
MapLocationDetector - Class in ch.sahits.game.openpatrician.engine.sea
 
MapLocationDetector() - Constructor for class ch.sahits.game.openpatrician.engine.sea.MapLocationDetector
 
MARRIAGE_UNDER_CONSIDERATION - ch.sahits.game.openpatrician.engine.event.EEventState
A marriage broker anounced his services and the marriage offer is not declined.
MarriageOfferDeclinedTimedTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task for the case where the marriage offer was not accepted.
MarriageOfferDeclinedTimedTask(IPlayer) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.MarriageOfferDeclinedTimedTask
 
MarriageOfferTask - Class in ch.sahits.game.openpatrician.engine.event.task
Created by andi on 25.03.17.
MarriageOfferTask(IAIPlayer, MarriageBrokerAnnouncementState, LocalDateTime) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.MarriageOfferTask
 
MoneyBasedEventDecisionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This event decision strategy is based on the available cash amount.
MoneyBasedEventDecisionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.MoneyBasedEventDecisionStrategy
 

N

NearHometownJoinGuildMinCashStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Always join the guild if the player has a certain amount of cash dependent on the entry fee.
NearHometownJoinGuildMinCashStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.NearHometownJoinGuildMinCashStrategy
 
NearTradingOfficeJoinGuildMinCashStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Always join the guild if the player has a certain amount of cash dependent on the entry fee.
NearTradingOfficeJoinGuildMinCashStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.NearTradingOfficeJoinGuildMinCashStrategy
 
NextBidTask - Class in ch.sahits.game.openpatrician.engine.land.city.internal
Task for an auction bid.
NextBidTask(IAuction) - Constructor for class ch.sahits.game.openpatrician.engine.land.city.internal.NextBidTask
 
NodeData<T> - Class in ch.sahits.game.openpatrician.engine.sea.model
NodeData stores all information of the node needed by the AStar algorithm.
NodeData(T, ObjectDoubleMap<T>) - Constructor for class ch.sahits.game.openpatrician.engine.sea.model.NodeData
 

O

OFFER_VALID_DURATION - Static variable in class ch.sahits.game.openpatrician.engine.event.task.MarriageOfferDeclinedTimedTask
 
onFinish() - Method in class ch.sahits.game.openpatrician.engine.ClockTickTimer
 
ONLY_HOMEWOTN - ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
 
ONLY_KONTOR_TYPE - ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
 
ONLY_TRADINGOFFICE - ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
 
ONLY_WEST - ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
 
OnlyTradingOfficeRepairStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Repair strategy for only repairing in town where the player has a trading office.
OnlyTradingOfficeRepairStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.OnlyTradingOfficeRepairStrategy
 
onTick() - Method in class ch.sahits.game.openpatrician.engine.ClockTickTimer
 
OUTRIGGER - ch.sahits.game.openpatrician.engine.sea.ESeaFightType
Fight of an outrigger against an attacking fleet.

P

paralleizationExecutor() - Method in class ch.sahits.game.openpatrician.engine.EngineConfiguration
 
pause(PauseGame) - Method in class ch.sahits.game.openpatrician.engine.sea.model.ShipPositionUpdateTask
 
PayBackLoanTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step to pay back a loan.
PayBackLoanTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.PayBackLoanTradeStep
 
PirateActivity - Class in ch.sahits.game.openpatrician.engine.sea.model
Storage container for keeping track of pirate activity.
PirateActivity() - Constructor for class ch.sahits.game.openpatrician.engine.sea.model.PirateActivity
 
PirateActivityEntry - Class in ch.sahits.game.openpatrician.engine.sea.model
Entry to keep track of pirate activity.
PirateActivityEntry() - Constructor for class ch.sahits.game.openpatrician.engine.sea.model.PirateActivityEntry
 
PirateEngine - Class in ch.sahits.game.openpatrician.engine.sea
Engine governing all pirates.
PirateEngine() - Constructor for class ch.sahits.game.openpatrician.engine.sea.PirateEngine
 
PlayerEngine - Class in ch.sahits.game.openpatrician.engine.player
Base engine representing a player.
PlayerEngine() - Constructor for class ch.sahits.game.openpatrician.engine.player.PlayerEngine
 
pointInterner - Variable in class ch.sahits.game.openpatrician.engine.sea.BaseGraphCalulationService
 
pointInterner - Variable in class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
PostStateDialogToHumanPlayerTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task to post a dialog through a state
PostStateDialogToHumanPlayerTask(LocalDateTime, IDialogState, IPlayer, String, Object[]) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.PostStateDialogToHumanPlayerTask
 
postToHumanPlayer(IDialogState, IPlayer, String, Object...) - Method in class ch.sahits.game.openpatrician.engine.event.EventService
Post a message that will end up in the message queue.
PRODUCED_WARE_IN_CITY - ch.sahits.game.openpatrician.engine.player.ETradeReason
Ware is produced in the city
PRODUCED_WARE_IN_WORKSHOP - ch.sahits.game.openpatrician.engine.player.ETradeReason
Ware is produced in players workshop
PRODUCTION_CHAIN - ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
ProductionChainMissionData - Class in ch.sahits.game.openpatrician.engine.player
 
ProductionChainMissionData() - Constructor for class ch.sahits.game.openpatrician.engine.player.ProductionChainMissionData
 
ProductionChainTradeStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This trade strategy focuses on a production chain with supplying wares for the production and selling the produced wares to a different city.
ProductionChainTradeStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.ProductionChainTradeStrategy
 
ProductionConsumptionKnowledge - Class in ch.sahits.game.openpatrician.engine.player
Implementation of the knowlege of all cities
ProductionConsumptionKnowledge() - Constructor for class ch.sahits.game.openpatrician.engine.player.ProductionConsumptionKnowledge
 

R

RandomShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Base strategy to build the bigest possible ships at a given location.
RandomShipConstructionSelectionStrategy(int, int, int) - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.RandomShipConstructionSelectionStrategy
 
reduceLinePoints(List<Point2D>) - Method in interface ch.sahits.game.openpatrician.engine.sea.IPathConverter
Reduce the number of points that are needed to describe the path.
refitAIShip(IShipyard, IShip) - Method in class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
 
register() - Method in class ch.sahits.game.openpatrician.engine.sea.model.ShipPositionUpdateTask
 
registerGameLoad(GameStateChange) - Method in class ch.sahits.game.openpatrician.engine.sea.AStarHeuristicProvider
 
regroup(List<IShip>, IConvoy) - Method in class ch.sahits.game.openpatrician.engine.sea.SeaFightService
Update the convoy with the ships of the list.
regroup(List<IShip>, IShipGroup) - Method in class ch.sahits.game.openpatrician.engine.sea.SeaFightService
Create a group of ships from the list of ships.
remapReputation(ICity, IPlayer) - Method in class ch.sahits.game.openpatrician.engine.land.city.ReputationCalculator
Remap the linear reputation stored in a city to value that are used in ranks.
remove(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
repair(IShipyard, IShipGroup) - Method in class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
Order the repair of a group of pirate ship.
repair(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseRepairStrategy
 
repairAIShip(IShipyard, IShip) - Method in class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
Order the repair of a single AI owned ship.
repairPirateShip(IShipyard, IShip) - Method in class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
Order the repair of a single pirate ship.
RepairPirateShipTask - Class in ch.sahits.game.openpatrician.engine.event.task
Special implementation for the repair task for pirate ships, which do not have a player as owner and may be ordered to repair as a whole group
RepairPirateShipTask(LocalDateTime, INavigableVessel, ISeaPirate, IShipyard) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.RepairPirateShipTask
 
ReputationCalculator - Class in ch.sahits.game.openpatrician.engine.land.city
Calculator for a players reputation
ReputationCalculator() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.ReputationCalculator
 
ReputationEngine - Class in ch.sahits.game.openpatrician.engine.player
Engine to handle the reputation changes.
ReputationEngine() - Constructor for class ch.sahits.game.openpatrician.engine.player.ReputationEngine
 
require(IWare, int) - Method in class ch.sahits.game.openpatrician.engine.player.CollectWaresMissionData
 
REQUIRE_FOR_BASIC_NEEDS - ch.sahits.game.openpatrician.engine.player.ETradeReason
Ware is required to cover basic needs in city
REQUIRE_FOR_CITY_PRODUCTION - ch.sahits.game.openpatrician.engine.player.ETradeReason
Ware is required for production in the city
REQUIRE_FOR_PRODUCTION - ch.sahits.game.openpatrician.engine.player.ETradeReason
Ware is required for production in players workshops
resetMarriedState(IPlayer) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngineState
Remove the player form the marriage state map.
resume(ResumeGame) - Method in class ch.sahits.game.openpatrician.engine.sea.model.ShipPositionUpdateTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.ChurchUpgradeTimedTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.ClearCityEventTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.LoanerCollectMoneyAfterAuctionTimedTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.LoanerCollectMoneyWithoutAuctionTimedTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.MarriageOfferDeclinedTimedTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.MarriageOfferTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.PostStateDialogToHumanPlayerTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.RepairPirateShipTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.UpdatePopulationTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.WeaponConstructionTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.WeeklyCityCheckTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.event.task.WeeklyLoanerCheckTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.AddViolationTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.CityWallBuildingTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.CityWallMaterialBuyingTask
Check the amount of bricks required and if the price is not too heigh buy it.
run() - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.ElectionTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.NextBidTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.VoteTask
 
run() - Method in class ch.sahits.game.openpatrician.engine.player.DailyPlayerUpdater
 
run() - Method in class ch.sahits.game.openpatrician.engine.time.DailyUpdateTask
 

S

schedulableServerThreadPool() - Method in class ch.sahits.game.openpatrician.engine.EngineConfiguration
 
SeafaringService - Class in ch.sahits.game.openpatrician.engine.sea
Service keeping track of all the ships that are traveling.
SeafaringService() - Constructor for class ch.sahits.game.openpatrician.engine.sea.SeafaringService
 
SeaFightContext - Class in ch.sahits.game.openpatrician.engine.sea
Context class for the sea fight service.
SeaFightContext(ESeaFightType) - Constructor for class ch.sahits.game.openpatrician.engine.sea.SeaFightContext
 
SeaFightService - Class in ch.sahits.game.openpatrician.engine.sea
The sea fight service helps calculating the winner of a sea fight based on two sets of ships.
SeaFightService() - Constructor for class ch.sahits.game.openpatrician.engine.sea.SeaFightService
 
selectCollectingVessel(IAIPlayer, EShipType) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseShipConstructionSelectionStrategy
 
selectShip(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BlockadeStrategy
 
SellDumpTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Implements the sell step for selling a single ware irrelevant of the price.
SellDumpTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.SellDumpTradeStep
 
SellTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Implements the sell step for selling a single ware up to a minimum sell price.
SellTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.SellTradeStep
 
ServerSideTaskFactory - Class in ch.sahits.game.openpatrician.engine.event.task
 
ServerSideTaskFactory() - Constructor for class ch.sahits.game.openpatrician.engine.event.task.ServerSideTaskFactory
 
serverTimer() - Method in class ch.sahits.game.openpatrician.engine.EngineConfiguration
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EEventDecisionStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireCaptainStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireSailorStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireTradeManagerStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.ETakeLoanStrategyType
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EUpgradeShipStrategyTypes
 
setApplicationContext(ApplicationContext) - Method in enum ch.sahits.game.openpatrician.engine.player.strategy.EWeaponBuyStrategyType
 
setConstructionCity(ICity) - Method in interface ch.sahits.game.openpatrician.engine.player.strategy.IAICityDependentShipConstructionStrategy
Set the city where the construction of the new ship happens.
setContext(ITradeStrategyHintContext) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.CentralStorageStrategyHint
 
setG(T, double) - Method in class ch.sahits.game.openpatrician.engine.sea.model.NodeData
 
setMarriageState(IPlayer, EEventState) - Method in class ch.sahits.game.openpatrician.engine.event.EventEngineState
Set or update the marriage state of a player.
setupOrUpdateAutomaticTrading(ITradingOffice) - Method in class ch.sahits.game.openpatrician.engine.player.TradeManagerService
Ensure that the automated trading values are up to date.
ShipPositionUpdateTask - Class in ch.sahits.game.openpatrician.engine.sea.model
Task to periodically update the ships positions.
ShipPositionUpdateTask() - Constructor for class ch.sahits.game.openpatrician.engine.sea.model.ShipPositionUpdateTask
 
ShipyardEngine - Class in ch.sahits.game.openpatrician.engine.land.city
The shipyard engine handled the activities on a shipyard.
ShipyardEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.ShipyardEngine
 
shouldBeTrading(INavigableVessel) - Method in class ch.sahits.game.openpatrician.engine.player.AITradeChecker
Check weather the vessel should be engaged in trading.
shouldBuildShipType(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BiggestShipConstructionSelectionStrategy
 
shouldBuildShipType(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.RandomShipConstructionSelectionStrategy
 
shouldBuyWeapons(IShip, IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BuyWeaponHighPirateActivityHalfSlotsFilledStrategy
Weapons should be bought when: There was a pirate attack every 2 weeks There are free weapon slots at least 10'000 cash is available Then the amounts are calculated: one hand weapon per sailor Half the amount of large weapons then there are slots Half the amount of remaining open slots for small weapons ~1/3 times the amount of free weapon slots as strength
shouldBuyWeapons(IShip, IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BuyWeaponHighPirateSuccessAllSlotsFilledStrategy
Weapons should be bought when: There was a successful pirate attack every 2 weeks There are free weapon slots at least 10'000 cash is available Then the amounts are calculated: one hand weapon per sailor Full the amount of large weapons then there are slots Full the amount of remaining open slots for small weapons 1.5 times the amount of free weapon slots as strength
shouldBuyWeapons(IShip, IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BuyWeaponHighPirateSuccessHalfSlotsFilledStrategy
Weapons should be bought when: There was a successful pirate attack every 2 weeks There are free weapon slots at least 10'000 cash is available Then the amounts are calculated: one hand weapon per sailor Half the amount of large weapons then there are slots Half the amount of remaining open slots for small weapons ~1/3 times the amount of free weapon slots as strength
shouldHire(IAIPlayer, IShip, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseHireCaptainForShipAboveSizeStrategy
 
shouldHire(IAIPlayer, IShip, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HireCaptainAlwaysStrategy
 
shouldHire(IAIPlayer, IShip, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HireCaptainNeverStrategy
 
shouldJoin(IAIPlayer, ICity, Optional<INavigableVessel>) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseJoinGuildStrategy
Base requirements are: there has to be a guild, not yet a member and enough money to join.
shouldOrderCelebration(IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.FleetBasedEventDecisionStrategy
 
shouldOrderCelebration(IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.MoneyBasedEventDecisionStrategy
 
shouldOrderCelebration(IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.StorageBasedEventDecisionStrategy
 
shouldOrderNewConstruction(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.BaseShipConstructionSelectionStrategy
Ship is ordered if enough cash is available and the fleet size and fleet capacity is below certain thresholds, as defined at construction time.
shouldRepair(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.EightyPercentRepairStrategy
 
shouldRepair(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.HometownRepairStrategy
Only repair the ship in the hometown unless it is realy badly damaged.
shouldRepair(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.KontorTypeCityRepairStrategy
Unless the damage is quite heavy repares are only conducted in cities of type Kontor.
shouldRepair(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.OnlyTradingOfficeRepairStrategy
Unless the damage is heave only in towns where hte vessel owner has a trading office repairs should be conducted.
shouldRepair(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.WestRepairStrategy
Should repair only if deamage is heavy or if the ship is in a city in the west half of the map.
shouldTakeLoan(IAIPlayer) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TakeLoanLowMoneyLongestDurationStrategy
 
shouldUpgrade(IShip) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.DangerBasedShipUpgradeStrategy
 
size() - Method in class ch.sahits.game.openpatrician.engine.sea.model.GraphAStar
 
SocialRankChecker - Class in ch.sahits.game.openpatrician.engine.player
This checker checks at the end of month if the next social rank can be reached
SocialRankChecker() - Constructor for class ch.sahits.game.openpatrician.engine.player.SocialRankChecker
 
STANDARD - ch.sahits.game.openpatrician.engine.sea.ESeaFightType
Standard sea fight between two fleets.
start(IGame) - Method in class ch.sahits.game.openpatrician.engine.land.city.CityEngine
Start the engine.
startAuction(IAuction, List<IAIPlayer>) - Method in class ch.sahits.game.openpatrician.engine.land.city.internal.AuctionEngine
 
startNewGameBean() - Method in class ch.sahits.game.openpatrician.engine.EngineConfiguration
 
StorageBasedEventDecisionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Event decision strategy based on the stored amount of required goofs.
StorageBasedEventDecisionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.StorageBasedEventDecisionStrategy
 
SUPPLY_HOMETOWN - ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
SupplyCentralTradingStationAIStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy to supply a central station with required wares.
SupplyCentralTradingStationAIStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.SupplyCentralTradingStationAIStrategy
 
SupplyCityMissionData - Class in ch.sahits.game.openpatrician.engine.player
The mission data for the SupplyHometownAIStrategy stores the wares that should be delivered to the hometown in the current cyle
SupplyCityMissionData() - Constructor for class ch.sahits.game.openpatrician.engine.player.SupplyCityMissionData
 
SupplyHometownAIStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
AI strategy for trading with the aim to supply the players home town.
SupplyHometownAIStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.SupplyHometownAIStrategy
 

T

takeLoan(IAIPlayer, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.TakeLoanLowMoneyLongestDurationStrategy
 
TakeLoanLowMoneyLongestDurationStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Strategy for loan taking.
TakeLoanLowMoneyLongestDurationStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.TakeLoanLowMoneyLongestDurationStrategy
 
TakeLoanTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Implements the trade step for taking a loan.
TakeLoanTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.TakeLoanTradeStep
 
TavernEngine - Class in ch.sahits.game.openpatrician.engine.land.city
Every city has a corresponding tavern engine.
TavernEngine() - Constructor for class ch.sahits.game.openpatrician.engine.land.city.TavernEngine
 
tick() - Method in class ch.sahits.game.openpatrician.engine.ClockTickTimer
Update the time by one tick.
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AbstractAggregateDumpTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedBuyTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedBuyTradingOfficeTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatedCheckedBuyTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesCheckedSellTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.AggregatesSellTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.BuyTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckedBuyTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.CheckForRepairTradeStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.HireSailorsStep
 
toString() - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.TravelToTradeStep
 
TOWN_STRATEGY_BASED_HIRING - ch.sahits.game.openpatrician.engine.player.strategy.EHireTradeManagerStrategyType
Stragegy based on wokshops, offices and common strategy.
TRADE_ROUTE - ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
 
TradeManagerService - Class in ch.sahits.game.openpatrician.engine.player
Service to handle the setup of autmated trading for AI players.
TradeManagerService() - Constructor for class ch.sahits.game.openpatrician.engine.player.TradeManagerService
 
TradeRouteMissionData - Class in ch.sahits.game.openpatrician.engine.player
Mission data for the trade route strategy storing the current route.
TradeRouteMissionData() - Constructor for class ch.sahits.game.openpatrician.engine.player.TradeRouteMissionData
 
TradeRouteTradeStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Trade strategy that is based on a preset trade route
TradeRouteTradeStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.TradeRouteTradeStrategy
 
TradeStepFactory - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
 
TradeStepFactory() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.TradeStepFactory
 
tradeStrategyType - Variable in class ch.sahits.game.openpatrician.engine.player.strategy.BasePlayerTradeStrategy
 
TRADING_OFFICE_BIGGEST - ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
 
TRADING_OFFICE_COG - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
TRADING_OFFICE_CRAYER - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
TRADING_OFFICE_HOLK - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
TRADING_OFFICE_RANDOM - ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
 
TRADING_OFFICE_SNAIKKA - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
TradingOfficeBiggestShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This strategy builds the biggest possible ship type in a city with a trading office.
TradingOfficeBiggestShipConstructionSelectionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeBiggestShipConstructionSelectionStrategy
 
TradingOfficeJoinGuildMinCashStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Always join the guild if the player has a certain amount of cash dependent on the entry fee.
TradingOfficeJoinGuildMinCashStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeJoinGuildMinCashStrategy
 
TradingOfficeRandomShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This strategy builds the biggest possible ship type in a city with a trading office.
TradingOfficeRandomShipConstructionSelectionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.TradingOfficeRandomShipConstructionSelectionStrategy
 
transferFromOfficeOrBuyFromCity(IPlayer, int) - Method in class ch.sahits.game.openpatrician.engine.player.tradesteps.BaseBuyTradeStep
Try transferring the required amount from storage if there is a store manager and the transfer is allowed.
TransferToOfficeTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step for transferring all wares to the store if it can be stored and there is a store manager, to sell them.
TransferToOfficeTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.TransferToOfficeTradeStep
 
TransferToShipTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade step to transfer selected wares and quantities to the ship.
TransferToShipTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.TransferToShipTradeStep
 
travelBetweenCities(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.sea.SeafaringService
Travel from one city to another.
travelFromCity(INavigableVessel, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.SeafaringService
Travel from a city to a place that is not a city.
travelNotBetweenCities(INavigableVessel, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.SeafaringService
Travel between two locations, where neither is a city.
travelTo(INavigableVessel, Point2D) - Method in class ch.sahits.game.openpatrician.engine.sea.SeafaringService
Send a ship or convoy on its way to a destination.
travelToCity(INavigableVessel, ICity) - Method in class ch.sahits.game.openpatrician.engine.sea.SeafaringService
Travel from a location that is not a city to a city.
TravelToTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Trade ste for traveling to a new location.
TravelToTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.TravelToTradeStep
 

U

unregister() - Method in class ch.sahits.game.openpatrician.engine.sea.model.ShipPositionUpdateTask
 
updateConsumption(IWare, int) - Method in class ch.sahits.game.openpatrician.engine.player.CityProductionConsumptionKnowledge
Update the knowledge about the weekly consumed amounts.
updateKnowledge(ICity) - Method in class ch.sahits.game.openpatrician.engine.player.ProductionConsumptionKnowledge
 
UpdatePopulationTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task to update the population of a certain category.
UpdatePopulationTask(LocalDateTime, EPopulationClass, int, ICity) - Constructor for class ch.sahits.game.openpatrician.engine.event.task.UpdatePopulationTask
 
updateProduction(IWare, int) - Method in class ch.sahits.game.openpatrician.engine.player.CityProductionConsumptionKnowledge
Update the knowlege about the weekly produced amounts.
updateSegmentSize(int) - Method in class ch.sahits.game.openpatrician.engine.sea.LocationTracker
 
updateStored(IWare, int) - Method in class ch.sahits.game.openpatrician.engine.player.CityProductionConsumptionKnowledge
Update the knowledge about the stored amounts.
upgrade(IShip, ICity) - Method in class ch.sahits.game.openpatrician.engine.player.strategy.DangerBasedShipUpgradeStrategy
 
UpgradeShipTradeStep - Class in ch.sahits.game.openpatrician.engine.player.tradesteps
Check if the ship needs to be upgraded.
UpgradeShipTradeStep() - Constructor for class ch.sahits.game.openpatrician.engine.player.tradesteps.UpgradeShipTradeStep
 

V

valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.event.EEventState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.ETradeReason
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EEventDecisionStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireCaptainStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireSailorStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireTradeManagerStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.ETakeLoanStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EUpgradeShipStrategyTypes
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EWeaponBuyStrategyType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum ch.sahits.game.openpatrician.engine.sea.ESeaFightType
Returns the enum constant of this type with the specified name.
values() - Static method in enum ch.sahits.game.openpatrician.engine.event.EEventState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.ETradeReason
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EAIRepairStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EAITradeStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EEventDecisionStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EGuildJoinStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireCaptainStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireSailorStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EHireTradeManagerStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.ETakeLoanStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EUpgradeShipStrategyTypes
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.player.strategy.EWeaponBuyStrategyType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum ch.sahits.game.openpatrician.engine.sea.ESeaFightType
Returns an array containing the constants of this enum type, in the order they are declared.
VoteTask - Class in ch.sahits.game.openpatrician.engine.land.city.internal
Voting task that is timed.
VoteTask(Ballot, LocalDateTime, boolean) - Constructor for class ch.sahits.game.openpatrician.engine.land.city.internal.VoteTask
 

W

WARES_STORED - ch.sahits.game.openpatrician.engine.player.strategy.EEventDecisionStrategyType
 
WeaponConstructionTask - Class in ch.sahits.game.openpatrician.engine.event.task
Task that is executed when a weapon construction is finished.
WeaponConstructionTask() - Constructor for class ch.sahits.game.openpatrician.engine.event.task.WeaponConstructionTask
 
WeeklyCityCheckTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task to for weekly checks.
WeeklyCityCheckTask() - Constructor for class ch.sahits.game.openpatrician.engine.event.task.WeeklyCityCheckTask
 
WeeklyLoanerCheckTask - Class in ch.sahits.game.openpatrician.engine.event.task
Timed task to for weekly loaner checks.
WeeklyLoanerCheckTask() - Constructor for class ch.sahits.game.openpatrician.engine.event.task.WeeklyLoanerCheckTask
 
WEST_BIGGEST - ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
 
WEST_COG - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
WEST_CRAYER - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
WEST_HOLK - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
WEST_RANDOM - ch.sahits.game.openpatrician.engine.player.strategy.EShipConstructionStrategyType
 
WEST_SNAIKKA - ch.sahits.game.openpatrician.engine.player.strategy.ECollectWareStrategyType
 
WestCityBiggestShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This strategy builds the biggest possible ship type in the hometown.
WestCityBiggestShipConstructionSelectionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.WestCityBiggestShipConstructionSelectionStrategy
 
WestCityRandomShipConstructionSelectionStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
This strategy builds the biggest possible ship type in the hometown.
WestCityRandomShipConstructionSelectionStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.WestCityRandomShipConstructionSelectionStrategy
 
WestRepairStrategy - Class in ch.sahits.game.openpatrician.engine.player.strategy
Repair strategy to only repair in towns in the western half of the map.
WestRepairStrategy() - Constructor for class ch.sahits.game.openpatrician.engine.player.strategy.WestRepairStrategy
 
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links

Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.