| Modifier and Type | Method and Description |
|---|---|
void |
build(IBuilding building)
Remove a building from the list of buildings in the city
|
List<IBuilding> |
getBuildings()
Retrieve a list of all buildings 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
|
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.
|
ESocialRank |
getSocialRank()
Retrieve the social rank 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,
IPlayer player)
Add or remove ware from the city.
|
void |
moveIn(IPlayer player)
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, IPlayer 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 - ESocialRank getSocialRank()
void moveIn(IPlayer player)
player - 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()
Copyright © 2011-2015 Sahits GmbH. All Rights Reserved.