Starsector API
Loading...
Searching...
No Matches
CommodityOnMarketAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.campaign.econ;
2
3import com.fs.starfarer.api.combat.MutableStat;
4import com.fs.starfarer.api.combat.MutableStatWithTempMods;
5import com.fs.starfarer.api.combat.StatBonus;
6
14public interface CommodityOnMarketAPI {
15
16 String getId();
17
18 MutableStat getGreed();
19
21
23
24 float getStockpile();
25 void setStockpile(float stockpile);
26
27 void addToStockpile(float quantity);
28 void removeFromStockpile(float quantity);
29
31
34
36
37 boolean isPersonnel();
38 boolean isFuel();
39
40 //StatBonus getPlayerPriceMod();
41
42 boolean isNonEcon();
43
45 void setMaxSupply(int maxSupply);
47 void setMaxDemand(int maxDemand);
48
50
52
53
54 MutableStatWithTempMods getAvailableStat();
55
61 MutableStatWithTempMods getTradeMod();
62 MutableStatWithTempMods getTradeModPlus();
63 MutableStatWithTempMods getTradeModMinus();
64
66 float getModValueForQuantity(float quantity);
67
68 boolean isIllegal();
69
71
72 float getQuantityForModValue(float modValue);
73
74
75// LinkedHashMap<String, MutableStatWithTempMods> getPiracy();
76// void addPiracy(String sourceMarket, int penalty, float days);
77// void clearPiracy();
78// void clearPiracy(String sourceMarket);
79// int getPiracy(String sourceMarket);
80
82
83 boolean isSupplyLegal();
85 boolean isDemandLegal();
87
88
89 //void addTradeMod(String source, float quantity, float days, String desc);
96 void addTradeMod(String source, float quantity, float days);
103 void addTradeModPlus(String source, float quantity, float days);
104
111 void addTradeModMinus(String source, float quantity, float days);
112
118
119 boolean isMeta();
120
122
124
125
131
137
148
149 //StatBonus getPlayerPriceMod();
150
153
154}
155
156
157
158
void addTradeMod(String source, float quantity, float days)
void addTradeModMinus(String source, float quantity, float days)
void addTradeModPlus(String source, float quantity, float days)