Interface SBFAction

All Superinterfaces:
EntityAction
All Known Subinterfaces:
SBFAttackAction
All Known Implementing Classes:
AbstractSBFAttackAction, SBFArtilleryAttack, SBFDirectArtilleryAttack, SBFIndirectArtilleryAttack, SBFStandardUnitAttack, SBFUnitToHexAttack

public interface SBFAction extends EntityAction
This interface is implemented by actions of units (mostly, formations) in SBF games.
  • Method Details

    • getHandler

      SBFActionHandler getHandler(SBFGameManager gameManager)
      Returns:
      A handler that will process this action as an extension of the SBFGameManager
    • isDataValid

      boolean isDataValid(SBFGame game)
      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