Interface EconomyAPI


public interface EconomyAPI
  • Method Details

    • addMarket

      void addMarket(MarketAPI market, boolean withJunkAndChatter)
    • removeMarket

      void removeMarket(MarketAPI market)
    • getMarket

      MarketAPI getMarket(String id)
    • advance

      void advance(float amount)
    • getMarketsCopy

      List<MarketAPI> getMarketsCopy()
    • isSimMode

      boolean isSimMode()
    • getAllCommodityIds

      List<String> getAllCommodityIds()
    • getCommoditySpec

      CommoditySpecAPI getCommoditySpec(String commodityId)
    • 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

      void addUpdateListener(EconomyAPI.EconomyUpdateListener listener)
    • removeUpdateListener

      void removeUpdateListener(EconomyAPI.EconomyUpdateListener listener)
    • getUpdateListeners

      List<EconomyAPI.EconomyUpdateListener> getUpdateListeners()
    • forceStockpileUpdate

      void forceStockpileUpdate(MarketAPI market)
    • getMarketsWithSameGroup

      List<MarketAPI> getMarketsWithSameGroup(MarketAPI market)
    • getMarketsWithSameGroup

      List<MarketAPI> getMarketsWithSameGroup(MarketAPI market, List<MarketAPI> markets)
    • getMarkets

      List<MarketAPI> getMarkets(LocationAPI loc)
    • getLocationsWithMarkets

      List<LocationAPI> getLocationsWithMarkets()
    • getStarSystemsWithMarkets

      List<StarSystemAPI> getStarSystemsWithMarkets()
    • getMarketsInGroup

      List<MarketAPI> getMarketsInGroup(String group)
    • 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.