Interface IBuildingProduction
-
public interface IBuildingProductionDefineing the needed interface for the production in buildings.- Author:
- Andi Hotz, (c) Sahits GmbH, 2016 Created on May 15, 2016
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetProduction(IWare ware, ICity city, IPlayer player)Compute the total amount of ware the player produces in the city within a weekintgetTotalConsumtion(IWare ware, ICity city)Retrieve the amount the workshops consume to produce the ware within a weekintgetTotalProduction(IWare ware, ICity city)Compute the total amount of ware that is produced in the city within a week
-
-
-
Method Detail
-
getTotalProduction
int getTotalProduction(IWare ware, ICity city)
Compute the total amount of ware that is produced in the city within a week- Parameters:
ware- that is producedcity- in witch the ware is produced- Returns:
- total amount of all the production by all the players in the city
-
getTotalConsumtion
int getTotalConsumtion(IWare ware, ICity city)
Retrieve the amount the workshops consume to produce the ware within a week- Parameters:
ware- that is consumedcity- in witch the ware is consumed- Returns:
- amount of the ware that is consumed
-
getProduction
int getProduction(IWare ware, ICity city, IPlayer player)
Compute the total amount of ware the player produces in the city within a week- Parameters:
ware- that is producedcity- in witch the ware is producedplayer- that produces the ware- Returns:
- total amount of the ware produced by that player in the city
-
-