| Modifier and Type | Method and Description |
|---|---|
ICity |
ICitizen.getHometown()
Retreive the hometown of the citizen.
|
ICity |
ICompany.getHomeTown()
Retrieve the home town of the company
|
| Modifier and Type | Method and Description |
|---|---|
List<IAIPlayer> |
AIPlayerList.findAIPlayersCurrentlyInCity(ICity city) |
List<IBuilding> |
IPlayer.findBuildings(ICity city)
Find all buildings of the player in the city
|
<T extends IBuilding> |
IPlayer.findBuildings(ICity city,
Class<T> buildingClass)
Find all buildings in the city that are some subtype of the indicated class
|
List<INavigableVessel> |
IPlayer.findShips(ICity city)
Find all ships in a city
|
Optional<ITradingOffice> |
IPlayer.findTradingOffice(ICity city)
Find the trading office of the player in the city.
|
| Modifier and Type | Method and Description |
|---|---|
ICity |
ITradingOffice.getCity()
Retrieve the city the trading office is located in.
|
ICity |
IBuilding.getCity()
Retreive the location of the building.
|
| Modifier and Type | Field and Description |
|---|---|
private ICity |
TradingOffice.city
Reference to the city the trading office is located in
|
private ICity |
Storage.city |
| Constructor and Description |
|---|
Storage(IPlayer owner,
ICity city) |
TradingOffice(IPlayer player,
ICity city,
int value,
IStorage storage,
IBalanceSheet lastWeek,
IBalanceSheet thisWeek) |
| Modifier and Type | Field and Description |
|---|---|
private Map<ICity,IShipyard> |
Shipyards.shipyards |
private Map<ICity,ProductionStorage> |
CityProductionStorage.storage |
| Modifier and Type | Method and 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 and Description |
|---|---|
Iterator<Map.Entry<ICity,IShipyard>> |
Shipyards.iterator() |
| Modifier and Type | Method and 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.
|
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 and Description |
|---|---|
ICity |
ICityViolation.getCity()
City that violated the customs.
|
ICity |
ICityHall.getCity()
Retrieve the city belonging to this city hall
|
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 and Description |
|---|---|
Optional<ICityHall> |
CityHallList.findCityHall(ICity city) |
| Modifier and Type | Field and Description |
|---|---|
private ICity |
HelpCity.city |
private ICity |
CityViolation.city |
private ICity |
CityHall.city |
private ICity |
CityHallNotice.destination |
private ICity |
BuildLandPassage.fromCity |
private ICity |
BuildLandPassage.toCity |
| Constructor and Description |
|---|
BuildLandPassage(int duration,
ICity fromCity,
ICity toCity) |
CityViolation(ICity city,
org.joda.time.DateTime date) |
CustomsViolation(ICity city,
org.joda.time.DateTime dateTime) |
HelpCity(int duration,
ICity city) |
PirateSupportViolation(ICity city,
org.joda.time.DateTime date) |
PlunderTradingOfficeViolation(ICity city,
org.joda.time.DateTime date) |
SpecialTaxViolation(ICity city,
org.joda.time.DateTime date) |
| Modifier and Type | Method and Description |
|---|---|
ICity |
IGuild.getCity()
Retrieve the city where the guild is located.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<IGuild> |
GuildList.findGuild(ICity city) |
| Modifier and Type | Field and Description |
|---|---|
private ICity |
Guild.city |
| Modifier and Type | Class and Description |
|---|---|
class |
City
Implementation of the city model.
|
| Modifier and Type | Field and Description |
|---|---|
private ICity |
ShipyardState.city |
private ICity |
CityState.city
Reference to the city model that is driven by this engine
|
private ICity |
LoanerState.city |
private ICity |
TavernState.city |
| Modifier and Type | Field and Description |
|---|---|
private ConcurrentHashMap<ICity,CityState> |
CitiesState.cities
List of all the cities coupled with their state to be handeld by this engine
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
CitiesState.findCityWithMostNeededWare()
Find a possible city that has needed wares.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
CitiesState.findCityWithSurplusWare()
Find a possible city that has needed wares.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CitiesState.addCity(ICity city,
CityState cityState)
Add a new city.
|
| Constructor and Description |
|---|
CityState(ICity city,
IShipyard shipard,
TavernState tavern) |
LoanerState(ICity city) |
ShipyardState(ICity city) |
TavernState(ICity city) |
| Modifier and Type | Field and Description |
|---|---|
private ICity |
PersonLeavesTavernEvent.city |
private ICity |
FoundingCityBecomesAccessible.city |
private ICity |
BuildingFinished.city |
| Modifier and Type | Method and Description |
|---|---|
ICity |
IShipEntersPortEvent.getCity()
City which is entered.
|
| Constructor and Description |
|---|
PersonLeavesTavernEvent(ICity city,
IPerson person) |
| Modifier and Type | Field and Description |
|---|---|
private ICity |
BalanceSheet.city |
private ICity |
Citizen.hometown |
private ICity |
Company.homeTown |
| Modifier and Type | Method and Description |
|---|---|
ICity |
Player.getHometown() |
| Modifier and Type | Method and Description |
|---|---|
List<IBuilding> |
Player.findBuildings(ICity city) |
<T extends IBuilding> |
Player.findBuildings(ICity city,
Class<T> buildingClass) |
List<INavigableVessel> |
Player.findShips(ICity city) |
Optional<ITradingOffice> |
Player.findTradingOffice(ICity city) |
private static PersonalData |
AIPlayer.getPersonalData(ICity homeTown,
org.joda.time.DateTime birthDate) |
| Constructor and Description |
|---|
AIPlayer(ICity homeTown,
org.joda.time.DateTime birthDate,
ICompany company) |
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) |
Player(ICity homeTown,
IPersonalData personalData,
ESocialRank rank,
ICompany company) |
| Modifier and Type | Method and Description |
|---|---|
ICity |
IMap.findCity(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 and Description |
|---|---|
Optional<ICity> |
IMap.findCity(javafx.geometry.Point2D location)
Find the city at the given coordinates.
|
List<ICity> |
IMap.getCities()
Retrieve an unmodifiable list of all the cities in the map
|
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 and Description |
|---|---|
void |
IMap.add(ICity city)
Add a new city.
|
| Modifier and Type | Field and Description |
|---|---|
private ICity |
LandBridge.from |
private ICity |
LandBridge.to |
private ICity |
TradeRouteStop.tradeStop |
| Modifier and Type | Field and Description |
|---|---|
private LinkedList<ICity> |
GameMap.cities |
private com.google.common.collect.Multimap<IPlayer,ICity> |
GameMap.townsInFounding |
| Modifier and Type | Method and Description |
|---|---|
ICity |
GameMap.findCity(String cityName) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ICity> |
GameMap.findCity(javafx.geometry.Point2D location) |
List<ICity> |
GameMap.getCities() |
List<ICity> |
GameMap.getCities(IPlayer player) |
| Modifier and Type | Method and Description |
|---|---|
void |
GameMap.add(ICity city) |
| Modifier and Type | Method and Description |
|---|---|
void |
GameMap.setup(Date date,
Collection<ICity> cities,
javafx.geometry.Dimension2D dim,
String mapName,
String bwImageName,
double numberOfPixelPerKilometer)
Initialize the map by means of a list of its cities.
|
| Modifier and Type | Method and Description |
|---|---|
ICity |
IBaseTraveler.getDestination() |
ICity |
ITransportTrader.getDestination()
Destination city the trader has to get to.
|
ICity |
ITraveler.getDestination()
Get the destination city for the traveler.
|
ICity |
IFugitive.getDestination()
Get the destination city for the traveler.
|
ICity |
IEscorte.getDestination()
Get the destination city for the traveler.
|
ICity |
ISmuggler.getDestination()
Destination city.
|
ICity[] |
IBasePatrol.getDestinations()
Retrieve the destinations
|
| Modifier and Type | Method and Description |
|---|---|
Optional<ch.sahits.datastructure.GenericPair<String,ICity>> |
IInformant.getPirateLocation()
Possible information about the location of a pirate.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
IInformant.getWareNeeded()
Possible information about in which city which ware is needed.
|
Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
IInformant.getWareSurplus()
Possible information about in which city which ware is available in surplus.
|
Optional<ICity> |
INonFreeSeaPirate.roamingNearCity()
Indicates if the pirate is looting near the city.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ITavernPerson.setCity(ICity city)
Set the city of the tavern in which the person is located.
|
void |
IBaseTraveler.setDestination(ICity destination) |
void |
ITransportTrader.setDestination(ICity destination) |
void |
ISmuggler.setDestination(ICity destination) |
void |
IBasePatrol.setDestinations(ICity[] cities)
Set the destination city of the patrol.
|
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 and Description |
|---|---|
private ICity |
BaseTavernPerson.city |
private ICity |
SmugglerState.destination |
private ICity |
BaseTravelerState.destination |
private ICity |
TransportTraderState.destination |
protected ICity[] |
BasePatrolState.destinations |
private ICity |
CaptainTownMapping.town |
| Modifier and Type | Field and Description |
|---|---|
private Optional<ICity> |
NonFreeSeaPirate.nearCity |
private Optional<ch.sahits.datastructure.GenericPair<String,ICity>> |
InformantState.pirateLocation |
private Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
InformantState.wareNeeded |
private Optional<ch.sahits.datastructure.GenericPair<ICity,IWare>> |
InformantState.wareSurplus |
| Modifier and Type | Method and Description |
|---|---|
private ICity |
CaptainsState.getRandomCity() |
| Modifier and Type | Method and Description |
|---|---|
Optional<ICity> |
CaptainsState.findCaptainsCurrentCity(ICaptain captain)
Find the current city of a captain.
|
Optional<ICity> |
NonFreeSeaPirate.roamingNearCity() |
| Modifier and Type | Method and Description |
|---|---|
void |
CaptainsState.addCaptain(ICity city,
org.joda.time.DateTime arrival,
ICaptain captain) |
void |
CaptainsState.assignCaptainToCity(ICaptain captain,
ICity city,
org.joda.time.DateTime arrivalDate)
Assign the captain to a new town.
|
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 |
InformantState.setNeededWare(ICity city,
IWare ware) |
void |
InformantState.setPirateLocation(ISeaPirate pirate,
ICity city) |
void |
InformantState.setWareSurplus(ICity city,
IWare ware) |
| Constructor and Description |
|---|
NonFreeSeaPirate(IPlayer hiringPlayer,
org.joda.time.DateTime hireDate,
ICity nearCity)
Create a non free pirate.
|
| Modifier and Type | Method and Description |
|---|---|
ICity |
IPersonalData.getBirthPlace()
Retrieve the birth place
|
| Modifier and Type | Field and Description |
|---|---|
private ICity |
PersonalData.birthPlace |
private ICity |
Reputation.city |
| Constructor and Description |
|---|
Reputation(ICity city,
IPlayer player) |
SpouseData(String name,
String lastName,
boolean male,
ICity birthplace,
org.joda.time.DateTime birthDate,
int popHer,
int popYour,
int conHer,
int conYour,
String portraitResourceName) |
| Modifier and Type | Method and Description |
|---|---|
ICity |
IAIConstructionSelectionStrategy.getBuildLocation(IAIPlayer player)
Select the build location of the new ship.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
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 and Description |
|---|---|
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. |
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.
|
Optional<ICaptain> |
IAICaptainHireStrategy.getCaptain(ICity city)
Retrieve the captain to be hired.
|
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 |
IAIConstructionSelectionStrategy.initShipConstruction(IAIPlayer player,
ICity buildLocation,
EShipType shipType)
Initialize the ship construction by collecting the wares.
|
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.
|
boolean |
IAICaptainHireStrategy.shouldHire(IAIPlayer player,
IShip vessel,
ICity city)
Should
player hire captain on the vessel. |
boolean |
IAIGuildJoinStrategy.shouldJoin(IAIPlayer player,
ICity city,
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.
|
| Modifier and Type | Field and Description |
|---|---|
private Map<ICity,IBlockade> |
BlockadeState.blockadedCity |
| Modifier and Type | Method and Description |
|---|---|
Set<Map.Entry<ICity,IBlockade>> |
BlockadeState.entrySet() |
| Modifier and Type | Method and Description |
|---|---|
void |
BlockadeState.addBlockade(ICity city,
IBlockade blockade)
Add a blockade for the city.
|
void |
BlockadeState.finishBlockade(ICity city)
Finish the blockade.
|
Optional<IBlockade> |
BlockadeState.getBlockade(ICity city)
Retrieve the blockade for the city.
|
| Modifier and Type | Method and Description |
|---|---|
List<IConvoy> |
ConvoyList.findConvoy(ICity city)
Find all convois in town.
|
| Modifier and Type | Method and Description |
|---|---|
ICity |
ModelConfiguration.cityBean(ch.sahits.game.openpatrician.data.map.City cityData) |
ICity |
ModelConfiguration.cityBean(FoundNewSettlement cityData) |
Copyright © 2011-2017 Sahits GmbH. All Rights Reserved.