@Service public class BuildingProduction extends Object
| Constructor and Description |
|---|
BuildingProduction() |
| Modifier and Type | Method and Description |
|---|---|
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
|
public int getTotalProduction(IWare ware, ICity city)
ware - that is producedcity - in witch the ware is producedpublic int getProduction(IWare ware, ICity city, IPlayer player)
ware - that is producedcity - in witch the ware is producedplayer - that produces the warepublic int getTotalConsumtion(IWare ware, ICity city)
ware - that is consumedcity - in witch the ware is consumedpublic int getConsumption(IWare ware, ICity city, IPlayer player)
ware - that is consumedcity - in witch the ware is consumedplayer - who owns the workshopsCopyright © 2011-2015 Sahits GmbH. All Rights Reserved.