Package megamek.common.actions.sbf
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
This is a base class for SBF artillery attacks, indirect, against hexes, units or fortifications or direct. IO:BF
p.203
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionSBFArtilleryAttack(int entityId, int targetId, BattleForceSUA artilleryType) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisDataValid(SBFGame game) Validates the data of this action.Methods inherited from class megamek.common.actions.sbf.AbstractSBFAttackAction
getEntityId, getTargetId, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface megamek.common.actions.EntityAction
toAccessibilityDescription, toSummaryStringMethods inherited from interface megamek.common.actions.sbf.SBFAction
getHandler
-
Constructor Details
-
SBFArtilleryAttack
-
-
Method Details
-
isDataValid
Description copied from interface:SBFActionValidates 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
-