BasePriceCalulation, BezierPriceCalculationpublic interface IPriceCalculationV2
| Modifier and Type | Method | Description |
|---|---|---|
int |
computePrice(ITradable tradable,
boolean buy,
int available,
int productionRate,
IPopulationStructure pop,
ECityState state) |
Compute the price for one item of the ware.
|
int computePrice(ITradable tradable, boolean buy, int available, int productionRate, IPopulationStructure pop, ECityState state)
tradable - defining all the parameters specific for the ware that is traded that is required for the calculationbuy - flag indicating if the calculation should happen for buying or selling.available - amount of wares that are available in the marketproductionRate - amount the city can produce within a weekpop - population structure that may have an influence on the calculated pricestate - state of the cityCopyright © 2011-2018 Sahits GmbH. All Rights Reserved.