public interface ICity
| Modifier and Type | Method and Description |
|---|---|
void |
build(IBuilding building)
Remove a building from the list of buildings in the city
|
<T extends IBuilding> |
findBuilding(Class<T> buildingClass,
Optional<IPlayer> owner)
Find all matching buildings in a city.
|
List<IBuilding> |
getBuildings()
Retrieve a list of all buildings in the city.
|
List<ICitizen> |
getCitizen()
Retrieve the list of citizen in the city.
|
CityState |
getCityState()
Retrieve the city state.
|
int |
getContribution(IPlayer player,
IWare ware)
Check out what the player contributed to the ware
|
javafx.geometry.Point2D |
getCoordinates()
Retrieve the coordinates of the city
|
IWare[] |
getEffectiveProduction()
Retrieve the wares that are produced efficiently
|
IWare[] |
getIneffectiveProduction()
Retrieve the wares that are produced inefficiently
|
EKontorType |
getKontorType()
Retrieve the city type
|
Map<IWare,org.joda.time.DateTime> |
getMissingWares()
Retrieve the missing wares along with their times
|
String |
getName()
Retrieve the city name
|
String |
getNameTemplate()
Retrieve the non locale sepecific name template.
|
int |
getPopulation(EPopulationClass popclass)
Retrieve the current population of the city by class
|
javafx.beans.binding.IntegerBinding |
getPopulationBinding()
Retrieve the binding of the city's total population.
|
javafx.beans.property.IntegerProperty |
getPopulationProperty(EPopulationClass popclass)
Retrieve the population count for a class
|
IReputation |
getReputation(IPlayer player)
Retrieve the reputation of the player in the city
|
List<IPlayer> |
getResidentPlayers()
Retrieve all the players that have a office in this city.
|
String |
getUniqueID()
Retrieve the unique ID of the city.
|
AmountablePrice<IWare> |
getWare(IWare ware)
Retrieve the amount of ware in the city
|
int |
move(IWare ware,
int amount,
ICitizen player)
Add or remove ware from the city.
|
void |
moveIn(IPlayer player,
IReputation reputaion,
Contributions contributions)
Add a player to the city
|
void |
setCityState(CityState state) |
void |
setPopulation(int population,
EPopulationClass popClass)
Set the population by class
|
void |
tearDown(IBuilding building)
Add a new building to the city
|
String getUniqueID()
EKontorType getKontorType()
String getName()
int getPopulation(EPopulationClass popclass)
popclass - void setPopulation(int population,
EPopulationClass popClass)
population - popClass - int move(IWare ware, int amount, ICitizen player)
ware - to be movedamount - of the ware that is movedplayer - that moved the wareIWare[] getIneffectiveProduction()
IWare[] getEffectiveProduction()
List<IBuilding> getBuildings()
void tearDown(IBuilding building)
building - void build(IBuilding building)
building - IReputation getReputation(IPlayer player)
player - void moveIn(IPlayer player, IReputation reputaion, Contributions contributions)
player - that is added to the cityreputaion - of that player in the citycontributions - contibutions of that player in the city.int getContribution(IPlayer player, IWare ware)
player - whose contribution is to be checkedware - that is checked for contributionMap<IWare,org.joda.time.DateTime> getMissingWares()
javafx.geometry.Point2D getCoordinates()
List<IPlayer> getResidentPlayers()
CityState getCityState()
void setCityState(CityState state)
AmountablePrice<IWare> getWare(IWare ware)
ware - javafx.beans.property.IntegerProperty getPopulationProperty(EPopulationClass popclass)
popclass - population classjavafx.beans.binding.IntegerBinding getPopulationBinding()
List<ICitizen> getCitizen()
<T extends IBuilding> List<T> findBuilding(Class<T> buildingClass, Optional<IPlayer> owner)
buildingClass - class of the buildingowner - search can be restricted to a player.String getNameTemplate()
Copyright © 2011-2016 Sahits GmbH. All Rights Reserved.