ch.sahits.game.openpatrician.model.city.impl
Class DailyContribution

java.lang.Object
  extended by ch.sahits.game.openpatrician.model.city.impl.DailyContribution

public class DailyContribution
extends Object


Field Summary
private  Map<IWare,Integer> contributions
           
 
Constructor Summary
DailyContribution()
           
 
Method Summary
 void contribute(IWare ware, int amount)
          Update the contribution for the day the amount may be positive or negative
 int getContribution(IWare ware)
          Retrieve the contributions for the day
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contributions

private final Map<IWare,Integer> contributions
Constructor Detail

DailyContribution

public DailyContribution()
Method Detail

getContribution

public int getContribution(IWare ware)
Retrieve the contributions for the day

Parameters:
ware -
Returns:

contribute

public void contribute(IWare ware,
                       int amount)
Update the contribution for the day the amount may be positive or negative

Parameters:
ware -
amount -


Copyright © 2011-2012 Sahits GmbH. All Rights Reserved.