Package com.fs.starfarer.api.campaign
Class PlayerMarketTransaction
java.lang.Object
com.fs.starfarer.api.campaign.PlayerMarketTransaction
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
static class
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerMarketTransaction
(MarketAPI market, SubmarketAPI submarket, CampaignUIAPI.CoreUITradeMode tradeMode) -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
Positive if the player received money, negative if they paid money.Only set for commodities (and possibly weapons) in non-free transactions.float
getQuantityBought
(String commodityId) float
getQuantitySold
(String commodityId) getSold()
void
void
setCreditValue
(float creditValue) void
-
Constructor Details
-
PlayerMarketTransaction
public PlayerMarketTransaction(MarketAPI market, SubmarketAPI submarket, CampaignUIAPI.CoreUITradeMode tradeMode)
-
-
Method Details
-
getTradeMode
-
getLineItems
Only set for commodities (and possibly weapons) in non-free transactions.- Returns:
-
getBaseTradeValueImpact
public float getBaseTradeValueImpact() -
getCreditValue
public float getCreditValue()Positive if the player received money, negative if they paid money. Only the net, so it's possible to have a very small value for a very large transaction.- Returns:
-
setCreditValue
public void setCreditValue(float creditValue) -
getBought
-
setBought
-
getSold
-
setSold
-
getMarket
-
getSubmarket
-
getQuantityBought
-
getQuantitySold
-
getShipsBought
-
getShipsSold
-