Uses of Interface
ch.sahits.game.openpatrician.model.city.ICity
-
-
Uses of ICity in ch.sahits.game.openpatrician.model
Methods in ch.sahits.game.openpatrician.model that return ICity Modifier and Type Method Description ICityModelConfiguration. cityBean(ch.sahits.game.openpatrician.data.xmlmodel.map.Map.Cities.City cityData)ICityModelConfiguration. cityBean(FoundNewSettlement cityData)ICityICitizen. getHometown()Retreive the hometown of the citizen.ICityICompany. getHomeTown()Retrieve the home town of the companyMethods in ch.sahits.game.openpatrician.model with parameters of type ICity Modifier and Type Method Description java.util.List<IAIPlayer>AIPlayerList. findAIPlayersCurrentlyInCity(ICity city)java.util.List<IBuilding>IPlayer. findBuildings(ICity city)Find all buildings of the player in the city<T extends IBuilding>
java.util.List<T>IPlayer. findBuildings(ICity city, java.lang.Class<T> buildingClass)Find all buildings in the city that are some subtype of the indicated classjava.util.List<INavigableVessel>IPlayer. findShips(ICity city)Find all ships in a cityjava.util.Optional<ITradingOffice>IPlayer. findTradingOffice(ICity city)Find the trading office of the player in the city. -
Uses of ICity in ch.sahits.game.openpatrician.model.building
Methods in ch.sahits.game.openpatrician.model.building that return ICity Modifier and Type Method Description ICityIBuilding. getCity()Retreive the location of the building.ICityITradingOffice. getCity()Retrieve the city the trading office is located in. -
Uses of ICity in ch.sahits.game.openpatrician.model.building.impl
Constructors in ch.sahits.game.openpatrician.model.building.impl with parameters of type ICity Constructor Description Storage(IPlayer owner, ICity city)TradingOffice(IPlayer player, ICity city, int value, IStorage storage, IBalanceSheet lastWeek, IBalanceSheet thisWeek) -
Uses of ICity in ch.sahits.game.openpatrician.model.city
Methods in ch.sahits.game.openpatrician.model.city that return ICity Modifier and Type Method Description ICityILoaner. getCity()Retrieve the city the loaner belongs to.ICityIShipyard. getCity()Retrieve the city the shipyard belongs to.Methods in ch.sahits.game.openpatrician.model.city that return types with arguments of type ICity Modifier and Type Method Description java.util.Iterator<java.util.Map.Entry<ICity,IShipyard>>Shipyards. iterator()Methods in ch.sahits.game.openpatrician.model.city with parameters of type ICity Modifier and Type Method Description voidCityProductionStorage. add(ICity city)Create the production storage for an additional city.voidShipyards. add(IShipyard shipyard, ICity city)Add a shipyard in the city.ILoanerLoanerList. getLoaner(ICity city)intIBuildingProduction. getProduction(IWare ware, ICity city, IPlayer player)Compute the total amount of ware the player produces in the city within a weekIShipyardShipyards. getShipyard(ICity city)Retrieve the shipyard of the city.ProductionStorageCityProductionStorage. getStorage(ICity city)Retrieve theProductionStoragefor the city.intIBuildingProduction. getTotalConsumtion(IWare ware, ICity city)Retrieve the amount the workshops consume to produce the ware within a weekintIBuildingProduction. getTotalProduction(IWare ware, ICity city)Compute the total amount of ware that is produced in the city within a weekdoublePopulationConsume. getWeeklyConsumption(IWare ware, ICity city)Calculate the weekly overall consumption of a ware in a city. -
Uses of ICity in ch.sahits.game.openpatrician.model.city.cityhall
Methods in ch.sahits.game.openpatrician.model.city.cityhall that return ICity Modifier and Type Method Description ICityICityHall. getCity()Retrieve the city belonging to this city hallICityICityViolation. getCity()City that violated the customs.ICityIHelpCity. getCity()Retrieve the city that should be helped.ICityICityHallNotice. getDestination()Destination to deliver the ware to.ICityIBuildLandPassage. getFromCity()Retrieve an endpoint of the passage.ICityIBuildLandPassage. getToCity()Retrieve an endpoint of the passage.Methods in ch.sahits.game.openpatrician.model.city.cityhall with parameters of type ICity Modifier and Type Method Description java.util.Optional<ICityHall>CityHallList. findCityHall(ICity city) -
Uses of ICity in ch.sahits.game.openpatrician.model.city.cityhall.impl
Constructors in ch.sahits.game.openpatrician.model.city.cityhall.impl with parameters of type ICity Constructor Description BuildLandPassage(int duration, ICity fromCity, ICity toCity)CityViolation(ICity city, java.time.LocalDateTime date)CustomsViolation(ICity city, java.time.LocalDateTime dateTime)HelpCity(int duration, ICity city)PirateSupportViolation(ICity city, java.time.LocalDateTime date)PlunderTradingOfficeViolation(ICity city, java.time.LocalDateTime date)SpecialTaxViolation(ICity city, java.time.LocalDateTime date) -
Uses of ICity in ch.sahits.game.openpatrician.model.city.guild
Methods in ch.sahits.game.openpatrician.model.city.guild that return ICity Modifier and Type Method Description ICityIGuild. getCity()Retrieve the city where the guild is located.Methods in ch.sahits.game.openpatrician.model.city.guild with parameters of type ICity Modifier and Type Method Description java.util.Optional<IGuild>GuildList. findGuild(ICity city) -
Uses of ICity in ch.sahits.game.openpatrician.model.city.impl
Classes in ch.sahits.game.openpatrician.model.city.impl that implement ICity Modifier and Type Class Description classCityImplementation of the city model.Methods in ch.sahits.game.openpatrician.model.city.impl that return types with arguments of type ICity Modifier and Type Method Description java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>>CitiesState. findCityWithMostNeededWare()Find a possible city that has needed wares.java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>>CitiesState. findCityWithSurplusWare()Find a possible city that has needed wares.Methods in ch.sahits.game.openpatrician.model.city.impl with parameters of type ICity Modifier and Type Method Description voidCitiesState. addCity(ICity city, CityState cityState)Add a new city.Constructors in ch.sahits.game.openpatrician.model.city.impl with parameters of type ICity Constructor Description CityState(ICity city, IShipyard shipard, TavernState tavern)LoanerState(ICity city)ShipyardState(ICity city)TavernState(ICity city) -
Uses of ICity in ch.sahits.game.openpatrician.model.event
Methods in ch.sahits.game.openpatrician.model.event that return ICity Modifier and Type Method Description ICityIShipEntersPortEvent. getCity()City which is entered.Constructors in ch.sahits.game.openpatrician.model.event with parameters of type ICity Constructor Description BuildingFinished(IBuilding building, IPlayer owner, ICity city)FoundingCityBecomesAccessible(ICity city)PersonLeavesTavernEvent(ICity city, IPerson person) -
Uses of ICity in ch.sahits.game.openpatrician.model.impl
Methods in ch.sahits.game.openpatrician.model.impl that return ICity Modifier and Type Method Description ICityPlayer. getHometown()Methods in ch.sahits.game.openpatrician.model.impl with parameters of type ICity Modifier and Type Method Description java.util.List<IBuilding>Player. findBuildings(ICity city)<T extends IBuilding>
java.util.List<T>Player. findBuildings(ICity city, java.lang.Class<T> buildingClass)java.util.List<INavigableVessel>Player. findShips(ICity city)java.util.Optional<ITradingOffice>Player. findTradingOffice(ICity city)Constructors in ch.sahits.game.openpatrician.model.impl with parameters of type ICity Constructor Description AIPlayer(ICity homeTown, java.time.LocalDateTime birthDate, ICompany company)Armory(ICity city)BalanceSheet(ICity city, IPlayer player)Initialize a blank sheetCompany(ICity homeTown, long cash, long random)HumanPlayer(ICity homeTown, IPersonalData personalData, ESocialRank rank, ICompany company, EPlayerColor color)Player(ICity homeTown, IPersonalData personalData, ESocialRank rank, ICompany company) -
Uses of ICity in ch.sahits.game.openpatrician.model.map
Methods in ch.sahits.game.openpatrician.model.map that return ICity Modifier and Type Method Description ICityIMap. findCity(java.lang.String cityName)Find a city by its name.ICityILandBridge. getFrom()ICityILandBridge. getTo()ICityITradeRouteStop. getTradeStop()Which city is represented by this trade stop.Methods in ch.sahits.game.openpatrician.model.map that return types with arguments of type ICity Modifier and Type Method Description java.util.Optional<ICity>IMap. findCity(javafx.geometry.Point2D location)Find the city at the given coordinates.java.util.List<ICity>IMap. getCities()Retrieve an unmodifiable list of all the cities in the mapjava.util.List<ICity>IMap. getCities(IPlayer player)Retrieve an unmodifiable list of all the cities in the map also including the once only visible to the player.com.google.common.collect.Multimap<IPlayer,ICity>IMap. getTownsInFounding()Retrieve the cities that are currently being founded by players.Methods in ch.sahits.game.openpatrician.model.map with parameters of type ICity Modifier and Type Method Description voidIMap. add(ICity city)Add a new city. -
Uses of ICity in ch.sahits.game.openpatrician.model.map.impl
Methods in ch.sahits.game.openpatrician.model.map.impl that return ICity Modifier and Type Method Description ICityGameMap. findCity(java.lang.String cityName)Methods in ch.sahits.game.openpatrician.model.map.impl that return types with arguments of type ICity Modifier and Type Method Description java.util.Optional<ICity>GameMap. findCity(javafx.geometry.Point2D location)java.util.List<ICity>GameMap. getCities()java.util.List<ICity>GameMap. getCities(IPlayer player)Methods in ch.sahits.game.openpatrician.model.map.impl with parameters of type ICity Modifier and Type Method Description voidGameMap. add(ICity city)Method parameters in ch.sahits.game.openpatrician.model.map.impl with type arguments of type ICity Modifier and Type Method Description voidGameMap. setup(java.util.Collection<ICity> cities, javafx.geometry.Dimension2D dim, java.lang.String mapName, java.lang.String bwImageName, double numberOfPixelPerKilometer)Initialize the map by means of a list of its cities. -
Uses of ICity in ch.sahits.game.openpatrician.model.people
Methods in ch.sahits.game.openpatrician.model.people that return ICity Modifier and Type Method Description ICityIBaseTraveler. getDestination()ICityIEscorte. getDestination()Get the destination city for the traveler.ICityIFugitive. getDestination()Get the destination city for the traveler.ICityISmuggler. getDestination()Destination city.ICityITransportTrader. getDestination()Destination city the trader has to get to.ICityITraveler. getDestination()Get the destination city for the traveler.Methods in ch.sahits.game.openpatrician.model.people that return types with arguments of type ICity Modifier and Type Method Description java.util.Optional<ch.sahits.datastructure.GenericPair<java.lang.String,ICity>>IInformant. getPirateLocation()Possible information about the location of a pirate.java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>>IInformant. getWareNeeded()Possible information about in which city which ware is needed.java.util.Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>>IInformant. getWareSurplus()Possible information about in which city which ware is available in surplus.java.util.Optional<ICity>INonFreeSeaPirate. roamingNearCity()Indicates if the pirate is looting near the city.Methods in ch.sahits.game.openpatrician.model.people with parameters of type ICity Modifier and Type Method Description voidIContractBrokers. add(IContractBroker broker, ICity city)java.util.Optional<IContractBroker>IContractBrokers. findContractBroker(ICity city, IPlayer player)Retrieve the contract broker in the city, who is waiting for a delivery by the player.booleanIContractBrokers. hasContractBroker(ICity city)Check if there is a contract broker defined for the city.voidITavernPerson. setCity(ICity city)Set the city of the tavern in which the person is located.voidIWeaponsDealer. setCity(ICity city)Set the city.voidIBaseTraveler. setDestination(ICity destination)voidISmuggler. setDestination(ICity destination)Set the destinationvoidITransportTrader. setDestination(ICity destination)Set the destination cityvoidIInformant. setNeededWare(ICity city, IWare ware)Set the information about the needed ware in the city.voidIInformant. setPirateLocation(ISeaPirate pirate, ICity city)Set the location of the pirate.voidIInformant. setWareSurplus(ICity city, IWare ware)Set the information about the surplus ware in the cityConstructors in ch.sahits.game.openpatrician.model.people with parameters of type ICity Constructor Description ContractBrokerConnections(IContractBroker contractBroker, ICity city) -
Uses of ICity in ch.sahits.game.openpatrician.model.people.impl
Fields in ch.sahits.game.openpatrician.model.people.impl declared as ICity Modifier and Type Field Description protected ICity[]BasePatrolState. destinationsMethods in ch.sahits.game.openpatrician.model.people.impl that return types with arguments of type ICity Modifier and Type Method Description java.util.Optional<ICity>CaptainsState. findCaptainsCurrentCity(ICaptain captain)Find the current city of a captain.java.util.Optional<ICity>NonFreeSeaPirate. roamingNearCity()Methods in ch.sahits.game.openpatrician.model.people.impl with parameters of type ICity Modifier and Type Method Description voidCaptainsState. addCaptain(ICity city, java.time.LocalDateTime arrival, ICaptain captain)voidCaptainsState. assignCaptainToCity(ICaptain captain, ICity city, java.time.LocalDateTime arrivalDate)Assign the captain to a new town.java.util.Optional<ICaptain>CaptainsState. getCaptain(ICity city)Return a captain for a town if there is one.voidCaptainsState. hireCaptain(ICaptain captain, ICity city)Remove the captain from the availables.voidWeaponsDealerState. setCity(ICity city)voidInformantState. setNeededWare(ICity city, IWare ware)voidInformantState. setPirateLocation(ISeaPirate pirate, ICity city)voidInformantState. setWareSurplus(ICity city, IWare ware)Constructors in ch.sahits.game.openpatrician.model.people.impl with parameters of type ICity Constructor Description NonFreeSeaPirate(IPlayer hiringPlayer, java.time.LocalDateTime hireDate, ICity nearCity)Create a non free pirate. -
Uses of ICity in ch.sahits.game.openpatrician.model.personal
Methods in ch.sahits.game.openpatrician.model.personal that return ICity Modifier and Type Method Description ICityIPersonalData. getBirthPlace()Retrieve the birth place -
Uses of ICity in ch.sahits.game.openpatrician.model.personal.impl
Constructors in ch.sahits.game.openpatrician.model.personal.impl with parameters of type ICity Constructor Description Reputation(ICity city, IPlayer player)SpouseData(java.lang.String name, java.lang.String lastName, boolean male, ICity birthplace, java.time.LocalDateTime birthDate, int popHer, int popYour, int conHer, int conYour, java.lang.String portraitResourceName) -
Uses of ICity in ch.sahits.game.openpatrician.model.player
Methods in ch.sahits.game.openpatrician.model.player that return ICity Modifier and Type Method Description ICityIAIConstructionSelectionStrategy. getBuildLocation(IAIPlayer player)Select the build location of the new ship.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.Methods in ch.sahits.game.openpatrician.model.player that return types with arguments of type ICity Modifier and Type Method Description 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.Methods in ch.sahits.game.openpatrician.model.player with parameters of type ICity Modifier and Type Method Description voidAIPlayerContext. add(ICity city, ITradeStategyHint hint)Add a new hint to a city.voidIAIBuyWeaponStrategy. buyWeapons(BuyWeapons target, IShip ship, IAIPlayer player, ICity city)Buy the weapons.voidIAIBuyWeaponStrategy. buyWeaponsOrdered(BuyWeapons target, IShip ship, IAIPlayer player, ICity city)Buy the weapons.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.java.util.Optional<ICaptain>IAICaptainHireStrategy. getCaptain(ICity city)Retrieve the captain to be hired.java.util.List<ITradeStategyHint>AIPlayerContext. getHints(ICity city)Retrieve all hints for the city.ICityProductionConsumptionKnowledgeIProductionConsumptionKnowledge. getKnowlege(ICity city)Retrieve the knowledge for a city.voidIAICaptainHireStrategy. hire(IAIPlayer player, IShip vessel, ICaptain captain, ICity city)playerhirescaptainon thevessel.voidIAIHireTradeManagerStrategy. hireOrDismiss(ICity city, IAIPlayer player)Hire or dismiss a trading manager.booleanIAIHireTradeManagerStrategy. hireOrFireTradeManager(ICity city, IAIPlayer player)Decide if a trade manager should be hired or dismissed.voidIAIGuildJoinStrategy. join(IAIPlayer player, ICity city)Join the guild in the city.voidIAIShipRepairStrategy. repair(INavigableVessel vessel, ICity city)Initialize the reppair of the vessel.java.util.Optional<BuyWeapons>IAIBuyWeaponStrategy. shouldBuyWeapons(IShip ship, IAIPlayer player, ICity city)Determine if weapons should be bougth and if so to meet which target.booleanIAICaptainHireStrategy. shouldHire(IAIPlayer player, IShip vessel, ICity city)Shouldplayerhirecaptainon thevessel.booleanIAIGuildJoinStrategy. shouldJoin(IAIPlayer player, ICity city, java.util.Optional<INavigableVessel> vessel)Decide ifplayershould join the guild in thecity.booleanIAIEventDecisionStrategy. shouldOrderCelebration(IAIPlayer player, ICity city)Decide if a celebration should be executed.booleanIAIShipRepairStrategy. shouldRepair(INavigableVessel vessel, ICity city)Decide if thevesselshould be repaired, when it is incity.voidIAITakeLoanStrategy. takeLoan(IAIPlayer player, ICity city)Take a loan in the city.voidIProductionConsumptionKnowledge. updateKnowledge(ICity city)Update the knowledge of the city.voidIAIShipUpgradeStrategy. upgrade(IShip ship, ICity city)Upgrade the ship in city. -
Uses of ICity in ch.sahits.game.openpatrician.model.sea
Methods in ch.sahits.game.openpatrician.model.sea that return types with arguments of type ICity Modifier and Type Method Description java.util.Set<java.util.Map.Entry<ICity,IBlockade>>BlockadeState. entrySet()java.util.Optional<ICity>TravellingVessels. findCity(javafx.geometry.Point2D location)Find the city that is located at the postionlocation.Methods in ch.sahits.game.openpatrician.model.sea with parameters of type ICity Modifier and Type Method Description voidBlockadeState. addBlockade(ICity city, IBlockade blockade)Add a blockade for the city.voidBlockadeState. finishBlockade(ICity city)Finish the blockade.java.util.Optional<IBlockade>BlockadeState. getBlockade(ICity city)Retrieve the blockade for the city. -
Uses of ICity in ch.sahits.game.openpatrician.model.ship
Methods in ch.sahits.game.openpatrician.model.ship with parameters of type ICity Modifier and Type Method Description java.util.List<IConvoy>ConvoyList. findConvoy(ICity city)Find all convois in town. -
Uses of ICity in ch.sahits.game.openpatrician.model.weapon
Methods in ch.sahits.game.openpatrician.model.weapon that return types with arguments of type ICity Modifier and Type Method Description java.util.Iterator<java.util.Map.Entry<ICity,IArmory>>ArmoryRegistry. iterator()Methods in ch.sahits.game.openpatrician.model.weapon with parameters of type ICity Modifier and Type Method Description voidArmoryRegistry. add(ICity city, IArmory armory)Add a new armory for a city.IArmoryArmoryRegistry. getArmory(ICity city)Retrieve the armory of the city.
-