public interface CommodityOnMarketAPI
Modifier and Type | Method and Description |
---|---|
void |
addToStockpile(float quantity) |
void |
addTradeMod(java.lang.String source,
float quantity,
float days)
Can result in both positive and negative econ-unit changes.
|
void |
addTradeModMinus(java.lang.String source,
float quantity,
float days)
Only negative econ-unit changes (but value may be positive; just gets clamped to 0).
|
void |
addTradeModPlus(java.lang.String source,
float quantity,
float days)
Only positive econ-unit changes (but value may be negative; just gets clamped to 0).
|
int |
getAvailable() |
MutableStatWithTempMods |
getAvailableStat() |
float |
getCombinedTradeModQuantity()
tradeMod + modPlus if positive + modMinus if negative.
|
CommoditySpecAPI |
getCommodity() |
CommodityMarketDataAPI |
getCommodityMarketData() |
int |
getDeficitQuantity()
Quantity that can be sold at a higher price.
|
MarketDemandAPI |
getDemand() |
java.lang.String |
getDemandClass() |
int |
getDemandValue() |
int |
getExcessQuantity()
Quantity that can be bought at a lower price.
|
int |
getExportIncome() |
MutableStat |
getGreed() |
float |
getGreedValue() |
java.lang.String |
getId() |
MarketAPI |
getMarket() |
int |
getMaxDemand() |
int |
getMaxSupply() |
float |
getModValueForQuantity(float quantity) |
StatBonus |
getPlayerDemandPriceMod() |
StatBonus |
getPlayerSupplyPriceMod() |
int |
getPlayerTradeNetQuantity()
Returns net bought/sold, minus what was used to change economy units available on market.
|
float |
getQuantityForModValue(float modValue) |
float |
getStockpile() |
MutableStatWithTempMods |
getTradeMod()
Actual quantity in "inventory" units.
|
MutableStatWithTempMods |
getTradeModMinus() |
MutableStatWithTempMods |
getTradeModPlus() |
float |
getUtilityOnMarket() |
boolean |
isDemandLegal() |
boolean |
isFuel() |
boolean |
isIllegal() |
boolean |
isIllegalAssumePrimary() |
boolean |
isMeta() |
boolean |
isNonEcon() |
boolean |
isPersonnel() |
boolean |
isSupplyLegal() |
void |
reapplyEventMod() |
void |
removeFromStockpile(float quantity) |
void |
setDemandLegal(boolean isDemandLegal) |
void |
setMaxDemand(int maxDemand) |
void |
setMaxSupply(int maxSupply) |
void |
setStockpile(float stockpile) |
void |
setSupplyLegal(boolean isSupplyLegal) |
void |
updateMaxSupplyAndDemand() |
java.lang.String getId()
MutableStat getGreed()
float getGreedValue()
CommoditySpecAPI getCommodity()
float getStockpile()
void setStockpile(float stockpile)
void addToStockpile(float quantity)
void removeFromStockpile(float quantity)
MarketAPI getMarket()
java.lang.String getDemandClass()
MarketDemandAPI getDemand()
float getUtilityOnMarket()
boolean isPersonnel()
boolean isFuel()
boolean isNonEcon()
int getMaxSupply()
void setMaxSupply(int maxSupply)
int getMaxDemand()
void setMaxDemand(int maxDemand)
void updateMaxSupplyAndDemand()
int getAvailable()
MutableStatWithTempMods getAvailableStat()
MutableStatWithTempMods getTradeMod()
MutableStatWithTempMods getTradeModPlus()
MutableStatWithTempMods getTradeModMinus()
void reapplyEventMod()
float getModValueForQuantity(float quantity)
boolean isIllegal()
boolean isIllegalAssumePrimary()
float getQuantityForModValue(float modValue)
int getExportIncome()
boolean isSupplyLegal()
void setSupplyLegal(boolean isSupplyLegal)
boolean isDemandLegal()
void setDemandLegal(boolean isDemandLegal)
void addTradeMod(java.lang.String source, float quantity, float days)
source
- quantity
- days
- void addTradeModPlus(java.lang.String source, float quantity, float days)
source
- quantity
- days
- void addTradeModMinus(java.lang.String source, float quantity, float days)
source
- quantity
- days
- float getCombinedTradeModQuantity()
boolean isMeta()
int getDemandValue()
CommodityMarketDataAPI getCommodityMarketData()
int getDeficitQuantity()
int getExcessQuantity()
int getPlayerTradeNetQuantity()
StatBonus getPlayerSupplyPriceMod()
StatBonus getPlayerDemandPriceMod()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.