public class PlayerTradeDataForSubmarket
extends java.lang.Object
Constructor and Description |
---|
PlayerTradeDataForSubmarket(SubmarketAPI submarket) |
public PlayerTradeDataForSubmarket(SubmarketAPI submarket)
protected java.lang.Object readResolve()
public static java.lang.String getTXId(CargoStackAPI stack)
public static java.lang.String getTXId(BaseSubmarketPlugin.ShipSalesData data)
public MutableStatWithTempMods getStat(java.lang.String id)
public void advance(float days)
public void addTransaction(PlayerMarketTransaction transaction)
public void addToTrackedPlayerBought(PlayerMarketTransaction.ShipSaleInfo info)
public void addToTrackedPlayerSold(PlayerMarketTransaction.ShipSaleInfo info)
public void addToTrackedPlayerBought(CargoStackAPI stack)
public void addToTrackedPlayerSold(CargoStackAPI stack)
public void addToTrackedPlayerSold(CargoStackAPI stack, float totalPriceOverride)
public static float computeImpactOfHavingAlreadySold(MarketAPI market, CargoAPI.CargoItemType type, java.lang.Object data, float baseValue, float qty)
public static float computePriceOfHavingAlreadySold(MarketAPI market, CargoAPI.CargoItemType type, java.lang.Object data, float baseValue, float qty)
public static float computeImpactOfHavingAlreadyBought(MarketAPI market, CargoAPI.CargoItemType type, java.lang.Object data, float baseValue, float qty)
public static float computePriceOfHavingAlreadyBought(MarketAPI market, CargoAPI.CargoItemType type, java.lang.Object data, float baseValue, float qty)
public float getTotalPlayerTradeValue()
public void setTotalPlayerTradeValue(float totalPlayerTradeValue)
public CargoAPI getRecentPlayerBought()
public CargoAPI getRecentPlayerSold()
public float getAccumulatedPlayerTradeValueForPositive()
public void setAccumulatedPlayerTradeValueForPositive(float accumulatedPlayerTradeValue)
public float getAccumulatedPlayerTradeValueForNegative()
public void setAccumulatedPlayerTradeValueForNegative(float accumulatedPlayerTradeValueForNegative)
public IntervalUtil getTracker()
public java.util.Collection<BaseSubmarketPlugin.ShipSalesData> getRecentlyPlayerBoughtShips()
public java.util.Collection<BaseSubmarketPlugin.ShipSalesData> getRecentlyPlayerSoldShips()
public MarketAPI getMarket()
public SubmarketAPI getSubmarket()
protected BaseSubmarketPlugin.ShipSalesData getSoldShipData(java.lang.String vid)
protected BaseSubmarketPlugin.ShipSalesData getBoughtShipData(java.lang.String vid)
public float getRecentBaseTradeValueImpact()
public void setSubmarket(SubmarketAPI submarket)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.