ch.sahits.game.openpatrician.model.city
Class CityProduction

java.lang.Object
  extended by 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

Field Summary
private  Map<IWare,Integer> productionRates
           
 
Constructor Summary
CityProduction()
           
 
Method Summary
 int getEfficientProduction(IWare ware)
          Compute the amount of ware that is produced efficiently within a week
 int getInefficientProduction(IWare ware)
          Compute the amount of ware that is produced inefficiently within a week
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

productionRates

private Map<IWare,Integer> productionRates
Constructor Detail

CityProduction

public CityProduction()
Method Detail

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.