Class SBFToHitData

java.lang.Object
megamek.common.rolls.TargetRoll
megamek.common.strategicBattleSystems.SBFToHitData
All Implemented Interfaces:
Serializable

public class SBFToHitData extends TargetRoll
See Also:
  • Constructor Details

    • SBFToHitData

      public SBFToHitData(int value, String desc)
    • SBFToHitData

      public SBFToHitData()
  • Method Details

    • compileToHit

      public static SBFToHitData compileToHit(SBFGame game, SBFStandardUnitAttack attack)
    • targetsOfFormation

      public static List<Integer> targetsOfFormation(InGameObject unit, SBFGame game)
      Returns a list of target IDs of all the targets of all attacks that the attacker of the given attack is performing this round. The result can be empty (the unit isn't attacking anything, or it is not the firing phase), it can have one or two entries.
      Parameters:
      unit - The attacker to check attacks for
      game - The game
      Returns:
      A list of all target IDs