Package megamek.server.sbf
Class SBFStandardUnitAttackHandler
java.lang.Object
megamek.server.sbf.AbstractSBFActionHandler
megamek.server.sbf.SBFStandardUnitAttackHandler
- All Implemented Interfaces:
SBFActionHandler,SBFGameManagerHelper
-
Constructor Summary
ConstructorsConstructorDescriptionSBFStandardUnitAttackHandler(SBFStandardUnitAttack action, SBFGameManager gameManager) -
Method Summary
Methods inherited from class megamek.server.sbf.AbstractSBFActionHandler
gameManager, getAction, isFinished, setFinishedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.server.sbf.SBFGameManagerHelper
addReport, game, packetHelper, send, send
-
Constructor Details
-
SBFStandardUnitAttackHandler
-
-
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:SBFActionHandlerHandles 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 callSBFActionHandler.setFinished()to mark itself as a candidate for removal.
-