Class CostCalculator

java.lang.Object
megamek.common.cost.CostCalculator

public class CostCalculator extends Object
  • Constructor Details

    • CostCalculator

      public CostCalculator()
  • Method Details

    • addNoReportNote

      public static void addNoReportNote(@Nullable CalculationReport costReport, @Nullable Entity entity)
      Adds a note to the given CalculationReport that no report is available for units of the given entity's type. Null parameters can be safely passed to this method.
      Parameters:
      costReport - The CalculationReport to add the note to
      entity - The unit to calculate costs for