Interface ITradable

  • All Known Subinterfaces:
    IWare, IWeapon
    All Known Implementing Classes:
    EWare, EWeapon

    public interface ITradable
    Interface for a tradable good that can have a price that is calculated.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      IBezierPriceCurve getBuyCurve()
      Retrieve the bezier curve defining the buy prices.
      int getMarketSaturationForBuying()
      Retrieve the amount of units which is considered infinite when buying.
      int getMarketSaturationForSelling()
      Retrieve the amount of units which is considered infinite when selling.
      int getMaxValueBuy()
      Retrieve the value that is maximal payed for one unit of this ware if no ware is available.
      int getMaxValueSell()
      Retrieve the value that is to be maximally payed for one unit of this ware if no ware is available.
      int getMinValueBuy()
      Retrieve the value of the minimal payed sum for on unit if an infinitly amount of the ware exists.
      int getMinValueSell()
      Retrieve the value that has to be minimally payed sum for one unit if infinitly amount of wares exist.
      IBezierPriceCurve getSellCurve()
      Retrieve the bezier curve defining the sell prices.
      java.lang.String name()
      As this interface is implemented by an enumeration add this method
    • Method Detail

      • getMaxValueBuy

        int getMaxValueBuy()
        Retrieve the value that is maximal payed for one unit of this ware if no ware is available.
        Returns:
        maximum buy value
      • getMinValueBuy

        int getMinValueBuy()
        Retrieve the value of the minimal payed sum for on unit if an infinitly amount of the ware exists.
        Returns:
        minimum buy value
      • getMinValueSell

        int getMinValueSell()
        Retrieve the value that has to be minimally payed sum for one unit if infinitly amount of wares exist.
        Returns:
        minimum sell value
      • getMaxValueSell

        int getMaxValueSell()
        Retrieve the value that is to be maximally payed for one unit of this ware if no ware is available.
        Returns:
        maximum sell value
      • getMarketSaturationForSelling

        int getMarketSaturationForSelling()
        Retrieve the amount of units which is considered infinite when selling. This influences the sell price because if there are so much units of the ware available the selling price will be the minimum.
        Returns:
        amount of units.
      • getMarketSaturationForBuying

        int getMarketSaturationForBuying()
        Retrieve the amount of units which is considered infinite when buying. This influences the buy price because if there are that many units available the buy price does not change anymore.
        Returns:
        amount of units.
      • name

        java.lang.String name()
        As this interface is implemented by an enumeration add this method
        Returns:
        name of the tradable
      • getBuyCurve

        IBezierPriceCurve getBuyCurve()
        Retrieve the bezier curve defining the buy prices.
        Returns:
        bezier curve for buy price calculation.
      • getSellCurve

        IBezierPriceCurve getSellCurve()
        Retrieve the bezier curve defining the sell prices.
        Returns:
        bezier curve for sell price calculation