Package megamek.common.actions.sbf
Interface SBFAction
- All Superinterfaces:
EntityAction
- All Known Subinterfaces:
SBFAttackAction
- All Known Implementing Classes:
AbstractSBFAttackAction
,SBFArtilleryAttack
,SBFDirectArtilleryAttack
,SBFIndirectArtilleryAttack
,SBFStandardUnitAttack
,SBFUnitToHexAttack
This interface is implemented by actions of units (mostly, formations) in SBF games.
-
Method Summary
Modifier and TypeMethodDescriptiongetHandler
(SBFGameManager gameManager) boolean
isDataValid
(SBFGame game) Validates the data of this action.Methods inherited from interface megamek.common.actions.EntityAction
getEntityId, toAccessibilityDescription, toSummaryString
-
Method Details
-
getHandler
- Returns:
- A handler that will process this action as an extension of the SBFGameManager
-
isDataValid
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
-