Class AbstractActionHandler

java.lang.Object
megamek.common.autoResolve.acar.handler.AbstractActionHandler
All Implemented Interfaces:
ActionHandler, SimulationManagerHelper
Direct Known Subclasses:
MoraleCheckActionHandler, MoveActionHandler, MoveToCoverActionHandler, RecoveringNerveActionHandler, StandardUnitAttackHandler, WithdrawActionHandler

public abstract class AbstractActionHandler extends Object implements ActionHandler
  • Constructor Details

  • Method Details

    • isFinished

      public boolean isFinished()
      Description copied from interface: ActionHandler
      If it returns true, it must be removed from the list of active handlers (handling this action is finished entirely). If it returns false, it must remain.
      Specified by:
      isFinished in interface ActionHandler
      Returns:
      False when this handler must remain active after doing its present handling, true otherwise
    • setFinished

      public void setFinished()
      Specified by:
      setFinished in interface ActionHandler
    • getAction

      public Action getAction()
      Specified by:
      getAction in interface ActionHandler
      Returns:
      The EntityAction that this handler is executing.
    • simulationManager

      public SimulationManager simulationManager()
      Specified by:
      simulationManager in interface SimulationManagerHelper