Class PlayerTradeDataForSubmarket
java.lang.Object
com.fs.starfarer.api.impl.campaign.shared.PlayerTradeDataForSubmarket
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
addToTrackedPlayerSold
(CargoStackAPI stack, float totalPriceOverride) void
void
addTransaction
(PlayerMarketTransaction transaction) void
advance
(float days) static float
computeImpactOfHavingAlreadyBought
(MarketAPI market, CargoAPI.CargoItemType type, Object data, float baseValue, float qty) static float
computeImpactOfHavingAlreadySold
(MarketAPI market, CargoAPI.CargoItemType type, Object data, float baseValue, float qty) static float
computePriceOfHavingAlreadyBought
(MarketAPI market, CargoAPI.CargoItemType type, Object data, float baseValue, float qty) static float
computePriceOfHavingAlreadySold
(MarketAPI market, CargoAPI.CargoItemType type, Object data, float baseValue, float qty) float
float
protected BaseSubmarketPlugin.ShipSalesData
getBoughtShipData
(String vid) float
protected BaseSubmarketPlugin.ShipSalesData
getSoldShipData
(String vid) float
static String
getTXId
(CargoStackAPI stack) static String
protected Object
void
setAccumulatedPlayerTradeValueForNegative
(float accumulatedPlayerTradeValueForNegative) void
setAccumulatedPlayerTradeValueForPositive
(float accumulatedPlayerTradeValue) void
setSubmarket
(SubmarketAPI submarket) void
setTotalPlayerTradeValue
(float totalPlayerTradeValue)
-
Constructor Details
-
PlayerTradeDataForSubmarket
-
-
Method Details
-
readResolve
-
getTXId
-
getTXId
-
getStat
-
advance
public void advance(float days) -
addTransaction
-
addToTrackedPlayerBought
-
addToTrackedPlayerSold
-
addToTrackedPlayerBought
-
addToTrackedPlayerSold
-
addToTrackedPlayerSold
-
computeImpactOfHavingAlreadySold
public static float computeImpactOfHavingAlreadySold(MarketAPI market, CargoAPI.CargoItemType type, Object data, float baseValue, float qty) -
computePriceOfHavingAlreadySold
public static float computePriceOfHavingAlreadySold(MarketAPI market, CargoAPI.CargoItemType type, Object data, float baseValue, float qty) -
computeImpactOfHavingAlreadyBought
public static float computeImpactOfHavingAlreadyBought(MarketAPI market, CargoAPI.CargoItemType type, Object data, float baseValue, float qty) -
computePriceOfHavingAlreadyBought
public static float computePriceOfHavingAlreadyBought(MarketAPI market, CargoAPI.CargoItemType type, Object data, float baseValue, float qty) -
getTotalPlayerTradeValue
public float getTotalPlayerTradeValue() -
setTotalPlayerTradeValue
public void setTotalPlayerTradeValue(float totalPlayerTradeValue) -
getRecentPlayerBought
-
getRecentPlayerSold
-
getAccumulatedPlayerTradeValueForPositive
public float getAccumulatedPlayerTradeValueForPositive() -
setAccumulatedPlayerTradeValueForPositive
public void setAccumulatedPlayerTradeValueForPositive(float accumulatedPlayerTradeValue) -
getAccumulatedPlayerTradeValueForNegative
public float getAccumulatedPlayerTradeValueForNegative() -
setAccumulatedPlayerTradeValueForNegative
public void setAccumulatedPlayerTradeValueForNegative(float accumulatedPlayerTradeValueForNegative) -
getTracker
-
getRecentlyPlayerBoughtShips
-
getRecentlyPlayerSoldShips
-
getMarket
-
getSubmarket
-
getSoldShipData
-
getBoughtShipData
-
getRecentBaseTradeValueImpact
public float getRecentBaseTradeValueImpact() -
setSubmarket
-