IAmountable, ITradableEWarepublic interface IWare extends IAmountable, ITradable
MAX: the maximum price for the item if it is not available in the market.
Here the function has a glitch for the buy price: If no item is available
it cannot be sold and the price is therefore 0 (infinity would be logical correct
but is not very understandable in the game context).MIN: the minimal price of the item if more than SATURATION items
are available in the market. As more items are available in the market the price approaches
this value asymptoticly.SATURATION: amount of items when the the need is fullfilled. If there are more items
available in the market than needed all have the MIN price. This is a further
simplification because the price normally drops further if there are much more items available.
The curve would bee leveling out at SATURATION and then dropping further.ABS_MIN: the absolut minimum is the minimal sell price at SATURATION.(MAX-MIN)*(MIN+1) --------------------- + ABS_MIN e^(x*15/(SATURATION*2))+MIN
| Modifier and Type | Method | Description |
|---|---|---|
int |
getAiMaxBuyAbsolute() |
Retrieve the maximum absolute amount of the ware that should be loaded on a ship.
|
double |
getAiMaxBuyPercentage() |
Retrieve the amount in percentage the AI should buy of a certain ware when
compared to the ship size.
|
int |
getMaxBuyPriceModerate() |
Retrieve the moderate max buy price of the ware.
|
int |
getMaxBuyPriceOffensive() |
Retrieve the offensive max buy price of the ware.
|
int |
getMaxBuyPriceRabiat() |
Retrieve the rabiat max buy price for the ware.
|
int |
getMinSellPriceModerate() |
Retrieve the moderate min sell price of the ware.
|
int |
getMinSellPriceOffensive() |
Retrieve the offensive min sell price of the ware.
|
int |
getMinSellPriceRabiat() |
Retrieve the rabiat max min sell for the ware.
|
short |
getSizeAsBarrels() |
Retrieve the size of the ware converted into the smallest size unit (barrels)
|
boolean |
isBarrelSizedWare() |
Check if the ware size is barrel or not.
|
getBuyCurve, getMarketSaturationForBuying, getMarketSaturationForSelling, getMaxValueBuy, getMaxValueSell, getMinValueBuy, getMinValueSell, getSellCurve, nameshort getSizeAsBarrels()
boolean isBarrelSizedWare()
int getMaxBuyPriceModerate()
int getMaxBuyPriceOffensive()
int getMaxBuyPriceRabiat()
int getMinSellPriceModerate()
int getMinSellPriceOffensive()
int getMinSellPriceRabiat()
double getAiMaxBuyPercentage()
int getAiMaxBuyAbsolute()
Copyright © 2011-2018 Sahits GmbH. All Rights Reserved.