Starsector API
Loading...
Searching...
No Matches
EconomyAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.campaign.econ;
2
3import java.util.List;
4
5import com.fs.starfarer.api.campaign.LocationAPI;
6import com.fs.starfarer.api.campaign.StarSystemAPI;
7
8
9public interface EconomyAPI {
10
19 public static interface EconomyUpdateListener {
20 void commodityUpdated(String commodityId);
21 void economyUpdated();
22 boolean isEconomyListenerExpired();
23 }
24
25 void addMarket(MarketAPI market, boolean withJunkAndChatter);
26 void removeMarket(MarketAPI market);
27
28 MarketAPI getMarket(String id);
29
30 void advance(float amount);
31
32 List<MarketAPI> getMarketsCopy();
33
34 boolean isSimMode();
35 List<String> getAllCommodityIds();
37// void clearReachMap();
38// void restoreReachMap();
40
45 void nextStep();
46
47
55 void tripleStep();
56
57 void addUpdateListener(EconomyUpdateListener listener);
58 void removeUpdateListener(EconomyUpdateListener listener);
59 List<EconomyUpdateListener> getUpdateListeners();
60
61
63 List<MarketAPI> getMarketsWithSameGroup(MarketAPI market);
64 List<MarketAPI> getMarketsWithSameGroup(MarketAPI market, List<MarketAPI> markets);
65
66 //WaystationBonus getWaystationBonus(String marketId, String otherId);
67
68 List<MarketAPI> getMarkets(LocationAPI loc);
69 List<LocationAPI> getLocationsWithMarkets();
70 List<StarSystemAPI> getStarSystemsWithMarkets();
71 List<MarketAPI> getMarketsInGroup(String group);
72
79 void doubleStep();
80}
81
82
83
CommoditySpecAPI getCommoditySpec(String commodityId)
void addUpdateListener(EconomyUpdateListener listener)
List< StarSystemAPI > getStarSystemsWithMarkets()
List< MarketAPI > getMarketsWithSameGroup(MarketAPI market, List< MarketAPI > markets)
List< EconomyUpdateListener > getUpdateListeners()
List< MarketAPI > getMarketsWithSameGroup(MarketAPI market)
void addMarket(MarketAPI market, boolean withJunkAndChatter)
List< MarketAPI > getMarketsInGroup(String group)
List< MarketAPI > getMarkets(LocationAPI loc)
void removeUpdateListener(EconomyUpdateListener listener)