ch.sahits.game.openpatrician.model.city
Class CityProduction
java.lang.Object
ch.sahits.game.openpatrician.model.city.CityProduction
public final class CityProduction
- extends Object
This class provides numbers for production rates. The rates are what is produced in a week and the
size is specific to the ware. This class is intended before release 2.0
with a real implementation of the workshops in the city instead of this mock up.
This implementation does not consume any wares to produce the product.
- Author:
- Andi Hotz, (c) Sahits GmbH, 2011
Created on Nov 28, 2011
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
productionRates
private Map<IWare,Integer> productionRates
CityProduction
public CityProduction()
getEfficientProduction
public int getEfficientProduction(IWare ware)
- Compute the amount of
ware that is produced efficiently within a week
- Parameters:
ware -
- Returns:
getInefficientProduction
public int getInefficientProduction(IWare ware)
- Compute the amount of
ware that is produced inefficiently within a week
- Parameters:
ware -
- Returns:
Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.