Class SBFToHitData
java.lang.Object
megamek.common.rolls.TargetRoll
megamek.common.strategicBattleSystems.SBFToHitData
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class megamek.common.rolls.TargetRoll
AUTOMATIC_FAIL, AUTOMATIC_SUCCESS, CHECK_FALSE, IMPOSSIBLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic SBFToHitDatacompileToHit(SBFGame game, SBFStandardUnitAttack attack) 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.Methods inherited from class megamek.common.rolls.TargetRoll
addModifier, addModifier, addModifier, append, append, cannotSucceed, doNothing, getCumulativePlainDesc, getDesc, getLastPlainDesc, getModifiers, getPlainDesc, getValue, getValueAsString, isAutomaticFail, isAutomaticSuccess, isImpossible, needsRoll, removeAutos, removeAutos, removeModifier, removeModifier, removeModifiers, toString
-
Constructor Details
-
SBFToHitData
-
SBFToHitData
public SBFToHitData()
-
-
Method Details
-
compileToHit
-
targetsOfFormation
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 forgame- The game- Returns:
- A list of all target IDs
-