Class SBFStandardUnitAttackHandler

java.lang.Object
megamek.server.sbf.AbstractSBFActionHandler
megamek.server.sbf.SBFStandardUnitAttackHandler
All Implemented Interfaces:
SBFActionHandler, SBFGameManagerHelper

public class SBFStandardUnitAttackHandler extends AbstractSBFActionHandler
  • Constructor Details

  • Method Details

    • cares

      public boolean cares()
      Returns:
      True when this handler should be called at the present state of the SBFGame (e.g. the phase). In that case, SBFActionHandler.handle() should be called.
    • handle

      public void handle()
      Description copied from interface: SBFActionHandler
      Handles the action, e.g. attack with everything that's necessary, such as adding a report and sending changes to the Clients. When the handler has finished handling the action and is no longer needed, it must call SBFActionHandler.setFinished() to mark itself as a candidate for removal.