| Modifier and Type | Method | Description |
|---|---|---|
ICity |
ModelConfiguration.cityBean(ch.sahits.game.openpatrician.data.xmlmodel.map.Map.Cities.City cityData) |
|
ICity |
ModelConfiguration.cityBean(FoundNewSettlement cityData) |
|
ICity |
ICitizen.getHometown() |
Retreive the hometown of the citizen.
|
ICity |
ICompany.getHomeTown() |
Retrieve the home town of the company
|
| 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> |
IPlayer.findBuildings(ICity city,
java.lang.Class<T> buildingClass) |
Find all buildings in the city that are some subtype of the indicated class
|
java.util.List<INavigableVessel> |
IPlayer.findShips(ICity city) |
Find all ships in a city
|
java.util.Optional<ITradingOffice> |
IPlayer.findTradingOffice(ICity city) |
Find the trading office of the player in the city.
|
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
IBuilding.getCity() |
Retreive the location of the building.
|
ICity |
ITradingOffice.getCity() |
Retrieve the city the trading office is located in.
|
| Constructor | Description |
|---|---|
Storage(IPlayer owner,
ICity city) |
|
TradingOffice(IPlayer player,
ICity city,
int value,
IStorage storage,
IBalanceSheet lastWeek,
IBalanceSheet thisWeek) |
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
ILoaner.getCity() |
Retrieve the city the loaner belongs to.
|
ICity |
IShipyard.getCity() |
Retrieve the city the shipyard belongs to.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Iterator<java.util.Map.Entry<ICity,IShipyard>> |
Shipyards.iterator() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
CityProductionStorage.add(ICity city) |
Create the production storage for an additional city.
|
void |
Shipyards.add(IShipyard shipyard,
ICity city) |
Add a shipyard in the city.
|
ILoaner |
LoanerList.getLoaner(ICity city) |
|
int |
IBuildingProduction.getProduction(IWare ware,
ICity city,
IPlayer player) |
Compute the total amount of ware the player produces in the city within a week
|
IShipyard |
Shipyards.getShipyard(ICity city) |
Retrieve the shipyard of the city.
|
ProductionStorage |
CityProductionStorage.getStorage(ICity city) |
Retrieve the
ProductionStorage for the city. |
int |
IBuildingProduction.getTotalConsumtion(IWare ware,
ICity city) |
Retrieve the amount the workshops consume to produce the ware within a week
|
int |
IBuildingProduction.getTotalProduction(IWare ware,
ICity city) |
Compute the total amount of ware that is produced in the city within a week
|
double |
PopulationConsume.getWeeklyConsumption(IWare ware,
ICity city) |
Calculate the weekly overall consumption of a ware in a city.
|
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
ICityHall.getCity() |
Retrieve the city belonging to this city hall
|
ICity |
ICityViolation.getCity() |
City that violated the customs.
|
ICity |
IHelpCity.getCity() |
Retrieve the city that should be helped.
|
ICity |
ICityHallNotice.getDestination() |
Destination to deliver the ware to.
|
ICity |
IBuildLandPassage.getFromCity() |
Retrieve an endpoint of the passage.
|
ICity |
IBuildLandPassage.getToCity() |
Retrieve an endpoint of the passage.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<ICityHall> |
CityHallList.findCityHall(ICity city) |
| 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) |
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
IGuild.getCity() |
Retrieve the city where the guild is located.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Optional<IGuild> |
GuildList.findGuild(ICity city) |
| Modifier and Type | Class | Description |
|---|---|---|
class |
City |
Implementation of the city model.
|
| 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.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
CitiesState.addCity(ICity city,
CityState cityState) |
Add a new city.
|
| Constructor | Description |
|---|---|
CityState(ICity city,
IShipyard shipard,
TavernState tavern) |
|
LoanerState(ICity city) |
|
ShipyardState(ICity city) |
|
TavernState(ICity city) |
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
IShipEntersPortEvent.getCity() |
City which is entered.
|
| Constructor | Description |
|---|---|
PersonLeavesTavernEvent(ICity city,
IPerson person) |
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
Player.getHometown() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IBuilding> |
Player.findBuildings(ICity city) |
|
<T extends IBuilding> |
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) |
| Constructor | Description |
|---|---|
AIPlayer(ICity homeTown,
java.time.LocalDateTime birthDate,
ICompany company) |
|
Armory(ICity city) |
|
BalanceSheet(ICity city,
IPlayer player) |
Initialize a blank sheet
|
Company(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) |
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
IMap.findCity(java.lang.String cityName) |
Find a city by its name.
|
ICity |
ILandBridge.getFrom() |
|
ICity |
ILandBridge.getTo() |
|
ICity |
ITradeRouteStop.getTradeStop() |
Which city is represented by this trade stop.
|
| 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 map
|
java.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.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
IMap.add(ICity city) |
Add a new city.
|
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
GameMap.findCity(java.lang.String cityName) |
| 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) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
GameMap.add(ICity city) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
GameMap.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.
|
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
IBaseTraveler.getDestination() |
|
ICity |
IEscorte.getDestination() |
Get the destination city for the traveler.
|
ICity |
IFugitive.getDestination() |
Get the destination city for the traveler.
|
ICity |
ISmuggler.getDestination() |
Destination city.
|
ICity |
ITransportTrader.getDestination() |
Destination city the trader has to get to.
|
ICity |
ITraveler.getDestination() |
Get the destination city for the traveler.
|
| 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.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
ITavernPerson.setCity(ICity city) |
Set the city of the tavern in which the person is located.
|
void |
IWeaponsDealer.setCity(ICity city) |
Set the city.
|
void |
IBaseTraveler.setDestination(ICity destination) |
|
void |
ISmuggler.setDestination(ICity destination) |
Set the destination
|
void |
ITransportTrader.setDestination(ICity destination) |
Set the destination city
|
void |
IInformant.setNeededWare(ICity city,
IWare ware) |
Set the information about the needed ware in the city.
|
void |
IInformant.setPirateLocation(ISeaPirate pirate,
ICity city) |
Set the location of the pirate.
|
void |
IInformant.setWareSurplus(ICity city,
IWare ware) |
Set the information about the surplus ware in the city
|
| Modifier and Type | Field | Description |
|---|---|---|
protected ICity[] |
BasePatrolState.destinations |
| 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() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
CaptainsState.addCaptain(ICity city,
java.time.LocalDateTime arrival,
ICaptain captain) |
|
void |
CaptainsState.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.
|
void |
CaptainsState.hireCaptain(ICaptain captain,
ICity city) |
Remove the captain from the availables.
|
void |
WeaponsDealerState.setCity(ICity city) |
|
void |
InformantState.setNeededWare(ICity city,
IWare ware) |
|
void |
InformantState.setPirateLocation(ISeaPirate pirate,
ICity city) |
|
void |
InformantState.setWareSurplus(ICity city,
IWare ware) |
| Constructor | Description |
|---|---|
NonFreeSeaPirate(IPlayer hiringPlayer,
java.time.LocalDateTime hireDate,
ICity nearCity) |
Create a non free pirate.
|
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
IPersonalData.getBirthPlace() |
Retrieve the birth place
|
| 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) |
| Modifier and Type | Method | Description |
|---|---|---|
ICity |
IAIConstructionSelectionStrategy.getBuildLocation(IAIPlayer player) |
Select the build location of the new ship.
|
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.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<ICity> |
IProductionConsumptionKnowledge.findCitiesWithNeedMinimalDistance(ICity distanceToCity,
IWare ware,
INavigableVessel vessel) |
Find cities that need the
ware 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.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
AIPlayerContext.add(ICity city,
ITradeStategyHint hint) |
Add a new hint to a city.
|
void |
IAIBuyWeaponStrategy.buyWeapons(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 the
ware 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.
|
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.
|
ICityProductionConsumptionKnowledge |
IProductionConsumptionKnowledge.getKnowlege(ICity city) |
Retrieve the knowledge for a city.
|
void |
IAICaptainHireStrategy.hire(IAIPlayer player,
IShip vessel,
ICaptain captain,
ICity city) |
player hires captain on the vessel. |
void |
IAIHireTradeManagerStrategy.hireOrDismiss(ICity city,
IAIPlayer player) |
Hire or dismiss a trading manager.
|
boolean |
IAIHireTradeManagerStrategy.hireOrFireTradeManager(ICity city,
IAIPlayer player) |
Decide if a trade manager should be hired or dismissed.
|
void |
IAIGuildJoinStrategy.join(IAIPlayer player,
ICity city) |
Join the guild in the city.
|
void |
IAIShipRepairStrategy.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.
|
boolean |
IAICaptainHireStrategy.shouldHire(IAIPlayer player,
IShip vessel,
ICity city) |
Should
player hire captain on the vessel. |
boolean |
IAIGuildJoinStrategy.shouldJoin(IAIPlayer player,
ICity city,
java.util.Optional<INavigableVessel> vessel) |
Decide if
player should join the guild in the city. |
boolean |
IAIEventDecisionStrategy.shouldOrderCelebration(IAIPlayer player,
ICity city) |
Decide if a celebration should be executed.
|
boolean |
IAIShipRepairStrategy.shouldRepair(INavigableVessel vessel,
ICity city) |
Decide if the
vessel should be repaired, when it is in
city. |
void |
IAITakeLoanStrategy.takeLoan(IAIPlayer player,
ICity city) |
Take a loan in the city.
|
void |
IProductionConsumptionKnowledge.updateKnowledge(ICity city) |
Update the knowledge of the city.
|
void |
IAIShipUpgradeStrategy.upgrade(IShip ship,
ICity city) |
Upgrade the ship in city.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<java.util.Map.Entry<ICity,IBlockade>> |
BlockadeState.entrySet() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
BlockadeState.addBlockade(ICity city,
IBlockade blockade) |
Add a blockade for the city.
|
void |
BlockadeState.finishBlockade(ICity city) |
Finish the blockade.
|
java.util.Optional<IBlockade> |
BlockadeState.getBlockade(ICity city) |
Retrieve the blockade for the city.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<IConvoy> |
ConvoyList.findConvoy(ICity city) |
Find all convois in town.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Iterator<java.util.Map.Entry<ICity,IArmory>> |
ArmoryRegistry.iterator() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
ArmoryRegistry.add(ICity city,
IArmory armory) |
Add a new armory for a city.
|
IArmory |
ArmoryRegistry.getArmory(ICity city) |
Retrieve the armory of the city.
|
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.