|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface ICity
Model of a city.
| Method Summary | |
|---|---|
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. |
int |
getContribution(IPlayer player,
IWare ware)
Check out what the player contributed to the ware |
IWare[] |
getEffectiveProduction()
Retrieve the wares that are produced efficiently |
IWare[] |
getIneffectiveProduction()
Retrieve the wares that are produced inefficiently |
EKontorType |
getKontorType()
Retrieve the city type |
String |
getName()
Retrieve the city name |
int |
getPopulation()
retrieve the total population of the city |
int |
getPopulation(EPopulationClass popclass)
Retrieve the current population of the city by class |
IReputation |
getReputation(IPlayer player)
Retrieve the reputation of the player in the city |
ESocialRank |
getSocialRank()
Retrieve the social rank in this city |
String |
getUniqueID()
Retrieve the unique ID of the city. |
AmountablePrice |
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 |
setPopulation(int population,
EPopulationClass popClass)
Set the population by class |
void |
tearDown(IBuilding building)
Add a new building to the city |
| Method Detail |
|---|
String getUniqueID()
EKontorType getKontorType()
String getName()
int getPopulation(EPopulationClass popclass)
popclass -
void setPopulation(int population,
EPopulationClass popClass)
population - popClass - int getPopulation()
AmountablePrice getWare(IWare ware)
ware -
int move(IWare ware,
int amount,
IPlayer player)
ware - to be movedamount - of the ware that is movedplayer - that moved the ware
IWare[] 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 contribution
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||