Uses of Interface
ch.sahits.game.openpatrician.model.ship.INavigableVessel
-
-
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 voidIPlayer. addSelectableVessel(INavigableVessel vessel)Add a selectable vessel to the list.voidIAIPlayer. addTradeStep(ITradeStep tradeStep, INavigableVessel vessel)Add a new trade step at the end of the list.ITradeStepIAIPlayer. getNextTradeStep(INavigableVessel vessel)Retrieve the next trade step that should be executed and remove it from the list.ITradeMissionDataIAIPlayer. 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.IAITradeStrategyTypeIAIPlayer. getTradeStrategyType(INavigableVessel vessel)Retreive the the type of trade strategy.booleanIAIPlayer. hasMoreTradeSteps(INavigableVessel vessel)Check if there are further trade steps.voidIAIPlayer. injectTradeStep(ITradeStep tradeStep, INavigableVessel vessel)Inject a trade step at the beinning of the task list for the vesselbooleanIAIPlayer. isInitialized(INavigableVessel vessel)Check if the trade strategy for the vessel is initialized.voidIPlayer. removeSelectableVessel(INavigableVessel vessel)Remove a selectable vessel from the list.voidIAIPlayer. setTradeMission(INavigableVessel vessel, ITradeMissionData tradeMission)Add trade mission data fo a vessel.voidIAIPlayer. setTradeStrategyType(INavigableVessel vessel, IAITradeStrategyType type)voidIAIPlayer. updateTradeWaitingStatus(INavigableVessel vessel, boolean wait)Update the waiting status upon the execution of a trade step.booleanIAIPlayer. 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
Methods in ch.sahits.game.openpatrician.model.city.impl with parameters of type INavigableVessel Modifier and Type Method Description voidPopulationUpdateStats. arrives(INavigableVessel vessel)Arriving shipsvoidPopulationUpdateStats. 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 INavigableVesselIShipEntersPortEvent. getShip()Vessel that enters the port. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.impl
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 INavigableVesselISeaPirate. getShip()Retrieve the priate's vehicle. -
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 booleanIAITradeStrategy. 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 thewareand 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.ICityIAITradeStrategy. 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.voidIAITradeStrategy. initializeTradeCycle(IAIPlayer player, INavigableVessel vessel)Initialize the trade cycle.voidIAIConstructionSelectionStrategy. initShipConstruction(IAIPlayer player, INavigableVessel vessel, EShipType shipType)Initialize the ship construction by collecting the wares.default booleanIAITradeStrategy. isSelectable(IAIPlayer player, INavigableVessel vessel)Check if this strategy can be selected in the current setup.voidIAIShipRepairStrategy. repair(INavigableVessel vessel, ICity city)Initialize the reppair of the vessel.booleanIAIShipRepairStrategy. shouldRepair(INavigableVessel vessel, ICity city)Decide if thevesselshould 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 booleanIAIGuildJoinStrategy. shouldJoin(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)Decide ifplayershould join the guild in thecity. -
Uses of INavigableVessel in ch.sahits.game.openpatrician.model.sea
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 voidILocationTracker. add(INavigableVessel ship)Add a shipt to the location tracker.voidTravellingVessels. addVessel(INavigableVessel vessel, java.util.Optional<javafx.scene.shape.Path> path, java.util.List<javafx.geometry.Point2D> points)Thevesselstarts it's travel and must be added to this collection together with its data.TravellingVesselITravellingVessels. getTravellingVessel(INavigableVessel vessel)Retrieve the meta date for a travelling vessel.TravellingVesselTravellingVessels. getTravellingVessel(INavigableVessel vessel)booleanITravellingVessels. isTravelling(INavigableVessel vessel)Check if the vessel is currently travelling.booleanTravellingVessels. isTravelling(INavigableVessel vessel)voidTravellingVessels. 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
Methods in ch.sahits.game.openpatrician.model.server with parameters of type INavigableVessel Modifier and Type Method Description booleanMapLocationDetectionModel. 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 interfaceICogInterface defining a coginterfaceIConvoyA convoy is a special representation of a ship.interfaceICrayerThis interface marks a ship as a crayer.interfaceIGroupableVesselDefine access to a vessel that is actutally a group of ships.interfaceIHolkInterface defining a holk.interfaceIShipModel of a shipinterfaceIShipGroupA Ship group is similar to aIConvoyonly that there is no Orleg ship.interfaceISnaikkaThis 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 classCogclassConvoyImplementation of the Convoy.classCrayerThis model represents a crayer.classHolkclassShipclassShipGroupImplementation of a group of ships mainly used by pirates.classSnaikka
-