Class UnitMarketOffer

java.lang.Object
mekhq.campaign.market.unitMarket.UnitMarketOffer

public class UnitMarketOffer extends Object
  • Constructor Details

    • UnitMarketOffer

      public UnitMarketOffer(UnitMarketType marketType, int unitType, megamek.common.loaders.MekSummary unit, int percent, int transitDuration, CampaignOptions campaignOptions)
  • Method Details

    • getMarketType

      public UnitMarketType getMarketType()
    • setMarketType

      public void setMarketType(UnitMarketType marketType)
    • getUnitType

      public int getUnitType()
    • setUnitType

      public void setUnitType(int unitType)
    • getUnit

      public megamek.common.loaders.MekSummary getUnit()
    • setUnit

      public void setUnit(megamek.common.loaders.MekSummary unit)
    • getPercent

      public int getPercent()
    • setPercent

      public void setPercent(int percent)
    • getTransitDuration

      public int getTransitDuration()
    • setTransitDuration

      public void setTransitDuration(int transitDuration)
    • getEntity

      @Nullable public megamek.common.units.Entity getEntity()
      Returns:
      the Entity offered in this UnitMarketOffer
    • getPrice

      public Money getPrice()
      Returns:
      the final price of this Offer
    • writeToXML

      public void writeToXML(PrintWriter pw, int indent)
    • generateInstanceFromXML

      @Nullable public static UnitMarketOffer generateInstanceFromXML(Node wn, Campaign campaign, megamek.Version version)