|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectch.sahits.game.openpatrician.model.city.BuildingProduction
public class BuildingProduction
This class helps computing the production amount for the different buildings
| Constructor Summary | |
|---|---|
BuildingProduction()
|
|
| Method Summary | |
|---|---|
int |
getConsumption(IWare ware,
ICity city,
IPlayer player)
Retrieve the amount of ware that all the workshops of a player consume within a week |
int |
getProduction(IWare ware,
ICity city,
IPlayer player)
Compute the total amount of ware the player produces in the city within a week |
int |
getTotalConsumtion(IWare ware,
ICity city)
Retrieve the amount the workshops consume to produce the ware within a week |
int |
getTotalProduction(IWare ware,
ICity city)
Compute the total amount of ware that is produced in the city within a week |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BuildingProduction()
| Method Detail |
|---|
public int getTotalProduction(IWare ware,
ICity city)
ware - that is producedcity - in witch the ware is produced
public int getProduction(IWare ware,
ICity city,
IPlayer player)
ware - that is producedcity - in witch the ware is producedplayer - that produces the ware
public int getTotalConsumtion(IWare ware,
ICity city)
ware - that is consumedcity - in witch the ware is consumed
public int getConsumption(IWare ware,
ICity city,
IPlayer player)
ware - that is consumedcity - in witch the ware is consumedplayer - who owns the workshops
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||