Class SBFFormationConverter

java.lang.Object
megamek.common.strategicBattleSystems.BaseFormationConverter<SBFFormation>
megamek.common.strategicBattleSystems.SBFFormationConverter

public final class SBFFormationConverter extends BaseFormationConverter<SBFFormation>
  • Constructor Details

    • SBFFormationConverter

      public SBFFormationConverter(Force force, Game game)
  • Method Details

    • calculateStatsFromUnits

      public static void calculateStatsFromUnits(SBFFormation formation)
    • convert

      public SBFFormation convert()
      Description copied from class: BaseFormationConverter
      Returns an SBF Formation formed from the given force. When the force cannot be converted to an SBF Formation according to the rules, returns null. The given force must be approximately company-shaped to work, i.e. it has to contain some subForces with some entities in each sub force but no further subForces.
      Specified by:
      convert in class BaseFormationConverter<SBFFormation>