Class SBFArtilleryAttack

java.lang.Object
megamek.common.actions.sbf.AbstractSBFAttackAction
megamek.common.actions.sbf.SBFArtilleryAttack
All Implemented Interfaces:
Serializable, EntityAction, SBFAction, SBFAttackAction
Direct Known Subclasses:
SBFDirectArtilleryAttack, SBFIndirectArtilleryAttack

public abstract class SBFArtilleryAttack extends AbstractSBFAttackAction
This is a base class for SBF artillery attacks, indirect, against hexes, units or fortifications or direct. IO:BF p.203
See Also:
  • Constructor Details

    • SBFArtilleryAttack

      public SBFArtilleryAttack(int entityId, int targetId, BattleForceSUA artilleryType)
  • Method Details

    • isDataValid

      public boolean isDataValid(SBFGame game)
      Description copied from interface: SBFAction
      Validates the data of this action. Validation should not check game rule details, only if the action can be handled without running into missing or false data (NullPointerExceptions). Errors should be logged. The action will typically be ignored and removed if validation fails.
      Parameters:
      game - The game
      Returns:
      true when this action is valid, false otherwise