ch.sahits.game.openpatrician.model.player.ICityProductionConsumptionKnowledgepublic class CityProductionConsumptionKnowledge
extends java.lang.Object
implements ch.sahits.game.openpatrician.model.player.ICityProductionConsumptionKnowledge
| Constructor | Description |
|---|---|
CityProductionConsumptionKnowledge() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getConsumptionAmount(ch.sahits.game.openpatrician.model.product.IWare ware) |
|
int |
getProductionAmount(ch.sahits.game.openpatrician.model.product.IWare ware) |
|
java.util.List<ch.sahits.game.openpatrician.model.product.IWare> |
getSortedProductionWares() |
|
int |
getStoredAmount(ch.sahits.game.openpatrician.model.product.IWare ware) |
|
void |
updateConsumption(ch.sahits.game.openpatrician.model.product.IWare ware,
int amount) |
Update the knowledge about the weekly consumed amounts.
|
void |
updateProduction(ch.sahits.game.openpatrician.model.product.IWare ware,
int amount) |
Update the knowlege about the weekly produced amounts.
|
void |
updateStored(ch.sahits.game.openpatrician.model.product.IWare ware,
int amount) |
Update the knowledge about the stored amounts.
|
public void updateProduction(ch.sahits.game.openpatrician.model.product.IWare ware,
int amount)
ware - that is to be updated in the productionamount - amount of the ware that is to be updated.public java.util.List<ch.sahits.game.openpatrician.model.product.IWare> getSortedProductionWares()
public int getProductionAmount(ch.sahits.game.openpatrician.model.product.IWare ware)
getProductionAmount in interface ch.sahits.game.openpatrician.model.player.ICityProductionConsumptionKnowledgepublic void updateConsumption(ch.sahits.game.openpatrician.model.product.IWare ware,
int amount)
ware - ware that is to be consumedamount - amount of the ware that is to be consumedpublic int getConsumptionAmount(ch.sahits.game.openpatrician.model.product.IWare ware)
getConsumptionAmount in interface ch.sahits.game.openpatrician.model.player.ICityProductionConsumptionKnowledgepublic void updateStored(ch.sahits.game.openpatrician.model.product.IWare ware,
int amount)
ware - that is to be storedamount - amount of the ware that is to be storedpublic int getStoredAmount(ch.sahits.game.openpatrician.model.product.IWare ware)
getStoredAmount in interface ch.sahits.game.openpatrician.model.player.ICityProductionConsumptionKnowledgeCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.