* @param ware Reference to the ware
* @return amount all the citizens consume of that ware
*/
private int computeCitizenConsumtion(DisplayImageDIResolver resolver,
ICity city, EWare ware) {
PopulationConsume consumer = resolver.getPolulanceConsumtion();
double amount = consumer.getNeed(ware, EPopulationClass.POOR, city.getPopulation(EPopulationClass.POOR));
amount += consumer.getNeed(ware, EPopulationClass.MEDIUM, city.getPopulation(EPopulationClass.MEDIUM));
amount += consumer.getNeed(ware, EPopulationClass.RICH, city.getPopulation(EPopulationClass.RICH));
int value = (int) Math.rint(amount);
return value;
}