Package com.fs.starfarer.api.campaign
Class PlayerMarketTransaction.TransactionLineItem
java.lang.Object
com.fs.starfarer.api.campaign.PlayerMarketTransaction.TransactionLineItem
- Enclosing class:
- PlayerMarketTransaction
-
Constructor Summary
ConstructorsConstructorDescriptionTransactionLineItem
(String id, PlayerMarketTransaction.LineItemType itemType, CargoAPI.CargoItemType cargoType, SubmarketAPI submarket, float quantity, float price, float tariff, long timestamp) -
Method Summary
Modifier and TypeMethodDescriptionfloat
Only set for an "UPDATE", which assumes that the price/tariff pair is for the supply prices.float
getId()
float
getPrice()
float
float
long
void
setCargoType
(CargoAPI.CargoItemType cargoType) void
setDemandPrice
(float price2) void
setDemandTariff
(float demandTariff) void
void
void
setPrice
(float price) void
setQuantity
(float quantity) void
setSubmarket
(SubmarketAPI submarket) void
setTariff
(float tariff) void
setTimestamp
(long timestamp)
-
Constructor Details
-
TransactionLineItem
public TransactionLineItem(String id, PlayerMarketTransaction.LineItemType itemType, CargoAPI.CargoItemType cargoType, SubmarketAPI submarket, float quantity, float price, float tariff, long timestamp)
-
-
Method Details
-
getDemandPrice
public float getDemandPrice()Only set for an "UPDATE", which assumes that the price/tariff pair is for the supply prices.- Returns:
-
setDemandPrice
public void setDemandPrice(float price2) -
getDemandTariff
public float getDemandTariff() -
setDemandTariff
public void setDemandTariff(float demandTariff) -
getTariff
public float getTariff() -
setTariff
public void setTariff(float tariff) -
getSubmarket
-
setSubmarket
-
getId
-
setId
-
getItemType
-
setItemType
-
getCargoType
-
setCargoType
-
getQuantity
public float getQuantity() -
setQuantity
public void setQuantity(float quantity) -
getPrice
public float getPrice() -
setPrice
public void setPrice(float price) -
getTimestamp
public long getTimestamp() -
setTimestamp
public void setTimestamp(long timestamp)
-