public interface EconomyAPI
Modifier and Type | Interface and Description |
---|---|
static interface |
EconomyAPI.EconomyUpdateListener
Called whenever economy data is recalculated, i.e.
|
Modifier and Type | Method and Description |
---|---|
void |
addMarket(MarketAPI market,
boolean withJunkAndChatter) |
void |
addUpdateListener(EconomyAPI.EconomyUpdateListener listener) |
void |
advance(float amount) |
void |
doubleStep()
Equivalent to calling nextStep() two times.
|
void |
forceStockpileUpdate(MarketAPI market) |
java.util.List<java.lang.String> |
getAllCommodityIds() |
CommoditySpecAPI |
getCommoditySpec(java.lang.String commodityId) |
java.util.List<LocationAPI> |
getLocationsWithMarkets() |
MarketAPI |
getMarket(java.lang.String id) |
java.util.List<MarketAPI> |
getMarkets(LocationAPI loc) |
java.util.List<MarketAPI> |
getMarketsCopy() |
java.util.List<MarketAPI> |
getMarketsInGroup(java.lang.String group) |
java.util.List<MarketAPI> |
getMarketsWithSameGroup(MarketAPI market) |
java.util.List<MarketAPI> |
getMarketsWithSameGroup(MarketAPI market,
java.util.List<MarketAPI> markets) |
int |
getNumMarkets() |
java.util.List<StarSystemAPI> |
getStarSystemsWithMarkets() |
java.util.List<EconomyAPI.EconomyUpdateListener> |
getUpdateListeners() |
boolean |
isSimMode() |
void |
nextStep()
Should only be called from UI interactions, not from scripts that run in the background.
|
void |
removeMarket(MarketAPI market) |
void |
removeUpdateListener(EconomyAPI.EconomyUpdateListener listener) |
void |
tripleStep()
Equivalent to calling nextStep() three times.
|
void addMarket(MarketAPI market, boolean withJunkAndChatter)
void removeMarket(MarketAPI market)
MarketAPI getMarket(java.lang.String id)
void advance(float amount)
java.util.List<MarketAPI> getMarketsCopy()
boolean isSimMode()
java.util.List<java.lang.String> getAllCommodityIds()
CommoditySpecAPI getCommoditySpec(java.lang.String commodityId)
int getNumMarkets()
void nextStep()
void tripleStep()
void addUpdateListener(EconomyAPI.EconomyUpdateListener listener)
void removeUpdateListener(EconomyAPI.EconomyUpdateListener listener)
java.util.List<EconomyAPI.EconomyUpdateListener> getUpdateListeners()
void forceStockpileUpdate(MarketAPI market)
java.util.List<MarketAPI> getMarketsWithSameGroup(MarketAPI market, java.util.List<MarketAPI> markets)
java.util.List<MarketAPI> getMarkets(LocationAPI loc)
java.util.List<LocationAPI> getLocationsWithMarkets()
java.util.List<StarSystemAPI> getStarSystemsWithMarkets()
java.util.List<MarketAPI> getMarketsInGroup(java.lang.String group)
void doubleStep()
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.