Interface EconomyAPI
public interface EconomyAPI
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Called whenever economy data is recalculated, i.e. -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
advance
(float amount) void
Equivalent to calling nextStep() two times.void
forceStockpileUpdate
(MarketAPI market) getCommoditySpec
(String commodityId) getMarkets
(LocationAPI loc) getMarketsInGroup
(String group) getMarketsWithSameGroup
(MarketAPI market) getMarketsWithSameGroup
(MarketAPI market, List<MarketAPI> markets) int
boolean
void
nextStep()
Should only be called from UI interactions, not from scripts that run in the background.void
removeMarket
(MarketAPI market) void
void
Equivalent to calling nextStep() three times.
-
Method Details
-
addMarket
-
removeMarket
-
getMarket
-
advance
void advance(float amount) -
getMarketsCopy
-
isSimMode
boolean isSimMode() -
getAllCommodityIds
-
getCommoditySpec
-
getNumMarkets
int getNumMarkets() -
nextStep
void nextStep()Should only be called from UI interactions, not from scripts that run in the background. Calling this method is likely to take longer than the time to render a single frame. -
tripleStep
void tripleStep()Equivalent to calling nextStep() three times. Generally enough or almost enough to fully stabilize the economy. Should only be called from UI interactions, not from scripts that run in the background. Calling this method is likely to take longer than the time to render a single frame. -
addUpdateListener
-
removeUpdateListener
-
getUpdateListeners
List<EconomyAPI.EconomyUpdateListener> getUpdateListeners() -
forceStockpileUpdate
-
getMarketsWithSameGroup
-
getMarketsWithSameGroup
-
getMarkets
-
getLocationsWithMarkets
List<LocationAPI> getLocationsWithMarkets() -
getStarSystemsWithMarkets
List<StarSystemAPI> getStarSystemsWithMarkets() -
getMarketsInGroup
-
doubleStep
void doubleStep()Equivalent to calling nextStep() two times. Should only be called from UI interactions, not from scripts that run in the background. Calling this method is likely to take longer than the time to render a single frame.
-