Uses of Interface
ch.sahits.game.openpatrician.model.ship.INavigableVessel
-
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.clientserverinterface.client
Methods in ch.sahits.game.openpatrician.clientserverinterface.client that return INavigableVessel Modifier and Type Method Description INavigableVessel
ICityPlayerProxyJFX. getActiveShip()
Retrieve the players active vesselMethods in ch.sahits.game.openpatrician.clientserverinterface.client that return types with arguments of type INavigableVessel Modifier and Type Method Description javafx.beans.property.ObjectProperty<INavigableVessel>
ICityPlayerProxyJFX. activeShipProperty()
Property holding the active ship.javafx.collections.ObservableList<INavigableVessel>
ICityPlayerProxyJFX. getPlayersNavalVessels()
Retrieve the list of all ships of the player currently in the port.Methods in ch.sahits.game.openpatrician.clientserverinterface.client with parameters of type INavigableVessel Modifier and Type Method Description void
ICityPlayerProxyJFX. activateShip(INavigableVessel ship)
Activate a vessel.void
ICityPlayerProxyJFX. arrive(INavigableVessel ship)
A ship arrives in the cityvoid
ICityPlayerProxyJFX. leave(INavigableVessel ship)
Ship leave the city -
Uses of INavigableVessel in ch.sahits.game.openpatrician.clientserverinterface.logging
Methods in ch.sahits.game.openpatrician.clientserverinterface.logging with parameters of type INavigableVessel Modifier and Type Method Description private java.lang.String
EventBusAspect. formatVessel(INavigableVessel vessel)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.clientserverinterface.model
Fields in ch.sahits.game.openpatrician.clientserverinterface.model with type parameters of type INavigableVessel Modifier and Type Field Description private java.util.Map<INavigableVessel,VesselPositionUpdateData>
PathInterpolatorMap. map
Methods in ch.sahits.game.openpatrician.clientserverinterface.model that return types with arguments of type INavigableVessel Modifier and Type Method Description java.util.Set<java.util.Map.Entry<INavigableVessel,VesselPositionUpdateData>>
PathInterpolatorMap. entrySet()
java.util.Set<INavigableVessel>
PathInterpolatorMap. keySet()
Methods in ch.sahits.game.openpatrician.clientserverinterface.model with parameters of type INavigableVessel Modifier and Type Method Description VesselPositionUpdateData
PathInterpolatorMap. put(INavigableVessel key, VesselPositionUpdateData value)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.clientserverinterface.model.factory
Methods in ch.sahits.game.openpatrician.clientserverinterface.model.factory with parameters of type INavigableVessel Modifier and Type Method Description ISeaPirate
PeopleFactory. createNewPirate(java.lang.String firstName, java.lang.String lastName, INavigableVessel ship)
Create a pirate near a certain point -
Uses of INavigableVessel in ch.sahits.game.openpatrician.clientserverinterface.service
Methods in ch.sahits.game.openpatrician.clientserverinterface.service that return types with arguments of type INavigableVessel Modifier and Type Method Description java.util.Optional<INavigableVessel>
ShipService. findShipByUuid(java.util.List<INavigableVessel> fleet, java.lang.String uuid)
Find the ship that matches the UUID within a list of ships.Methods in ch.sahits.game.openpatrician.clientserverinterface.service with parameters of type INavigableVessel Modifier and Type Method Description long
TradeService. buyFromCityToShip(INavigableVessel vessel, IPlayer player, ICity city, IWare ware, int amount, java.util.Optional<java.lang.Integer> maxAvgPrice, java.util.Optional<ICaptain> optCaptain, long retainCash)
Buy theamount
ofware
fromcity
and move it to the ship.int
ShipService. calculateDaysTillArrival(INavigableVessel vessel)
Caluclate the number of days till arrival.long
IPathConverter. calculateDuration(INavigableVessel vessel, PathInterpolator interpolator, double fraction)
Calculate the duration of the travel in milliseconds in real time for the specified fraction of the total distanceint
ShipService. calculateRepairCostsVessel(ICity city, INavigableVessel vessel)
Caluclate the repair costs for a ship.int
ShipService. calculateShipsWeaponsStrength(INavigableVessel ship)
Calculate the total strength of the ships weapons.boolean
ShipService. canReachDestination(INavigableVessel vessel, javafx.geometry.Point2D destination)
Check if the vessel can reach the destination.boolean
ShipService. checkNumberOfSailors(INavigableVessel vessel)
Check if the vessel has enough sailors.java.util.Optional<javafx.scene.shape.Path>
IPathConverter. createPath(INavigableVessel vessel, java.util.List<javafx.geometry.Point2D> pointedPath, double scale)
Create a path shape out of a list of points.java.util.Optional<ICity>
ShipService. findCity(INavigableVessel vessel)
Find the city the vessel is currently in.java.util.List<ICity>
MapProxy. getAllReachableCities(INavigableVessel vessel)
Retrieve a list of all cities that are reachable for the vessel.java.util.List<ICity>
MapProxy. getAllReachableNonBlockadedCities(INavigableVessel vessel)
Retrieve a list of all cities that are not blockaded that are reachable for the vessel.java.util.List<ICity>
MapProxy. getAllUnreachableCities(INavigableVessel vessel)
Retrieve a list of all cities that are unreachable for the vessel.java.util.Optional<ICity>
ShipService. getDestinationCity(INavigableVessel vessel)
Get the destination city of a traveling vessel.int
ShipService. getMinNumberOfSailors(INavigableVessel vessel)
java.util.List<ICity>
MapService. getNonBlockadedCitiesOrderedByDistance(ICity city, INavigableVessel vessel)
private java.util.List<ICity>
MapProxy. getReachableCities(INavigableVessel vessel, java.util.List<ICity> cities)
EShipType
ShipService. getShipType(INavigableVessel vessel)
Retrieve the biggest ship type of the vessel.boolean
ShipService. isNearingCity(INavigableVessel vessel)
Check wether the ship is nearing a city.boolean
ShipService. isShipTooDamagedToSail(INavigableVessel vessel)
Check if the vessel is too damaged to set sail.void
TradeService. sellWareShipToCity(INavigableVessel vessel, IPlayer player, ICity city, IWare ware, int amount, java.util.Optional<java.lang.Integer> minAvgPrice)
Sellamount
ofware
fromvessel
to thecity
.int
TradeService. transferFromStorageToVessel(ITradingOffice office, INavigableVessel vessel, IPlayer player, IWare ware, int amount)
Moveamount
ofware
from theoffice
onto thevessel
.void
TradeService. transferFromVesselToStorage(INavigableVessel vessel, IPlayer player, ICity city, java.util.Map<IWare,java.lang.Integer> amounts)
Transfer the wares in the specified amounts from the ship into the storage.
PRE: there is a trading office in the city.Method parameters in ch.sahits.game.openpatrician.clientserverinterface.service with type arguments of type INavigableVessel Modifier and Type Method Description java.util.Optional<INavigableVessel>
ShipService. findShipByUuid(java.util.List<INavigableVessel> fleet, java.lang.String uuid)
Find the ship that matches the UUID within a list of ships. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.dialog
Methods in ch.sahits.game.openpatrician.display.dialog with parameters of type INavigableVessel Modifier and Type Method Description protected javafx.beans.value.ObservableValue<? extends java.lang.Boolean>
BaseTradeDialog. createObservableShipLoad(INavigableVessel ship, EWare ware)
Observable value to indicate if the ship has capacity for one more item.protected javafx.beans.value.ObservableValue<? extends java.lang.Boolean>
StorageShipTradeDialog. createObservableShipLoad(INavigableVessel ship, EWare ware)
private AmountablePrice<IWare>
BaseTradeDialog. getStoredAmountablePrice(IWare ware, INavigableVessel ship, java.util.Optional<ITradingOffice> office)
Retrieve the amountable price of a ware from the ship or the warehouseprivate javafx.beans.property.ReadOnlyIntegerProperty
BaseTradeDialog. getStoredAmountProperty(IWare ware, INavigableVessel ship, java.util.Optional<ITradingOffice> office)
Retrieve the stored amount -
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.dialog.service
Methods in ch.sahits.game.openpatrician.display.dialog.service that return INavigableVessel Modifier and Type Method Description INavigableVessel
ITransferableJFX. getVessel()
Retrieve the vessel associated. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.dialog.service.impl
Fields in ch.sahits.game.openpatrician.display.dialog.service.impl declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
TransferableState. vessel
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.event.data
Fields in ch.sahits.game.openpatrician.display.event.data declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
DelayedTravelToEvent. vessel
Constructors in ch.sahits.game.openpatrician.display.event.data with parameters of type INavigableVessel Constructor Description DelayedTravelToEvent(javafx.geometry.Point2D destination, INavigableVessel vessel, java.util.Optional<ICity> city)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.event.handler.impl
Methods in ch.sahits.game.openpatrician.display.event.handler.impl with parameters of type INavigableVessel Modifier and Type Method Description NextPatrolStation
EventHandlerFactory. getNextPatrolStation(INavigableVessel ship, ICity city, PatrolInternalState state, IPlayer player, java.time.LocalDateTime deadline, IAttackListener atackListener)
Retrieve the next patrol station event listenerprivate static boolean
ShipArrivalForLoading. hasShipEnoughCapacity(INavigableVessel ship, int requiredAmount)
Check if the ship has enough capacity to load waresConstructors in ch.sahits.game.openpatrician.display.event.handler.impl with parameters of type INavigableVessel Constructor Description NextPatrolStation(INavigableVessel ship, ICity city, PatrolInternalState state, IPlayer player, java.time.LocalDateTime deadline, AttackListener atackListener)
Create the next patrol station listener.WaitTimeForShipArrivalInCity(ICity city, INavigableVessel ship, java.time.LocalDateTime deadline)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.event.task
Fields in ch.sahits.game.openpatrician.display.event.task declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
TravelToTimedTask. vessel
Methods in ch.sahits.game.openpatrician.display.event.task with parameters of type INavigableVessel Modifier and Type Method Description TravelToTimedTask
ClientTaskFactory. getTravelToDelayed(javafx.geometry.Point2D destination, INavigableVessel vessel, java.util.Optional<ICity> city)
Create a timed task for the delayed traveling event triggered and handled by the map view.Constructors in ch.sahits.game.openpatrician.display.event.task with parameters of type INavigableVessel Constructor Description TravelToTimedTask(javafx.geometry.Point2D destination, INavigableVessel vessel, java.util.Optional<ICity> city)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.javafx
Fields in ch.sahits.game.openpatrician.display.javafx with type parameters of type INavigableVessel Modifier and Type Field Description private com.google.common.collect.Multimap<INavigableVessel,INavigableVessel>
SeamapImageView. visibleShips
Mapping the visible vessels of other players for all players ships.private com.google.common.collect.Multimap<INavigableVessel,INavigableVessel>
SeamapImageView. visibleShips
Mapping the visible vessels of other players for all players ships.Methods in ch.sahits.game.openpatrician.display.javafx that return types with arguments of type INavigableVessel Modifier and Type Method Description private java.util.Set<INavigableVessel>
SeamapImageView. removeVisibleVessel(INavigableVessel vessel)
Methods in ch.sahits.game.openpatrician.display.javafx with parameters of type INavigableVessel Modifier and Type Method Description private void
SeamapImageView. addNewShipIconToCanvas(INavigableVessel vessel, java.util.List<javafx.geometry.Point2D> path)
private void
SeamapImageView. addSingleVisibleVessel(INavigableVessel ship, IHumanPlayer player, INavigableVessel visibleVessel)
Add the ship to the visible set and map if it is not in a city and not owned by the player.(package private) void
SeamapImageView. addVisibleVessel(INavigableVessel ship, IHumanPlayer player)
Check which vessels are visible and add them.private boolean
SeamapImageView. areVisibleToEachOther(INavigableVessel vessel1, INavigableVessel vessel2)
Check if the two vessels are visible to each other.private void
SeamapImageView. checkVisiblityAndUpdate(INavigableVessel vessel, java.util.Set<INavigableVessel> noLongerVisibleVessels, INavigableVessel visibleVessel)
Check if the two vessels are visible.private void
SeamapImageView. drawPath(INavigableVessel vessel, java.util.List<javafx.geometry.Point2D> path)
Calculate a new path for thevessel
and draw it on the map.private void
SeamapImageView. drawPathOnMap(INavigableVessel vessel, java.util.List<javafx.geometry.Point2D> path, javafx.scene.shape.Path p)
Draw the path onto the map considering the proper scaling.private void
SeamapImageView. drawShipOnMap(INavigableVessel vessel)
Draw a vessel on the map with default orientation (faceing to the west)private ShipIcon
SeamapImageView. findShipIcon(INavigableVessel vessel)
private void
SeamapImageView. handleVisibilityShips(INavigableVessel vessel)
private boolean
SeamapImageView. isPlayersVessel(INavigableVessel vessel)
private boolean
SeamapImageView. isVesselVisible(INavigableVessel vessel)
Determin if the vessel is visible on the map by it's own.private void
SeamapImageView. removeVesselFromView(INavigableVessel v)
private java.util.Set<INavigableVessel>
SeamapImageView. removeVisibleVessel(INavigableVessel vessel)
private void
SeamapImageView. travelToDestination(double x, double y, java.util.Optional<ICity> destinationCity, INavigableVessel vessel)
Method parameters in ch.sahits.game.openpatrician.display.javafx with type arguments of type INavigableVessel Modifier and Type Method Description private void
SeamapImageView. checkVisiblityAndUpdate(INavigableVessel vessel, java.util.Set<INavigableVessel> noLongerVisibleVessels, INavigableVessel visibleVessel)
Check if the two vessels are visible.private void
SeamapImageView. removeNoLongerVisibleVessels(java.util.Set<INavigableVessel> noLongerVisibleVessels)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.javafx.control
Methods in ch.sahits.game.openpatrician.display.javafx.control with parameters of type INavigableVessel Modifier and Type Method Description private void
SubMenu. openConvoyDialog(ICityPlayerProxyJFX proxy, INavigableVessel vessel)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.model
Fields in ch.sahits.game.openpatrician.display.model with type parameters of type INavigableVessel Modifier and Type Field Description private javafx.beans.property.ObjectProperty<INavigableVessel>
CityPlayerProxyJFX. activeShip
Reference the active ship of the playerprivate javafx.collections.ObservableList<INavigableVessel>
CityPlayerProxyJFX. playersVessels
List holding all ships owned by the player currently present in the cityMethods in ch.sahits.game.openpatrician.display.model that return INavigableVessel Modifier and Type Method Description INavigableVessel
CityPlayerProxyJFX. getActiveShip()
Methods in ch.sahits.game.openpatrician.display.model that return types with arguments of type INavigableVessel Modifier and Type Method Description javafx.beans.property.ObjectProperty<INavigableVessel>
CityPlayerProxyJFX. activeShipProperty()
javafx.collections.ObservableList<INavigableVessel>
CityPlayerProxyJFX. getPlayersNavalVessels()
Methods in ch.sahits.game.openpatrician.display.model with parameters of type INavigableVessel Modifier and Type Method Description void
CityPlayerProxyJFX. activateShip(INavigableVessel ship)
Activate a ship.void
CityPlayerProxyJFX. arrive(INavigableVessel ship)
A ship arrives in the cityvoid
CityPlayerProxyJFX. leave(INavigableVessel ship)
Ship leave the cityConstructors in ch.sahits.game.openpatrician.display.model with parameters of type INavigableVessel Constructor Description CityPlayerProxyJFX(ICity city, IHumanPlayer player, INavigableVessel activeShip)
/** Constructor initializing the city and the player with one ship in port. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.display.service
Methods in ch.sahits.game.openpatrician.display.service with parameters of type INavigableVessel Modifier and Type Method Description long
BezierPathConverter. calculateDuration(INavigableVessel vessel, PathInterpolator interpolator, double fraction)
long
LinePathConverter. calculateDuration(INavigableVessel vessel, PathInterpolator interpolator, double fraction)
No real implementation here.java.util.Optional<javafx.scene.shape.Path>
BezierPathConverter. createPath(INavigableVessel vessel, java.util.List<javafx.geometry.Point2D> pointedPath, double scale)
java.util.Optional<javafx.scene.shape.Path>
LinePathConverter. createPath(INavigableVessel vessel, java.util.List<javafx.geometry.Point2D> pointedPath, double scale)
Create a path shape out of a list of points. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.engine
Methods in ch.sahits.game.openpatrician.engine with parameters of type INavigableVessel Modifier and Type Method Description private void
AIPlayerEngine. clearRemainingTradeSteps(INavigableVessel vessel, IAIPlayer player)
Remove any remaining trade steps.boolean
AIPlayerEngine. executeCurrentTrade(INavigableVessel vessel)
Check weather the current vessel is engaged in executing trade steps.(package private) java.util.List<IAITradeStrategyType>
AIPlayerEngine. getSelectableTradeStrategy(INavigableVessel vessel, IAIPlayer player)
private void
AIPlayerEngine. handleBlockadeMission(INavigableVessel vessel, IAIPlayer player, ICity city)
private boolean
AIPlayerEngine. initializeConvoy(IAIPlayer player, INavigableVessel ship)
private void
AIPlayerEngine. initializeRandomTradeStrategy(INavigableVessel vessel, IAIPlayer player)
private void
AIPlayerEngine. initializeStrategyForVessel(IAIPlayer player, INavigableVessel ship)
private void
AIPlayerEngine. initializeStrategyInternal(IAIPlayer player, INavigableVessel ship)
private boolean
AIPlayerEngine. isStrategyMatch(INavigableVessel vessel, ETradeStrategyPreference preference)
private void
AIPlayerEngine. startTradeStrategySteps(IAIPlayer player, INavigableVessel ship)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.engine.event
Fields in ch.sahits.game.openpatrician.engine.event with type parameters of type INavigableVessel Modifier and Type Field Description private java.util.Optional<INavigableVessel>
AIPlayerEngineState. currentVesselExecutingTrade
Methods in ch.sahits.game.openpatrician.engine.event with parameters of type INavigableVessel Modifier and Type Method Description void
AIPlayerEngineState. activateVesselForTrade(INavigableVessel vessel)
Activate a vessel for engaging in a trade step.private MarriageBrokerAnnouncementState
EventEngine. createMarriageBrokerAnnouncementState(ShipEntersPortEvent event, INavigableVessel ship)
void
AIPlayerEngineState. deactivateVesselForTrade(INavigableVessel vessel)
Deactive a vessel for trading.boolean
AIPlayerEngineState. isActive(INavigableVessel vessel)
Check if a vessel is currently the active vessel doing trading. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.engine.event.task
Fields in ch.sahits.game.openpatrician.engine.event.task declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
RepairPirateShipTask. vessel
private INavigableVessel
WaitForShipArrival. waitingOnVessel
private INavigableVessel
WaitForShipArrival. waitingVessel
Methods in ch.sahits.game.openpatrician.engine.event.task with parameters of type INavigableVessel Modifier and Type Method Description TimedTask
ServerSideTaskFactory. getPirateRepairTask(java.time.LocalDateTime dueDate, INavigableVessel vessel, ISeaPirate owner, IShipyard shipyard)
Retrieve the repair task for a pirate vesselWaitForShipArrival
ServerSideTaskFactory. waitForShipArrival(INavigableVessel waitingVessel, INavigableVessel waitingOnVessel, ICity waitingIn, java.lang.Runnable actionUponArrival, boolean waitingShipArrived)
Retrieve the task for a ship to wait until another ship and itself arrived at the same destination city.Constructors in ch.sahits.game.openpatrician.engine.event.task with parameters of type INavigableVessel Constructor Description RepairPirateShipTask(java.time.LocalDateTime executionTime, INavigableVessel vessel, ISeaPirate pirate, IShipyard shipyard)
WaitForShipArrival(INavigableVessel waitingVessel, INavigableVessel waitingOnVessel, ICity waitingIn, java.lang.Runnable actionUponArrival, boolean waitingShipArrived)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.engine.player
Methods in ch.sahits.game.openpatrician.engine.player with parameters of type INavigableVessel Modifier and Type Method Description java.util.List<ICity>
ProductionConsumptionKnowledge. findCitiesWithNeedMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
java.util.List<ICity>
ProductionConsumptionKnowledge. findListWithConsumptionMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
java.util.List<ICity>
ProductionConsumptionKnowledge. findListWithProductionsMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
boolean
AITradeChecker. isEngagedInTrading(INavigableVessel vessel)
Check if the vessel is engaged in trading.boolean
AITradeChecker. shouldBeTrading(INavigableVessel vessel)
Check weather the vessel should be engaged in trading.private void
ReputationEngine. updateReputationDueToPirateDefeat(INavigableVessel pirateVessel, INavigableVessel playerVessel)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.engine.player.strategy
Fields in ch.sahits.game.openpatrician.engine.player.strategy with type parameters of type INavigableVessel Modifier and Type Field Description private java.util.List<INavigableVessel>
CentralStorageHintContext. distributingVessels
private java.util.List<INavigableVessel>
CentralStorageHintContext. supplyingVessels
Methods in ch.sahits.game.openpatrician.engine.player.strategy that return types with arguments of type INavigableVessel Modifier and Type Method Description private java.util.Optional<INavigableVessel>
FormOrJoinConvoyStrategy. findStrategyNotCoping(IAIPlayer player, IShip vessel)
Find a ship of the player that has a strategy and does not cope with demand (low on free space).private java.util.Optional<? extends INavigableVessel>
FormOrJoinConvoyStrategy. findVesselWithNotCopingStrategy(IShip vessel, IAIPlayer player)
java.util.Optional<INavigableVessel>
BaseShipConstructionSelectionStrategy. selectCollectingVessel(IAIPlayer player, EShipType shipType)
Methods in ch.sahits.game.openpatrician.engine.player.strategy with parameters of type INavigableVessel Modifier and Type Method Description protected void
BasePlayerTradeStrategy. addDefaultTradeSteps(INavigableVessel vessel, IAIPlayer player, ICity city, ICity nextStop, java.util.Set<IWare> nonSellableWares, java.util.Set<IWare> buyWares, boolean skipRepair)
Add default trading steps: AggregatesSellTradeStep PayBackLoanTradeStep CheckHireCaptainTradeStep GuildJoinTradeStep HireDismissTradeManagerTradeStep TakeLoanTradeStep HireDismissTradeManagerTradeStep BuyWeaponTradeStep TransferToShipTradeStep (optional) CheckForRepairTradeStep HireSailorsStep TravelToTradeStepvoid
CentralStorageHintContext. addDistributingVessel(INavigableVessel vessel)
void
CentralStorageHintContext. addSupplyingVessel(INavigableVessel vessel)
private void
SupplyHometownAIStrategy. addTradeStepsInHometownToTravelToNextCity(IAIPlayer player, INavigableVessel vessel)
Add the tradesteps to buy wares in the hometown and travel to the first stop.(package private) void
SupplyHometownAIStrategy. addTradeStepsSellingInHomeTown(IAIPlayer player, INavigableVessel vessel)
Add the tradesteps in the hometown to sell the wares and check for repairs(package private) void
SupplyHometownAIStrategy. addTradeStepTradingNextTown(IAIPlayer player, INavigableVessel vessel)
Define the trade steps in another town.void
BasePlayerTradeStrategy. append(IAIPlayer player, INavigableVessel vessel, ITradeStep step)
Add a new trade step for a player.private void
ProductionChainTradeStrategy. buyWaresAndTravelToNextStop(IAIPlayer player, INavigableVessel vessel, ICity currentLocation, IProductionConsumptionKnowledge knowledge, ICity nextStop)
(package private) java.util.Map<IWare,java.lang.Integer>
CentralStorageDeliveryTradeStrategy. calculateAmountsToSell(INavigableVessel vessel, ICity city, CentralStorageHintContext context, IProductionConsumptionKnowledge globalKnowledge, java.util.List<ICity> cities)
protected boolean
CollectCelebrationWaresStrategy. checkAllWaresCollected(ICity city, INavigableVessel vessel, CollectWaresMissionData tradeMission, java.util.Optional<ITradingOffice> tradingOffice)
protected boolean
CollectConstructionWareStrategy. checkAllWaresCollected(ICity city, INavigableVessel vessel, CollectWaresMissionData tradeMission, java.util.Optional<ITradingOffice> tradingOffice)
protected abstract boolean
CollectionWaresStrategy. checkAllWaresCollected(ICity city, INavigableVessel vessel, CollectWaresMissionData tradeMission, java.util.Optional<ITradingOffice> tradingOffice)
Check if all the required wares are actually collected.protected AggregatedBuyTradeStep
BasePlayerTradeStrategy. createAggregatedBuyTradeStep(INavigableVessel vessel, ICity city, java.util.List<IWare> waresToBuy)
protected AggregatedCheckedBuyTradeStep
BasePlayerTradeStrategy. createAggregatedCheckedBuyTradeStep(INavigableVessel vessel, ICity city, java.util.List<IWare> waresToBuy)
protected AggregatesCheckedSellTradeStep
BasePlayerTradeStrategy. createAggregatedCheckedSellStep(INavigableVessel vessel, ICity city, java.util.Map<IWare,java.lang.Integer> waresToSell)
protected AggregatesDumpTradeStep
BasePlayerTradeStrategy. createAggregatedDumpStep(INavigableVessel vessel, ICity city, java.util.List<IWare> waresToSell)
protected AggregatesSellTradeStep
BasePlayerTradeStrategy. createAggregatedSellStep(INavigableVessel vessel, ICity city, java.util.List<IWare> waresToSell)
protected CheckedTransferToOfficeTradeStep
BasePlayerTradeStrategy. createCheckedTransferToOfficeTradeStep(INavigableVessel vessel, ICity city, java.util.Map<IWare,java.lang.Integer> transferAmounts)
protected CheckForRepairTradeStep
BasePlayerTradeStrategy. createCheckRepairStep(INavigableVessel vessel, ICity city)
Create the trade step to check for repairs.protected AmountBasedAggregatedDumpTradeStep
BasePlayerTradeStrategy. createConditionalAggregatedDumpStep(INavigableVessel vessel, ICity city, java.util.List<IWare> waresToSell, int maxAmount)
Create a conditional dump trade step.protected CheckHireCaptainTradeStep
BasePlayerTradeStrategy. createHireCaptain(INavigableVessel vessel, ICity city, IAIPlayer player)
Create the trade step to check and hire a captain.protected HireSailorsStep
BasePlayerTradeStrategy. createHireSailorStep(INavigableVessel vessel, ICity city)
Create a new instance forthe hire sailor step.protected GuildJoinTradeStep
BasePlayerTradeStrategy. createJoinGuildTradeStep(INavigableVessel vessel, ICity city, IAIPlayer player)
Create a trade step to join the quild.protected TransferToOfficeTradeStep
BasePlayerTradeStrategy. createTransferToOfficeTradeStep(INavigableVessel vessel, ICity city)
protected TransferToShipTradeStep
BasePlayerTradeStrategy. createTransferToShipTradeStep(INavigableVessel vessel, ICity city, java.util.Map<IWare,java.lang.Integer> transfereableAmounts)
protected TravelToTradeStep
BasePlayerTradeStrategy. createTravelToStep(INavigableVessel vessel, ICity travelToCity)
Create the travel step to a different city.protected UpgradeShipTradeStep
BasePlayerTradeStrategy. createUpgradeShipTradeStep(INavigableVessel vessel, IAIPlayer player)
protected BuyWeaponTradeStep
BasePlayerTradeStrategy. createWeaponBuyTradeStep(INavigableVessel vessel, IAIPlayer player, ICity city)
boolean
BasePlayerTradeStrategy. executeTradeSteps(IAIPlayer player, INavigableVessel vessel)
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.private ICity
SupplyCentralTradingStationAIStrategy. findCitySupplingWares(IAIPlayer player, INavigableVessel vessel, CentralStorageHintContext context)
(package private) ICity
BasePlayerTradeStrategy. findCitySupplyingWare(IAIPlayer player, IWare ware, INavigableVessel vessel, java.util.Set<ICity> excludeCity)
Finding a destination that can supply a ware.(package private) java.util.Optional<ICity>
BasePlayerTradeStrategy. findCityWithAllRequiredWares(java.util.List<IWare> requiredWares, IAIPlayer player, INavigableVessel vessel, java.util.Set<ICity> excludeCity)
Find a destination city that requires all the wares.(package private) javafx.util.Pair<ICity,IWare>
DynamicTradeRouteStrategy. findClosestCityProducingTradableWare(IAIPlayer player, INavigableVessel vessel)
protected ICity
BasePlayerTradeStrategy. findDestinationToBuyRequiredProductionWares(IAIPlayer player, java.util.List<IWare> requiredWares, INavigableVessel vessel, java.util.Set<ICity> excludeCity)
Determine the city to travel to based on the required wares.private java.util.Optional<ICity>
CheapProductionTradeStrategy. findNearestCityWithNeed(ICity city, IAIPlayer player, IWare ware, INavigableVessel vessel, ICity excludeCity)
protected ICity
BasePlayerTradeStrategy. findNextStopForBuying(ICity baseTown, IProductionConsumptionKnowledge knowledge, java.util.List<IWare> waresOfInterest, INavigableVessel vessel, ICity exclude)
Figure out what the next stop should be to supply the ware in the listwaresOfInterest
.protected ICity
BasePlayerTradeStrategy. findNextStopForSelling(ICity baseTown, IProductionConsumptionKnowledge knowledge, java.util.List<IWare> waresOfInterest, INavigableVessel vessel, ICity exclude)
Figure out what the next stop should be to sell the ware in the listwaresOfInterest
.protected ICity
BasePlayerTradeStrategy. findProvidingWares(ICity source, java.util.Collection<IWare> wares, java.util.Collection<ICity> excluded, IAIPlayer player, INavigableVessel vessel)
Find the city that provides the best match for supplying thewares
while not being too far away.ICity
BasePlayerTradeStrategy. getCityToRestartTradeCycle(INavigableVessel vessel)
In the case where the trade cycle must be re-initialized, but the ship is not in a city, determine the city to which the vessel should travel.ICity
TradeRouteTradeStrategy. getCityToRestartTradeCycle(INavigableVessel vessel)
In the case where the trade cycle must be re-initialized, but the ship is not in a city, determine the city to which the vessel should travel.private ICity
ProductionChainTradeStrategy. getCurrentCity(INavigableVessel vessel)
protected java.util.List<IWare>
BasePlayerTradeStrategy. getLoadedWares(INavigableVessel vessel)
Find all wares that are loaded on the ship.(package private) java.util.List<IWare>
SupplyHometownAIStrategy. getLoadedWaresToSell(INavigableVessel vessel, java.util.List<IWare> waresOfInterest)
Retrieve the wares that can be soled in another city than the hometown.private ProductionChainMissionData
ProductionChainTradeStrategy. getMissionData(IAIPlayer player, INavigableVessel vessel)
java.util.List<javafx.util.Pair<IWare,java.lang.Number>>
BasePlayerTradeStrategy. getMostNeededWares(ICityProductionConsumptionKnowledge knowledge, INavigableVessel vessel)
Figure out the ware that are most needed in the city.ITradeStep
BasePlayerTradeStrategy. getNextStep(IAIPlayer player, INavigableVessel vessel)
Retrieve the next trade step that should be executed and remove it from the list of an AI player.private java.util.List<IWare>
CollectionWaresStrategy. getRequiredWares(INavigableVessel vessel, java.util.Map<IWare,java.lang.Integer> requiredWareAmounts)
(package private) void
DynamicTradeRouteStrategy. handleBuyWaresInStartCity(IAIPlayer player, INavigableVessel vessel, ICity city)
(package private) void
DynamicTradeRouteStrategy. handleBuyWaresReturnToStartCity(IAIPlayer player, INavigableVessel vessel, ICity city, ICity startCity)
(package private) void
CentralStorageDeliveryTradeStrategy. handleTradeInCentralStorage(IAIPlayer player, INavigableVessel vessel, ICity centralStorageCity, CentralStorageHintContext context)
(package private) void
CentralStorageDeliveryTradeStrategy. handleTradeInSuppliedCity(IAIPlayer player, INavigableVessel vessel, ICity city, CentralStorageDeliverMissionData missionData)
protected boolean
BasePlayerTradeStrategy. hasBlockingMission(INavigableVessel vessel, IAIPlayer player)
Check if there is a blocking mission that would prevent taking further action.boolean
BasePlayerTradeStrategy. hasMoreTradeSteps(IAIPlayer player, INavigableVessel vessel)
Check whether the AI player has more trade stepsvoid
CentralStorageDeliveryTradeStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
void
CheapProductionTradeStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
void
CollectionWaresStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
void
DynamicTradeRouteStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
void
ProductionChainTradeStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
void
SupplyCentralTradingStationAIStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
void
SupplyHometownAIStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
void
TradeRouteTradeStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
void
HometownBiggestShipConstructionSelectionStrategy. initShipConstruction(IAIPlayer player, INavigableVessel vessel, EShipType shipType)
void
HometownRandomShipConstructionSelectionStrategy. initShipConstruction(IAIPlayer player, INavigableVessel vessel, EShipType shipType)
void
TradingOfficeBiggestShipConstructionSelectionStrategy. initShipConstruction(IAIPlayer player, INavigableVessel vessel, EShipType shipType)
void
TradingOfficeRandomShipConstructionSelectionStrategy. initShipConstruction(IAIPlayer player, INavigableVessel vessel, EShipType shipType)
void
WestCityBiggestShipConstructionSelectionStrategy. initShipConstruction(IAIPlayer player, INavigableVessel vessel, EShipType shipType)
void
WestCityRandomShipConstructionSelectionStrategy. initShipConstruction(IAIPlayer player, INavigableVessel vessel, EShipType shipType)
void
BasePlayerTradeStrategy. inject(IAIPlayer player, INavigableVessel vessel, ITradeStep step)
Add a new trade step to the begining of the list.protected boolean
BasePlayerTradeStrategy. isMatchingTradeStrategy(INavigableVessel vessel)
Check if the strategy belongs to the vessel.boolean
CentralStorageDeliveryTradeStrategy. isSelectable(IAIPlayer player, INavigableVessel vessel)
boolean
SupplyCentralTradingStationAIStrategy. isSelectable(IAIPlayer player, INavigableVessel vessel)
private boolean
BaseShipConstructionSelectionStrategy. isVesselEligibleForCollecting(IAIPlayer player, INavigableVessel vessel)
private void
CheapProductionTradeStrategy. moveToNextStopEmpty(IAIPlayer player, INavigableVessel vessel, ICity city)
boolean
FormOrJoinConvoyStrategy. mustBeFittableForOrleg(INavigableVessel vessel)
check if the vessel needs to be fitted to become an orleg ship.void
BaseRepairStrategy. repair(INavigableVessel vessel, ICity city)
(package private) javafx.util.Pair<ICity,CentralStorageStrategyHint>
SupplyCentralTradingStationAIStrategy. setupContextHint(IAIPlayer player, INavigableVessel vessel)
boolean
EightyPercentRepairStrategy. shouldRepair(INavigableVessel vessel, ICity city)
boolean
HometownRepairStrategy. shouldRepair(INavigableVessel vessel, ICity city)
Only repair the ship in the hometown unless it is realy badly damaged.boolean
KontorTypeCityRepairStrategy. shouldRepair(INavigableVessel vessel, ICity city)
Unless the damage is quite heavy repares are only conducted in cities of type Kontor.boolean
OnlyTradingOfficeRepairStrategy. shouldRepair(INavigableVessel vessel, ICity city)
Unless the damage is heave only in towns where hte vessel owner has a trading office repairs should be conducted.boolean
WestRepairStrategy. shouldRepair(INavigableVessel vessel, ICity city)
Should repair only if deamage is heavy or if the ship is in a city in the west half of the map.(package private) boolean
SupplyHometownAIStrategy. shouldReturnToHometown(IAIPlayer player, INavigableVessel vessel)
Check weather the vessel should return to the hometownMethod parameters in ch.sahits.game.openpatrician.engine.player.strategy with type arguments of type INavigableVessel Modifier and Type Method Description protected boolean
AlwaysJoinGuildMinCashStrategy. additionalJoinRequirementsMet(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
protected abstract boolean
BaseJoinGuildStrategy. additionalJoinRequirementsMet(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
Additional requirients added by custom strategies.protected boolean
HometownJoinGuildMinCashStrategy. additionalJoinRequirementsMet(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
protected boolean
NearHometownJoinGuildMinCashStrategy. additionalJoinRequirementsMet(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
protected boolean
NearTradingOfficeJoinGuildMinCashStrategy. additionalJoinRequirementsMet(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
protected boolean
TradingOfficeJoinGuildMinCashStrategy. additionalJoinRequirementsMet(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
boolean
BaseJoinGuildStrategy. shouldJoin(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
Decide ifplayer
should join the guild in thecity
. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.engine.player.tradesteps
Fields in ch.sahits.game.openpatrician.engine.player.tradesteps declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
HireSailorsStep. ship
private INavigableVessel
AbstractAggregateDumpTradeStep. vessel
private INavigableVessel
AggregatedBuyTradeStep. vessel
private INavigableVessel
AggregatedCheckedBuyTradeStep. vessel
private INavigableVessel
AggregatesCheckedSellTradeStep. vessel
private INavigableVessel
AggregatesSellTradeStep. vessel
private INavigableVessel
BaseBuyTradeStep. vessel
private INavigableVessel
BuyWeaponTradeStep. vessel
private INavigableVessel
CheckedSellTradeStep. vessel
private INavigableVessel
CheckedTransferToOfficeTradeStep. vessel
private INavigableVessel
CheckForRepairTradeStep. vessel
private INavigableVessel
CheckHireCaptainTradeStep. vessel
private INavigableVessel
GuildJoinTradeStep. vessel
private INavigableVessel
SellDumpTradeStep. vessel
private INavigableVessel
SellTradeStep. vessel
private INavigableVessel
TransferToOfficeTradeStep. vessel
private INavigableVessel
TransferToShipTradeStep. vessel
private INavigableVessel
TravelToTradeStep. vessel
private INavigableVessel
UpgradeShipTradeStep. vessel
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.engine.sea
Methods in ch.sahits.game.openpatrician.engine.sea that return types with arguments of type INavigableVessel Modifier and Type Method Description java.util.List<INavigableVessel>
LocationTracker. getShipsInSegment(javafx.geometry.Point2D location)
java.util.List<INavigableVessel>
LocationTracker. getShipsInSegments(javafx.geometry.Point2D location, int radius)
Methods in ch.sahits.game.openpatrician.engine.sea with parameters of type INavigableVessel Modifier and Type Method Description void
LocationTracker. add(INavigableVessel ship)
void
SeaFightService. calculateOutcome(INavigableVessel attackingVessel, INavigableVessel defendingVessel, SeaFightContext context)
Calculate the outcome of the fight.java.util.List<IShip>
SeaFightService. explodeShipList(INavigableVessel vessel)
Convert a vessel into a list of ships.private boolean
PirateEngine. handlePirateShip(INavigableVessel vessel)
Check if the vessel should be handled by this engine.(package private) void
SeaFightService. postAttackOutcome(java.util.List<IShip> attackingShips, java.util.List<IShip> defendingShips, java.util.List<IShip> defeatedDefendingShips, java.util.List<IShip> defeatedAttackingShips, INavigableVessel attackingVessel, INavigableVessel defendingVessel)
void
LocationTracker. remove(INavigableVessel ship)
private void
PirateEngine. sendForRepairs(INavigableVessel vessel)
Send a vessel to be repaired.void
SeafaringService. travelBetweenCities(INavigableVessel vessel, ICity toCity)
Travel from one city to another.void
SeafaringService. travelFromCity(INavigableVessel vessel, javafx.geometry.Point2D location)
Travel from a city to a place that is not a city.void
SeafaringService. travelNotBetweenCities(INavigableVessel vessel, javafx.geometry.Point2D location)
Travel between two locations, where neither is a city.java.util.List<javafx.geometry.Point2D>
SeafaringService. travelTo(INavigableVessel vessel, javafx.geometry.Point2D destination)
Send a ship or convoy on its way to a destination.void
SeafaringService. travelToCity(INavigableVessel vessel, ICity toCity)
Travel from a location that is not a city to a city. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.engine.sea.model
Methods in ch.sahits.game.openpatrician.engine.sea.model with parameters of type INavigableVessel Modifier and Type Method Description (package private) void
ShipPositionUpdateTask. updateShipDamage(VesselPositionUpdateData value, INavigableVessel vessel, double travelPerTick)
Handle the update of damage to the ship. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.event.data
Fields in ch.sahits.game.openpatrician.event.data declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
ShipAttackEvent. attackedShip
private INavigableVessel
ShipDefenseEvent. attackedShip
private INavigableVessel
ShipAttackEvent. attackingShip
private INavigableVessel
ShipDefenseEvent. attackingShip
private INavigableVessel
RepairFinishedEvent. ship
private INavigableVessel
ShipArrivesAtDestinationEvent. ship
private INavigableVessel
ShipEntersPortEvent. ship
private INavigableVessel
ShipLeavingPort. ship
private INavigableVessel
ShipNearingPortEvent. ship
private INavigableVessel
ShipPositionUpdateEvent. ship
Constructors in ch.sahits.game.openpatrician.event.data with parameters of type INavigableVessel Constructor Description RepairFinishedEvent(INavigableVessel ship)
ShipArrivesAtDestinationEvent(INavigableVessel ship, javafx.geometry.Point2D destination)
ShipAttackEvent(INavigableVessel attackedShip, INavigableVessel attackingShip)
ShipDefenseEvent(INavigableVessel attackedShip, INavigableVessel attackingShip)
ShipEntersPortEvent(INavigableVessel ship, ICity city)
ShipLeavingPort(INavigableVessel ship, ICity city)
ShipNearingPortEvent(INavigableVessel ship, ICity city)
ShipPositionUpdateEvent(INavigableVessel ship, javafx.geometry.Point2D fromLocation, javafx.geometry.Point2D toLocation)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.event.data.ai
Fields in ch.sahits.game.openpatrician.event.data.ai declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
HireSailorEvent. ship
private INavigableVessel
SpecialMissionFinishedEvent. vessel
Constructors in ch.sahits.game.openpatrician.event.data.ai with parameters of type INavigableVessel Constructor Description HireSailorEvent(INavigableVessel ship, ICity city)
SpecialMissionFinishedEvent(INavigableVessel vessel, ICity city, ITradeMissionData missionData)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.event.handler
Fields in ch.sahits.game.openpatrician.event.handler declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
ShipArivalInPortEventListener. ship
private INavigableVessel
ShipEntersPortEventListener. ship
Methods in ch.sahits.game.openpatrician.event.handler that return INavigableVessel Modifier and Type Method Description INavigableVessel
ShipArivalInPortEventListener. getShip()
The ship that has arrived.Constructors in ch.sahits.game.openpatrician.event.handler with parameters of type INavigableVessel Constructor Description ShipEntersPortEventListener(INavigableVessel ship, ICity city)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.javafx.control
Fields in ch.sahits.game.openpatrician.javafx.control declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
ShipIcon. vessel
Methods in ch.sahits.game.openpatrician.javafx.control that return INavigableVessel Modifier and Type Method Description INavigableVessel
ShipIcon. getVessel()
Constructors in ch.sahits.game.openpatrician.javafx.control with parameters of type INavigableVessel Constructor Description ShipIcon(INavigableVessel vessel, IHumanPlayer player, IDataImageLoader imageLoader)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.javafx.control.skin
Methods in ch.sahits.game.openpatrician.javafx.control.skin with parameters of type INavigableVessel Modifier and Type Method Description private javafx.scene.image.ImageView
ShipIconSkin. createShield(INavigableVessel vessel)
private javafx.scene.paint.Color
ShipIconSkin. getShieldBaseColor(INavigableVessel vessel)
private java.lang.String
ShipIconSkin. getShieldColorName(INavigableVessel vessel)
private javafx.scene.image.Image
ShipIconSkin. getShipIcon(INavigableVessel vessel)
Load the ship icon for the appropriate type with size 64.private void
ShipIconSkin. updateOtherPlayerShield(javafx.scene.Group g, INavigableVessel vessel)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.javafx.service
Constructors in ch.sahits.game.openpatrician.javafx.service with parameters of type INavigableVessel Constructor Description VesselNavigatorWrapper(INavigableVessel item)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.model
Methods in ch.sahits.game.openpatrician.model that return types with arguments of type INavigableVessel Modifier and Type Method Description java.util.List<INavigableVessel>
IPlayer. findShips(ICity city)
Find all ships in a cityjava.util.List<INavigableVessel>
IPlayer. getSelectableVessels()
Provide a different view on the fleet by containing all the vessels that can be selected.Methods in ch.sahits.game.openpatrician.model with parameters of type INavigableVessel Modifier and Type Method Description void
IPlayer. addSelectableVessel(INavigableVessel vessel)
Add a selectable vessel to the list.void
IAIPlayer. addTradeStep(ITradeStep tradeStep, INavigableVessel vessel)
Add a new trade step at the end of the list.ITradeStep
IAIPlayer. getNextTradeStep(INavigableVessel vessel)
Retrieve the next trade step that should be executed and remove it from the list.ITradeMissionData
IAIPlayer. getTradeMission(INavigableVessel vessel)
Retrieve the trade mission of a given vessel.java.util.List<ITradeStep>
IAIPlayer. getTradeSteps(INavigableVessel vessel)
Retrieve a copy of the trade steps of the vessel.IAITradeStrategyType
IAIPlayer. getTradeStrategyType(INavigableVessel vessel)
Retreive the the type of trade strategy.boolean
IAIPlayer. hasMoreTradeSteps(INavigableVessel vessel)
Check if there are further trade steps.void
IAIPlayer. injectTradeStep(ITradeStep tradeStep, INavigableVessel vessel)
Inject a trade step at the beinning of the task list for the vesselboolean
IAIPlayer. isInitialized(INavigableVessel vessel)
Check if the trade strategy for the vessel is initialized.void
IPlayer. removeSelectableVessel(INavigableVessel vessel)
Remove a selectable vessel from the list.void
IAIPlayer. setTradeMission(INavigableVessel vessel, ITradeMissionData tradeMission)
Add trade mission data fo a vessel.void
IAIPlayer. setTradeStrategyType(INavigableVessel vessel, IAITradeStrategyType type)
void
IAIPlayer. updateTradeWaitingStatus(INavigableVessel vessel, boolean wait)
Update the waiting status upon the execution of a trade step.boolean
IAIPlayer. waitingForTradeStepToFinish(INavigableVessel vessel)
Check if the next trade step can be executed for the vessel, or if the last trade step requires waiting on an event. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.city.impl
Fields in ch.sahits.game.openpatrician.model.city.impl with type parameters of type INavigableVessel Modifier and Type Field Description private java.util.List<INavigableVessel>
PopulationUpdateStats. arrivedShips
private java.util.List<INavigableVessel>
PopulationUpdateStats. departedShips
Methods in ch.sahits.game.openpatrician.model.city.impl with parameters of type INavigableVessel Modifier and Type Method Description void
PopulationUpdateStats. arrives(INavigableVessel vessel)
Arriving shipsvoid
PopulationUpdateStats. depart(INavigableVessel vessel)
Departing ships. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.event
Methods in ch.sahits.game.openpatrician.model.event that return INavigableVessel Modifier and Type Method Description INavigableVessel
IShipEntersPortEvent. getShip()
Vessel that enters the port. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.impl
Fields in ch.sahits.game.openpatrician.model.impl with type parameters of type INavigableVessel Modifier and Type Field Description private javafx.collections.ObservableList<INavigableVessel>
Player. selectableVessel
private java.util.Map<INavigableVessel,ITradeMissionData>
AIPlayer. tradeMissions
private com.google.common.collect.LinkedHashMultimap<INavigableVessel,ITradeStep>
AIPlayer. tradeSteps
private java.util.Map<INavigableVessel,IAITradeStrategyType>
AIPlayer. tradeStrategyType
private java.util.Map<INavigableVessel,java.lang.Boolean>
AIPlayer. waitingStatus
Waiting status of the trade for a ship.Methods in ch.sahits.game.openpatrician.model.impl that return types with arguments of type INavigableVessel Modifier and Type Method Description java.util.List<INavigableVessel>
Player. findShips(ICity city)
java.util.List<INavigableVessel>
Player. getSelectableVessels()
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.people
Methods in ch.sahits.game.openpatrician.model.people that return INavigableVessel Modifier and Type Method Description INavigableVessel
ISeaPirate. getShip()
Retrieve the priate's vehicle. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.people.impl
Fields in ch.sahits.game.openpatrician.model.people.impl declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
SeaPirate. ship
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.player
Methods in ch.sahits.game.openpatrician.model.player that return types with arguments of type INavigableVessel Modifier and Type Method Description java.util.Optional<INavigableVessel>
IAIConstructionSelectionStrategy. selectCollectingVessel(IAIPlayer player, EShipType shipType)
Find a vessel that will do the collection.Methods in ch.sahits.game.openpatrician.model.player with parameters of type INavigableVessel Modifier and Type Method Description boolean
IAITradeStrategy. executeTradeSteps(IAIPlayer player, INavigableVessel vessel)
Execute the trad steps defined for the vessel.java.util.List<ICity>
IProductionConsumptionKnowledge. findCitiesWithNeedMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
Find cities that need theware
and order them based on the need and the distance.java.util.List<ICity>
IProductionConsumptionKnowledge. findListWithConsumptionMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
Find cities that consume the ware and order them based on consumption amount and distance.java.util.List<ICity>
IProductionConsumptionKnowledge. findListWithProductionsMinimalDistance(ICity distanceToCity, IWare ware, INavigableVessel vessel)
Find cities that produce the ware and order them based on production amount and distance.ICity
IAITradeStrategy. getCityToRestartTradeCycle(INavigableVessel vessel)
In the case where the trade cycle must be re-initialized, but the ship is not in a city, determine the city to which the vessel should travel.void
IAITradeStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)
Initialize the trade cycle.void
IAIConstructionSelectionStrategy. initShipConstruction(IAIPlayer player, INavigableVessel vessel, EShipType shipType)
Initialize the ship construction by collecting the wares.default boolean
IAITradeStrategy. isSelectable(IAIPlayer player, INavigableVessel vessel)
Check if this strategy can be selected in the current setup.void
IAIShipRepairStrategy. repair(INavigableVessel vessel, ICity city)
Initialize the reppair of the vessel.boolean
IAIShipRepairStrategy. shouldRepair(INavigableVessel vessel, ICity city)
Decide if thevessel
should be repaired, when it is incity
.Method parameters in ch.sahits.game.openpatrician.model.player with type arguments of type INavigableVessel Modifier and Type Method Description boolean
IAIGuildJoinStrategy. shouldJoin(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)
Decide ifplayer
should join the guild in thecity
. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.sea
Fields in ch.sahits.game.openpatrician.model.sea declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
TravellingVessel. vessel
Fields in ch.sahits.game.openpatrician.model.sea with type parameters of type INavigableVessel Modifier and Type Field Description private java.util.Map<INavigableVessel,TravellingVessel>
TravellingVessels. vessels
Methods in ch.sahits.game.openpatrician.model.sea that return types with arguments of type INavigableVessel Modifier and Type Method Description java.util.Iterator<INavigableVessel>
ITravellingVessels. iterator()
java.util.Iterator<INavigableVessel>
TravellingVessels. iterator()
Methods in ch.sahits.game.openpatrician.model.sea with parameters of type INavigableVessel Modifier and Type Method Description void
ILocationTracker. add(INavigableVessel ship)
Add a shipt to the location tracker.void
TravellingVessels. addVessel(INavigableVessel vessel, java.util.Optional<javafx.scene.shape.Path> path, java.util.List<javafx.geometry.Point2D> points)
Thevessel
starts it's travel and must be added to this collection together with its data.TravellingVessel
ITravellingVessels. getTravellingVessel(INavigableVessel vessel)
Retrieve the meta date for a travelling vessel.TravellingVessel
TravellingVessels. getTravellingVessel(INavigableVessel vessel)
boolean
ITravellingVessels. isTravelling(INavigableVessel vessel)
Check if the vessel is currently travelling.boolean
TravellingVessels. isTravelling(INavigableVessel vessel)
void
TravellingVessels. remove(INavigableVessel vessel)
The vessel is no longer travelling and should no longer be part of this collection. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.server
Fields in ch.sahits.game.openpatrician.model.server declared as INavigableVessel Modifier and Type Field Description private INavigableVessel
MapSegmentDataCheck. ship
Fields in ch.sahits.game.openpatrician.model.server with type parameters of type INavigableVessel Modifier and Type Field Description private java.util.Map<INavigableVessel,MapSegmentDataCheck>
MapLocationDetectionModel. checkList
Methods in ch.sahits.game.openpatrician.model.server with parameters of type INavigableVessel Modifier and Type Method Description boolean
MapLocationDetectionModel. isInCheckedList(INavigableVessel ship)
-
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.ship
Subinterfaces of INavigableVessel in ch.sahits.game.openpatrician.model.ship Modifier and Type Interface Description interface
ICog
Interface defining a coginterface
IConvoy
A convoy is a special representation of a ship.interface
ICrayer
This interface marks a ship as a crayer.interface
IGroupableVessel
Define access to a vessel that is actutally a group of ships.interface
IHolk
Interface defining a holk.interface
IShip
Model of a shipinterface
IShipGroup
A Ship group is similar to aIConvoy
only that there is no Orleg ship.interface
ISnaikka
This interface defines a snaikka. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.ship.impl
Classes in ch.sahits.game.openpatrician.model.ship.impl that implement INavigableVessel Modifier and Type Class Description class
Cog
class
Convoy
Implementation of the Convoy.class
Crayer
This model represents a crayer.class
Holk
class
Ship
class
ShipGroup
Implementation of a group of ships mainly used by pirates.class
Snaikka
-