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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf it returns true, it must be removed from the list of active handlers (handling this action is finished entirely).voidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.common.autoResolve.acar.action.ActionHandler
cares, execute, handle, isActionValidMethods inherited from interface megamek.common.autoResolve.acar.manager.SimulationManagerHelper
game
-
Constructor Details
-
AbstractActionHandler
-
-
Method Details
-
isFinished
public boolean isFinished()Description copied from interface:ActionHandlerIf 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:
isFinishedin interfaceActionHandler- Returns:
- False when this handler must remain active after doing its present handling, true otherwise
-
setFinished
public void setFinished()- Specified by:
setFinishedin interfaceActionHandler
-
getAction
- Specified by:
getActionin interfaceActionHandler- Returns:
- The EntityAction that this handler is executing.
-
simulationManager
- Specified by:
simulationManagerin interfaceSimulationManagerHelper
-