ch.sahits.game.openpatrician.model.city.impl
Class DailyContribution
java.lang.Object
ch.sahits.game.openpatrician.model.city.impl.DailyContribution
public class DailyContribution
- extends Object
|
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 |
contributions
private final Map<IWare,Integer> contributions
DailyContribution
public DailyContribution()
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.